Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Play Wordle in Excel Sheets

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can play Wordle entirely inside an Excel sheet. You don't need a live connection or a website—just a few formulas and conditional formatting turn a grid into a fully playable word game. This guide builds a 5x5 guess grid, a color-coded feedback system, and a built-in word list. You'll need Excel 2016 or later (desktop or online) and a list of 5-letter words.

What You'll Need

  • Excel (desktop or web version)
  • A list of 5-letter words (you can find one online or use the sample list in Step 4)
  • Basic familiarity with Excel formulas (IF, COUNTIF, and LEN are used)

Step-by-Step

Step 1: Set up the game grid

  1. In a new worksheet, select cells B2:F11 (5 columns × 10 rows).
  2. Give these cells a light gray fill (Home > Fill Color).
  3. Set column widths B–F to about 8–10 so each cell is square-ish.
  4. In cell H1, type Secret Word. In cell H2, enter your chosen 5-letter word (this is the answer). Keep it hidden or on a separate sheet if you want to avoid spoilers.

Step 2: Add the guess input area

  1. In cell A2, type Guess 1; in A3 type Guess 2, and so on down to A11 for 10 guesses.
  2. In cell B2, type the formula =UPPER(LEFT($H$2,5)) — this will show the secret word for testing. Later you can replace it with a manual entry cell.
  3. For the actual game, you'll type your guess directly into B2:F2. To make it easier, merge B2:F2 into one cell (select B2:F2, then Home > Merge & Center). But for color feedback, it's easier to keep them separate. We'll use separate cells.

Step 3: Create the feedback formulas

  1. In cell G2, type this formula to check if the guess is correct:
    =IF(UPPER(B2&""&C2&""&D2&""&E2&""&F2)=$H$2,"WIN","")
  2. Now we'll color each letter. Select B2:F2, go to Home > Conditional Formatting > New Rule > Use a formula.
  3. For green (correct letter and position), use this formula for cell B2:
    =UPPER(B2)=MID($H$2,COLUMN()-1,1)
    Apply a green fill.
  4. For yellow (letter in word but wrong position), add another rule with formula:
    =AND(ISNUMBER(SEARCH(UPPER(B2),$H$2)),UPPER(B2)<>MID($H$2,COLUMN()-1,1))
    Apply a yellow fill.
  5. For gray (letter not in word), add a third rule with formula:
    =AND(B2<>"",ISERROR(SEARCH(UPPER(B2),$H$2)))
    Apply a gray fill.
  6. Repeat these rules for each row (2 to 11), adjusting the row number in the formulas. To speed up, copy the cells B2:G2 down to row 11, then edit each row's conditional formatting to point to the correct row.

Step 4: Add a word list (optional but recommended)

  1. On a separate sheet (e.g., "Words"), list all allowed 5-letter words in column A, one per row.
  2. In the game sheet, add a data validation to each guess cell (B2:F2) to restrict input to words from that list. Select B2:F2, go to Data > Data Validation, choose List, and set the source to =Words!$A$1:$A$1000 (adjust range).
  3. This prevents invalid guesses and keeps the game fair.

Step 5: Play the game

  1. Type your first guess into row 2 (one letter per cell). The conditional formatting will color it instantly.
  2. Check the G column: if it says "WIN", you've solved it.
  3. Continue to row 3, 4, etc., until you win or run out of rows.
  4. To start a new game, change the secret word in H2 and clear the guess cells.

Common Mistakes

  • Forgetting to use UPPER() — if your secret word is lowercase and your guess is uppercase, the comparison fails. Always wrap both in UPPER().
  • Merged cells breaking conditional formatting — if you merge B2:F2, the format only applies to the top-left cell and the formulas won't work correctly. Keep them unmerged.
  • Conditional formatting rules not covering all rows — you must apply the rules to each row separately or copy the cells with formatting from row 2 down.
  • Using SEARCH for yellow when the letter appears multiple times — this simple formula may mark a letter yellow even if it's already used correctly elsewhere. For a full Wordle experience, you'd need more complex array formulas, but for a basic version this is acceptable.

Tips

  • Use a separate sheet for the word list so it doesn't clutter the game board.
  • Hide the secret word column (H) by right-clicking the column header and selecting Hide, so you don't accidentally see it.
  • To make the game more challenging, add a row counter that counts how many guesses you've used.
  • If you want to share the game, protect the sheets with a password (Review > Protect Sheet) to prevent others from seeing the word list or secret word.

Troubleshooting

  • Conditional formatting doesn't apply — Make sure the rule formulas are relative to the top-left cell of the selected range. For row 2, use B2 in the formula; for row 3, use B3, etc. Also check that the Applies to range covers B2:F11.
  • Green and yellow rules conflict — In conditional formatting, the first rule that evaluates to TRUE wins. Put the green rule before the yellow rule in the list.
  • Guess not registering — If you type more than 5 letters, Excel will overflow into adjacent cells. Use data validation to limit input length (set to Text length equal to 1 per cell).
  • Word list not working in data validation — Ensure the list is on the same workbook and the range is correct. If you use a named range, it's easier.

Frequently Asked Questions

Can I play Wordle offline in Excel?

Yes, once you have the workbook saved locally, you can play it without an internet connection.

How do I change the number of guesses?

Add or remove rows in the grid and extend the conditional formatting rules and formulas accordingly.

Can I use this on Excel Online?

Yes, conditional formatting and data validation work in Excel for the web, though some advanced formulas may behave slightly differently.

Why is my yellow feedback showing for letters that are already green?

This happens because the simple formula doesn't account for duplicate letters. For a more accurate version, you'd need to use COUNTIF and array formulas to track letter counts.

Can I make it look more like the original Wordle?

Yes, you can adjust cell sizes, borders, and colors to match. Use a dark background and white text for a similar look.

Is there a way to generate a random word automatically?

Yes, you can use the formula =INDEX(Words!$A$1:$A$1000,RANDBETWEEN(1,1000)) in H2 to pick a random word from your list each time you press F9.