Smart Systems for Home

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

Excel Drop Down List Yes No with Color

· 6 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

Creating a drop-down list in Excel with Yes/No options and color formatting helps you quickly identify responses and maintain data consistency. This method uses Data Validation for the list and Conditional Formatting to apply colors based on selection, making spreadsheets easier to scan and manage. No add-ins or macros are needed—just Excel’s built-in tools. The result is a clean, interactive cell that turns green for Yes and red for No, with no manual input required.

What You'll Need

  • Microsoft Excel (2010 or later, on Windows or macOS)
  • A blank worksheet or existing data range where you want the drop-down
  • Access to the Data tab and Home tab in the Excel ribbon

Step-by-Step

  1. Open your Excel workbook and select the cell or range of cells where you want the Yes/No drop-down list. For example, click cell B2, or select B2:B20 if you want multiple cells to use the same list.
  2. Go to the Data tab on the Excel ribbon. In the Data Tools group, click Data Validation. A dialog box will appear.
  3. In the Data Validation dialog, under the Settings tab, set Allow: to List. In the Source: box, type: Yes,No (without quotes). Ensure there is no extra space before or after the comma. Click OK.
  4. Now, select the same cell or range again (B2:B20). Go to the Home tab, then click Conditional Formatting in the Styles group.
  5. Choose New Rule from the dropdown menu. In the New Formatting Rule dialog, select Format only cells that contain.
  6. In the Rule Description section, set the first dropdown to Cell Value, the second to equal to, and in the box next to it, type Yes (without quotes).
  7. Click the Format button. In the Format Cells dialog, go to the Fill tab and choose a green color (e.g., light green). Click OK, then click OK again to apply the rule.
  8. Repeat steps 5–7 to create a second rule: this time, set the condition to No and choose a red color (e.g., light red). Make sure the rule order in the Conditional Formatting Rules Manager shows the Yes rule above the No rule if both apply to the same cell range.
  9. Test the drop-down by clicking one of the formatted cells. A small arrow should appear. Click it and choose either Yes or No. The cell background should change color immediately.

Common Mistakes

  • Typos in the Source field: If you type yes,no in lowercase, Excel will treat it as text, and conditional formatting may not trigger if the cell contains Yes (capitalized). Always match case exactly.
  • Using spaces in the Source: Yes, No with a space after the comma will cause the list to show Yes and No (with space), breaking conditional formatting. Use Yes,No without spaces.
  • Applying conditional formatting to the wrong range: If you format only one cell but the drop-down is applied to a range, only the first cell will color-change. Always select the full range before setting formatting.
  • Forgetting to click OK twice: After setting a conditional formatting rule, you must click OK in both the Format Cells dialog and the New Rule dialog. Missing one prevents the rule from saving.
  • Rule order conflicts: If you create multiple rules for overlapping conditions, Excel applies them in order. Place the Yes rule above the No rule in the Conditional Formatting Rules Manager to ensure correct behavior.

Tips

  • To make the drop-down list reusable in other columns, copy the formatted cell and use Paste > Formats to apply the validation and color rules to new cells.
  • If you need more than two options (e.g., Yes, No, N/A), expand the Source to Yes,No,N/A and create additional conditional formatting rules for each value.
  • Use a named range for the source: Select cells A1:A2, type Yes in A1 and No in A2, then name the range "YesNoList" via the Name Box. In Data Validation, use =YesNoList instead of typing the list manually. This makes updates easier later.
  • For visual clarity, adjust the font color to white for the red background (and dark gray for green) so text remains readable.
  • Lock the cells after setup if you want to prevent accidental edits: Select the range, right-click > Format Cells > Protection > check Locked, then go to Review > Protect Sheet.

Troubleshooting

  • Drop-down arrow doesn’t appear: Confirm Data Validation is applied to the correct cell range. Go to Data > Data Validation and check the range in the Applies to field. If blank, reselect the range and reapply.
  • Colors don’t change when selecting Yes/No: Check the conditional formatting rules. Go to Home > Conditional Formatting > Manage Rules. Verify both rules exist, the cell values match exactly (No extra spaces or quotes), and the rules are enabled. If the rule applies to a different range, edit it to match your target cells.
  • Rule disappears after reopening Excel: Save the file as .xlsx or .xlsm (not .csv). CSV files do not support formatting or data validation.
  • Color applies to empty cells: In Conditional Formatting, edit the rule and under Edit Rule, change the formula to: =AND(B2="Yes",B2<>"" (replace B2 with the top-left cell of your range). This ensures only non-blank cells are formatted.
  • Excel crashes or freezes when applying formatting: Restart Excel. If the issue persists, disable add-ins temporarily via File > Options > Add-ins > Manage COM Add-ins > Go > uncheck all > OK. Test again.

Frequently Asked Questions

Can I use this method with Excel Online?

Yes, Excel Online supports Data Validation and Conditional Formatting. The steps are identical, though the ribbon layout may appear slightly different. Use a modern browser like Edge or Chrome for best results.

What if I want the color to change based on another cell’s value?

You can use a formula-based conditional formatting rule. For example, if cell C2 controls B2’s color, set the rule to: =C2="Complete" and format accordingly. But for a direct Yes/No drop-down, stick to cell value matching.

Can I add icons or images instead of colors?

Excel doesn’t support icons in conditional formatting for drop-downs. You can use symbols like ✔ or ✗ via Font settings (e.g., Wingdings), but not dynamic images. Stick with color for reliability.

Will this work on Excel for iPad or Android?

Yes, the mobile apps support Data Validation and Conditional Formatting. The interface is simplified, so you may need to tap the cell, choose Data Validation from the menu, then set the list. Formatting rules appear under the Style menu.

Can I make this list work across multiple worksheets?

Yes, but you must apply Data Validation and Conditional Formatting separately to each sheet. You cannot link validation rules across sheets. Copy and paste the formatted cell to other sheets to save time.

Why does Excel sometimes show #VALUE! when I select Yes or No?

This occurs if another formula in the cell references this cell and expects a number. Check for formulas like =B2*10—if B2 contains text, it errors. Wrap formulas in IFERROR or use VALUE(B2) if numeric conversion is needed.