How to Play Wordle in Excel: Step-by-Step
In this article
You can play Wordle in Excel by building a simple guessing grid with conditional formatting that colors letters green, yellow, or gray—just like the original game. This guide shows you how to set it up from scratch, without macros or complex formulas. You'll need Microsoft Excel (2016 or newer) on Windows or Mac; the steps also work in Google Sheets with minor menu differences.
What You'll Need
- Microsoft Excel (desktop version recommended; web version works too)
- A word list of 5-letter words (you can type your own or use a built-in dictionary)
- Basic familiarity with Excel: entering text, dragging fill handles, and applying conditional formatting
Step-by-Step
- Set up the grid. In a new worksheet, select cells B2:F6 (5 columns x 5 rows) for your guesses. Make each cell about 50x50 pixels by dragging the column widths and row heights. This will be your main play area.
- Add the answer cell. Pick a cell away from the grid, say H1, and type the secret 5-letter word. You can hide this later by making the font white or by placing it on a hidden sheet. For now, keep it visible for testing.
- Create the guess input. In cell A2 (left of the first guess row), you'll type your guess. But to make it easier, you'll actually type each letter into the grid cells B2:F2. So, skip A2 and just type directly into B2:F2 for each row.
- Add a check column. In cell A2, type the formula
=IF(COUNTIF(B2:F2,"?")=5,"Check",""). This shows the word "Check" when all five letters are filled. Drag this formula down to A6. - Create the comparison logic. In cell H3 (or any empty area), enter the formula to compare your guess to the answer. For example, for the first letter (B2), use:
=IF(B2="","",IF(B2=LEFT($H$1,1),"green",IF(ISNUMBER(SEARCH(B2,$H$1)),"yellow","gray"))). This checks if the letter is in the exact spot (green), in the word but wrong spot (yellow), or not in the word (gray). - Copy the formula for all cells. Adjust the formula for each cell in the grid. For cell C2, change
LEFT($H$1,1)toMID($H$1,2,1), and so on. To make this easier, use a helper row: in row 8, put numbers 1 to 5 in B8:F8. Then use a single formula like=IF(B2="","",IF(B2=MID($H$1,B$8,1),"green",IF(ISNUMBER(SEARCH(B2,$H$1)),"yellow","gray"))). Copy this across B2:F6. - Apply conditional formatting. Select B2:F6. Go to Home > Conditional Formatting > New Rule > Use a formula. Enter
=H2="green"(assuming H2 is the cell where you put the first comparison result). Set the fill to green. Repeat for yellow (=H2="yellow") and gray (=H2="gray"). Important: the formula must reference the cell relative to the active cell in the selection. If B2 is active, use H2; if you start with C2, use I2, etc. - Hide the answer and helper columns. Right-click column H and choose Hide. Also hide row 8 if you used it. To prevent accidental viewing, you can also protect the sheet (Review > Protect Sheet) but leave the grid cells unlocked.
- Play the game. Type a 5-letter guess in the first row (B2:F2). The cells will color automatically. If a letter is correct and in the right spot, it turns green. If correct but wrong spot, yellow. If not in the word, gray. Then move to the next row for your next guess. You have 6 attempts.
- Check for a win. In cell A7 (or any empty cell), enter
=IF(COUNTIF(B2:F2,"green")=5,"You win!","Keep trying"). This will show a message when all five letters in a row are green.
Common Mistakes
- Wrong relative references in conditional formatting. If you copy the rule and it doesn't work, the formula might be pointing to the wrong helper cell. Always test with a known word.
- Forgetting to hide the answer. If you leave the answer visible, it ruins the game. Hide column H or place it on a separate sheet.
- Using SEARCH for case-sensitive words. SEARCH is case-insensitive, which is fine for Wordle (all caps). But if you type lowercase, it still works. Just be consistent.
- Not accounting for duplicate letters. The simple formula above doesn't handle repeated letters perfectly. For example, if the answer is "ABBOT" and you guess "BABES", the first B will show green, but the second B might incorrectly show yellow. To fix this, you'd need a more complex array formula, but for casual play, this is acceptable.
- Entering numbers instead of letters. Excel might interpret single letters as text, but if you type a number, it won't match. Stick to letters.
Tips
- Use data validation to limit input. Select B2:F6, go to Data > Data Validation, allow "List" and enter the letters A-Z separated by commas. This prevents typing numbers or symbols.
- Add a keyboard shortcut to clear a row. You can record a macro to clear the current row, but that's advanced. Simpler: just select the cells and press Delete.
- Make the grid look nicer. Add borders to the cells, bold the letters, and use a large font size (like 20) for readability.
- Keep a word list on a separate sheet. If you want to validate guesses against a dictionary, you can use COUNTIF to check if the guess is in a list, but that requires a named range.
- Share the file. Send the Excel file to a friend, but remember to hide the answer cell before sharing. You can also protect the sheet with a password.
Troubleshooting
- Conditional formatting not applying. Check that the formula references the correct helper cell. Select a cell in the grid, go to Conditional Formatting > Manage Rules, and edit the formula. Ensure the "Applies to" range covers B2:F6.
- Colors are wrong (e.g., yellow instead of green). Your formula might be checking the wrong position. Double-check the MID function: MID($H$1,1,1) for first letter, MID($H$1,2,1) for second, etc.
- Typing a letter doesn't show any color. Make sure the helper cell (e.g., H2) has the formula and isn't hidden. Also ensure the conditional formatting rule is set to "Use a formula" and not "Cell Value".
- Excel says "There's a problem with this formula." Check for missing parentheses or commas. The formula should be entered as one line. If you're using a non-English Excel, replace commas with semicolons in the formula.
- Can't hide the answer because it's needed for formulas. Hiding a column doesn't affect formulas. If you hide column H, the formulas still work. If you move the answer to another sheet, reference it like
Sheet2!$A$1.
Frequently Asked Questions
Can I play Wordle in Excel on a phone?
Yes, but it's clunky. The Excel mobile app supports conditional formatting and formulas, but the small screen makes typing and viewing difficult. It's better on a desktop.
Does this work in Google Sheets?
Yes, with minor differences. Conditional formatting is under Format > Conditional formatting, and formulas use the same syntax. The steps are nearly identical.
How do I change the answer word?
Simply edit the cell that contains the secret word (e.g., H1). The formulas and formatting will update automatically.
Can I make it check if my guess is a real word?
Yes, but you need a word list. Put a list of valid 5-letter words in a column (say K1:K100), then use data validation or a formula to flag invalid guesses. Without a list, Excel can't know if a word is real.
Why does my duplicate letter turn yellow when it should be gray?
The simple formula doesn't handle duplicates correctly. To fix it, you'd need to count occurrences in both the guess and the answer, which requires array formulas. For casual play, you can manually override the color by editing the conditional formatting rule for that cell.
Can I add a timer or score?
Yes, you can use the NOW() function to record start and end times, and calculate elapsed time. For a score, you could count the number of guesses used. But that's extra work beyond the basic game.