# 125|EXCEL – Debugging Escape Room

**URL:** https://www.techhub.training/t/125-excel-debugging-escape-room/756
**Category:** Challenges
**Tags:** regex, vba, concat, debugging, excel, intermediate, xlookup
**Created:** [June 13, 2023, 7:27pm UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756 "2023-06-13T19:27:29Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Jonathan\_Weston](https://sea2.discourse-cdn.com/flex016/user_avatar/www.techhub.training/jonathan_weston/32/372_2.png) [@Jonathan\_Weston](https://www.techhub.training/u/Jonathan_Weston)
#### Post date: [June 13, 2023, 7:27pm UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/1 "2023-06-13T19:27:29Z")

</div>

_BYU Student Author_: @Jonathan_Weston  
_Reviewers_: @Brett_Lowe, @Donovon  
_Estimated Time to Solve:_ 30 Minutes

We provide the solution to this challenge using:

- Excel

Note: This challenge uses a VBA module to enable regular expressions that is not supported by Mac OS.

Need a program? Click [here](https://www.techhub.training/t/information-about-software-used-on-techhub-training/138).

**Overview**  
You are the new intern at Dunder Mifflin Paper Company, Inc. You want to go home and begin your relaxing weekend, but the evil HR representative, Toby, is holding you hostage. He has an Excel file filled with results from various training modules and quarterly reviews to calculate next year’s raise for each employee, but it is riddled with errors and bugs, and he wants you to fix it. You worry that he really could be the Scranton Strangler, so you decide to help him.

As soon as you agree, lightning strikes, and thunder booms. Toby has locked you in the Annex and won’t let you out until the job is done. To ensure that you do it right, Toby already counted all the errors and used those numbers to create a password that you must share with him to escape the annex. To create this password, you will use the number of each error type to assemble pieces of a regex statement that will extract the correct password from the “Scary Wall of Text” tab.

The Excel file for this challenge is a macro-enabled workbook. It’s possible that your computer will only let you access the file in View mode. To unblock this file, go to your file explorer, right-click on the file, click properties, and then click “un-block”.

**Instructions**  
Here are the rules of the game:

- In cells B2:B6, manually enter the count of each type of error. It may be helpful to highlight the cells containing errors and color code those highlights to the error types. Below you will find an explanation of each error.
  - **Hard Codes:** An actual number was manually entered in the cell where a formula should be.
  - **#REF! Errors:** The cell returns a #REF! Error.
  - **Formula Errors:** The formula in the cell isn’t the correct formula, references the wrong cell, or does not reference the correct range.
  - **Missing Data:** No data is contained in the cell. This error type does not include cells or rows that are supposed to be left blank.
  - **Wrong Data Type:** numbers are treated as a string data type rather than numerical.

- In cells C2:C6, write an xlookup statement that will use the number of errors found for the error type, and return the corresponding regex statement segment. For example, if one error was found for Hard Codes, cell C2 should return “\$”
- In cell C9, concatenate all the regex segments in C2:C6 into a single regex statement.
- Use the regex statement created in C9 to extract the correct password from the wall of text in the “Scary Wall of Text” tab. To do this, you will use this formula “=RegExpExtract(text, regex)” in cell C12. FYI, RegExpExtract is a user defined function, it does not come built into Excel. This function is created as a VBA module that you can call upon, which this file enables you to do because it is a macro-enabled workbook.
- Present this password to Toby and he will release you.

**Congratulations! You escaped the annex!**

**Data Files**

- [Challenge125\_Data.xlsm](https://byu.box.com/shared/static/wvfjw5rwxj7ymda0vsbzbwr7vgtwzqlg)

> **Suggestions and Hints**
>
> - **[Here](https://www.ablebits.com/office-addins-blog/excel-regex-formulas/)** is a link to a website that has a regex cheat sheet and explains this and other user defined functions for regex in Excel.
> - A great way to find bugs in your worksheet is to go to Formula Auditing under the Formulas tab.
> - The “Show Formulas” button will show the actual formula in the cell, not the output. This is a good way to find cells that are hardcoded.
> - The “Error Checking” button will go over each cell that doesn’t follow the patterns to the cells next to it. This is indicated by the green triangle in the top left corner of the cell.

**Solution**

[Challenge125\_Solution.xlsm](https://byu.box.com/shared/static/6s92mekz53rop99ww8jjk56rvzx3pctq)  
_Solution Video:_ [Challenge 125|EXCEL – Debugging Escape Room](https://youtu.be/ueYmdPnFwxI)

---

<div class="post-metadata">

### Author: ![Kyle\_Nilsen](https://sea2.discourse-cdn.com/flex016/user_avatar/www.techhub.training/kyle_nilsen/32/5506_2.png) [@Kyle\_Nilsen](https://www.techhub.training/u/Kyle_Nilsen)
#### Post date: [January 13, 2024, 4:14am UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/2 "2024-01-13T04:14:57Z")

</div>

An entertaining little challenge that combines humor and some good introductory level excel functions. Error checking is vital! Also a good introductory space for RegEx without the intimidation of actually creating the expression on your own.

 ![Nilsen.Challenge125Solution](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/f/f54587a231d98ec1204f82acfca1c7c791b4a082.jpeg)

---

<div class="post-metadata">

### Author: ![Carter\_Lee](https://sea2.discourse-cdn.com/flex016/user_avatar/www.techhub.training/carter_lee/32/5482_2.png) [@Carter\_Lee](https://www.techhub.training/u/Carter_Lee)
#### Post date: [January 15, 2024, 9:43am UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/3 "2024-01-15T09:43:57Z")

</div>

That was a fun challenged that helped me refresh my Excel skills. It was been a while since I took the class so this was a chance to refresh simple skills like xlookup and VBA while learning new ones like using regex on excel

 ![Screenshot 2024-01-15 at 2.41.49 AM](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/f/f776bf9f0f52e068c39b886319496db68e74f56a.png)

---

<div class="post-metadata">

### Author: ![Justyn\_Lake](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Justyn\_Lake](https://www.techhub.training/u/Justyn_Lake)
#### Post date: [January 30, 2024, 10:41pm UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/4 "2024-01-30T22:41:18Z")

</div>

![Debuggin Escape Room](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/b/bae82f2b03d6d99d9d69cd2ac7d0a4ce438b88a4.png)  
Haven’t had a chance to use Xlookup before. This was a great learning experience, and I got to escape Toby!!

---

<div class="post-metadata">

### Author: ![Marek\_Konopka](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@Marek\_Konopka](https://www.techhub.training/u/Marek_Konopka)
#### Post date: [January 31, 2024, 12:50am UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/5 "2024-01-31T00:50:18Z")

</div>

![Screen Shot 2024-01-30 at 7.30.11 PM](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/4/4252281f4d396c08b6574d4fa65b354261ec5d0b.jpeg)

This was a fun challenge and allowed me to use certain functions like Xlookup for the first time.

---

<div class="post-metadata">

### Author: ![Catherine\_St.P](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@Catherine\_St.P](https://www.techhub.training/u/Catherine_St.P)
#### Post date: [January 31, 2024, 1:14am UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/6 "2024-01-31T01:14:37Z")

</div>

[Excel Challenge](https://1drv.ms/x/s!AnkZnaOgiP9Q8E3j_hUIBYLowKzM?e=H72jcH)

This challenge allowed me to develop my Excel skills and learn about XLookup. _The Office_ theme made it fun to complete!

---

<div class="post-metadata">

### Author: ![Catherine\_St.P](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@Catherine\_St.P](https://www.techhub.training/u/Catherine_St.P)
#### Post date: [January 31, 2024, 1:15am UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/7 "2024-01-31T01:15:08Z")

</div>

[Challenge125\_Data.xlsm](https://1drv.ms/x/s!AnkZnaOgiP9Q8E3j_hUIBYLowKzM?e=H72jcH)

---

<div class="post-metadata">

### Author: ![Skyler\_Harris](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@Skyler\_Harris](https://www.techhub.training/u/Skyler_Harris)
#### Post date: [April 30, 2024, 6:05pm UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/8 "2024-04-30T18:05:35Z")

</div>

I really enjoyed this challenge, it was relatively quick to complete and the theme was fun.  
[Challenge125-DataSolve](https://mailmissouri-my.sharepoint.com/:x:/g/personal/sgh8v2_umsystem_edu/EZA60dfbqrNOm5nqcTiOIOEBrRqs2Rb5vSsqHeVO3bkWoA?e=LMj3ML)

---

<div class="post-metadata">

### Author: ![Skylar\_Sutherland](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@Skylar\_Sutherland](https://www.techhub.training/u/Skylar_Sutherland)
#### Post date: [June 27, 2024, 7:13pm UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/9 "2024-06-27T19:13:10Z")

</div>

Time to Complete: 30 Minutes  
Rating: 4.5/5  
Overview: This was a super fun exercise, I feel like I learned a lot about troubleshooting with Excel! I love that it is The Office themed! I have included my solution/attempt down below.

 ![Escape Room Excel](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/5/59cbfc6931211156dbfb65aade91f808d951bc19.png)

---

<div class="post-metadata">

### Author: ![aharonoa](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@aharonoa](https://www.techhub.training/u/aharonoa)
#### Post date: [June 28, 2024, 12:03am UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/10 "2024-06-28T00:03:27Z")

</div>

Time to complete: 30 min  
Rating: Intermediate  
I liked this course and learned that I can show the formulas which I’m sure will come in handy.

 ![DebuggingEscapeRoomSol](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/9/9be563da55d17c676e51877b8a5bf01aacfa5578.png)

---

<div class="post-metadata">

### Author: ![Estefania\_Ayala](https://avatars.discourse-cdn.com/v4/letter/e/34f0e0/32.png) [@Estefania\_Ayala](https://www.techhub.training/u/Estefania_Ayala)
#### Post date: [June 28, 2024, 2:41pm UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/11 "2024-06-28T14:41:24Z")

</div>

Time: 1 hour  
Rating: Intermediate  
Love the office theme! This was definitely a challenge for sure but was fun learning new tools.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/7/7006e39456bf1c40b7e5df72d77ed4e579e69c06.png)

---

<div class="post-metadata">

### Author: ![Jordyn\_Lee](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@Jordyn\_Lee](https://www.techhub.training/u/Jordyn_Lee)
#### Post date: [June 28, 2024, 9:16pm UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/12 "2024-06-28T21:16:44Z")

</div>

Time to complete: “20 minutes”  
Rating: Easy

I thought this was a fun challenge to complete that gave me more practice with X-lookups.

 ![Screenshot (1)](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/a/a731c7a6123851c55f8a8a2a2e4fc32409a100a7.png)

---

<div class="post-metadata">

### Author: ![Tamara\_Soto\_Gomez](https://avatars.discourse-cdn.com/v4/letter/t/5e9695/32.png) [@Tamara\_Soto\_Gomez](https://www.techhub.training/u/Tamara_Soto_Gomez)
#### Post date: [June 28, 2024, 9:19pm UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/14 "2024-06-28T21:19:59Z")

</div>

Time: 45 min  
Rating: 4/5  
Super cool puzzle! I also love the Office.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/2/2be341dd449dcc7ed59ad198df67b06a7471540a.png)

---

<div class="post-metadata">

### Author: ![Meadow\_Mitchell](https://sea2.discourse-cdn.com/flex016/user_avatar/www.techhub.training/meadow_mitchell/32/7366_2.png) [@Meadow\_Mitchell](https://www.techhub.training/u/Meadow_Mitchell)
#### Post date: [March 6, 2025, 12:12am UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/15 "2025-03-06T00:12:27Z")

</div>

A fun challenge that is great for practicing your error checking and xlookup skills!

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/6/655c4eb8532f5cbd5f7687ae239c3fc1a348608d.png)

---

<div class="post-metadata">

### Author: ![Cadestroyer5](https://sea2.discourse-cdn.com/flex016/user_avatar/www.techhub.training/cadestroyer5/32/7584_2.png) [@Cadestroyer5](https://www.techhub.training/u/Cadestroyer5)
#### Post date: [March 6, 2025, 4:59pm UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/16 "2025-03-06T16:59:29Z")

</div>

Time to Complete: 20 Minutes  
Rating: Beginner  
Rating: 5/5

This was a super fun challenge. Cell AF29 Tripped me up because it’s hard coded and hard coded in the wrong format so that took a second to identify.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/2/2e6354077b3070e365a64f37f6af983812db087f.png)

---

<div class="post-metadata">

### Author: ![Nolan\_Brewer](https://sea2.discourse-cdn.com/flex016/user_avatar/www.techhub.training/nolan_brewer/32/7020_2.png) [@Nolan\_Brewer](https://www.techhub.training/u/Nolan_Brewer)
#### Post date: [March 9, 2025, 3:17am UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/17 "2025-03-09T03:17:22Z")

</div>

Time to complete: 30 min  
Rating: Intermediate  
Pretty fun overall

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/d/d8c72e36d05db15b1fe6b8bbbaefeda7e1211db5.png)

---

<div class="post-metadata">

### Author: ![Cash\_Clark](https://sea2.discourse-cdn.com/flex016/user_avatar/www.techhub.training/cash_clark/32/7558_2.png) [@Cash\_Clark](https://www.techhub.training/u/Cash_Clark)
#### Post date: [March 9, 2025, 11:56pm UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/18 "2025-03-09T23:56:38Z")

</div>

Time to complete: 30 min  
Difficulty: Beginner/Intermediate

I had never used the REGEXEXTRACT formula so I found that to be interesting. I had a hard time counting the errors but the hint to color cordinate the errors helped.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/3/3b51226a50157ab9c8f535a3a59185b210869ea4.png)

---

<div class="post-metadata">

### Author: ![Kate\_Munger](https://sea2.discourse-cdn.com/flex016/user_avatar/www.techhub.training/kate_munger/32/7408_2.png) [@Kate\_Munger](https://www.techhub.training/u/Kate_Munger)
#### Post date: [March 10, 2025, 1:51am UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/19 "2025-03-10T01:51:44Z")

</div>

Time to complete: 30 minutes  
Difficulty: Beginner

 ![Screenshot 2025-03-09 at 7.50.33 PM](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/4/4b153419af4021931e7e21c36032644d761c7e66.jpeg)

---

<div class="post-metadata">

### Author: ![Tyler\_Herget](https://sea2.discourse-cdn.com/flex016/user_avatar/www.techhub.training/tyler_herget/32/7411_2.png) [@Tyler\_Herget](https://www.techhub.training/u/Tyler_Herget)
#### Post date: [March 10, 2025, 3:11am UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/20 "2025-03-10T03:11:56Z")

</div>

Time to Complete: 20 Min  
Difficulty: Medium  
Solution:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/a/aa5388a11b772f089ce2d101b10901cbdf84b087.png)  
Just took a long time highlighting all the cells

---

<div class="post-metadata">

### Author: ![Taylor\_Dahlke](https://sea2.discourse-cdn.com/flex016/user_avatar/www.techhub.training/taylor_dahlke/32/7567_2.png) [@Taylor\_Dahlke](https://www.techhub.training/u/Taylor_Dahlke)
#### Post date: [March 10, 2025, 3:57am UTC](https://www.techhub.training/t/125-excel-debugging-escape-room/756/21 "2025-03-10T03:57:20Z")

</div>

This is what I got!

 ![Screenshot 2025-03-09 215651](https://us1.discourse-cdn.com/flex016/uploads/weeklytechchallenge/original/2X/c/c76e54bd0522f24d534fe50f0522db3510c848b2.png)

[Next page](https://www.techhub.training/t/125-excel-debugging-escape-room/756.md?page=2)
