Smart Systems for Home

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

Excel Drop Down List Keep Formatting: Step-by-Step

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

When you add a drop-down list to an Excel cell, the formatting you applied to that cell (like fill color, borders, or font) often disappears or resets when you select an item. The core reason is that Excel's data validation, by default, clears the cell's formatting when the validation is applied or when you change the cell's content. To keep your formatting intact, you need to apply the formatting after the drop-down list is created, or use a combination of techniques that preserve the cell's appearance. This guide walks you through the exact steps to ensure your drop-down list retains its formatting, whether you're using a simple list, a named range, or a table.

What You'll Need

  • Microsoft Excel (2016, 2019, 2021, or Microsoft 365) on Windows or Mac. The steps are nearly identical across versions, though menu labels may differ slightly.
  • A worksheet with a cell or range where you want the drop-down list.
  • Your list of items (typed in a column, a named range, or a table). If you haven't created the list yet, do that first; it's the source for the drop-down.

Step-by-Step

  1. Create your drop-down list first. Select the cell or range where you want the drop-down. Go to the Data tab and click Data Validation. In the dialog, under Allow, choose List. In the Source box, either type your items separated by commas (e.g., Red, Green, Blue) or select a range that contains your list. Click OK. Your drop-down is now active.
  2. Apply your formatting after the list is created. Now that the data validation is in place, select the cell(s) again. Go to the Home tab and apply any formatting you want: fill color, font style, borders, number format, alignment, etc. This is the most reliable way to keep formatting because Excel will not overwrite formatting you apply after the validation is set.
  3. Test the drop-down. Click the cell, choose an item from the list, and then click away and back. The formatting should remain. If it doesn't, proceed to the next step.
  4. Use a named range for the source (optional but recommended). If your list is in a range that might grow or shrink, define a named range. Select the list cells, go to the Formulas tab, click Define Name, give it a name (e.g., MyList), and click OK. Then in Data Validation, set Source to =MyList. This doesn't affect formatting directly, but it makes your drop-down more robust and easier to manage.
  5. If formatting still resets, use a macro (for advanced users). If you're comfortable with VBA, you can force Excel to reapply formatting whenever the cell changes. Right-click the sheet tab, select View Code, and paste a simple event macro that sets the cell's interior color and font after a change. For example:
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Not Intersect(Target, Range("A1:A10")) Is Nothing Then
            Target.Interior.Color = RGB(255, 255, 0) ' Yellow fill
            Target.Font.Bold = True
        End If
    End Sub
    This macro runs every time a cell in A1:A10 changes, reapplying the formatting. Note that macros must be saved as a macro-enabled workbook (.xlsm).
  6. Alternatively, use a table for the list source. Convert your list range to an Excel table (select the range, press Ctrl+T). Then in Data Validation, set the Source to the table column (e.g., =Table1[Items]). Tables automatically expand, and they don't interfere with cell formatting as long as you format the cell after creating the validation.
  7. For conditional formatting that depends on the selected value, set it up separately. If you want the cell's color to change based on the selected item (e.g., red for "High", green for "Low"), use Conditional Formatting. Select the cell, go to Home > Conditional Formatting > New Rule > Use a formula, and enter a formula like =$A$1="High" and set the format. This overrides any static fill color when the condition is true, but it won't remove your base formatting.

Common Mistakes

  • Applying formatting before creating the drop-down. This is the most common error. Excel's data validation process clears existing formatting when you set the validation. Always format after.
  • Using a range that includes blank cells. If your source range has blanks, Excel will show them as empty items in the drop-down. Keep the source range tight, or use a named range that excludes blanks.
  • Formatting only the first cell. If you applied formatting to a range before adding the validation, only the first cell might keep it. Reapply formatting to the entire range after validation.
  • Forgetting that copying cells with validation copies formatting too. When you copy a cell with a drop-down, the formatting and validation are copied together. If you paste into a cell that had different formatting, the pasted formatting overrides it. Use Paste Special > Validation to copy only the validation.

Tips

  • Use a table for your list source. Tables are dynamic, so adding new items automatically updates the drop-down without you having to change the source range.
  • Protect your worksheet to prevent accidental formatting changes. After setting up your drop-downs and formatting, go to Review > Protect Sheet. If you allow users to select cells but not format them, the formatting stays intact.
  • Use the Format Painter to copy formatting to other cells. If you have multiple cells with the same drop-down and formatting, set up one cell perfectly, then use Format Painter to copy the formatting (not the validation) to others. Then add the validation separately using Data Validation.
  • Consider using a combo box (ActiveX control) for more control. If you need a drop-down that always shows its formatting even when selected, an ActiveX combo box from the Developer tab can be linked to a cell and retains its own formatting. This is more complex but gives you more design freedom.

Troubleshooting

If your formatting still disappears after selecting an item:

  1. Check if you have any conditional formatting rules that might be overriding. Go to Home > Conditional Formatting > Manage Rules. If there's a rule that applies to the cell, it may be changing the format based on the selected value. Adjust the rule or delete it.
  2. Make sure you're not using a macro that clears formatting. If you have a Worksheet_Change macro, it might be resetting the cell's format. Review the code and ensure it only does what you intend.
  3. Try copying the cell to a new location. Sometimes Excel's internal state gets corrupted. Copy the cell with the drop-down, paste it elsewhere, and see if formatting holds. If it does, delete the original and use the new one.
  4. Check if the workbook is in compatibility mode. If the file is saved as .xls (Excel 97-2003), some formatting features may behave differently. Save as .xlsx and try again.
  5. If nothing works, recreate the drop-down from scratch. Delete the cell's contents and validation, then reapply validation and formatting in that order.

Frequently Asked Questions

Why does Excel clear my formatting when I add a drop-down list?

Excel's data validation feature, when applied, resets the cell's formatting to the default. This is by design to avoid conflicts between the validation and the cell's appearance. The solution is to format the cell after adding the validation.

Can I keep the formatting if I use a list from another sheet?

Yes. The source range can be on another sheet, but you'll need to define a named range for it (since direct cross-sheet references in Data Validation are not allowed). The formatting of the cell with the drop-down is independent of where the list is stored.

Will the formatting stay if I sort or filter the data?

Sorting and filtering can move cells, and the formatting moves with them. However, if you use a table, the formatting is applied to the entire table column, so it remains consistent. For regular ranges, the formatting stays with the cell as long as you don't delete it.

How do I make the drop-down arrow always visible?

The arrow appears only when you click the cell. If you want it always visible, you can use a combo box from the Developer tab, or you can use a simple trick: place a small image or shape over the cell that looks like an arrow, but that's not interactive. The standard Excel drop-down arrow is only visible on selection.

Can I use a drop-down list without data validation?

Yes, you can use an ActiveX combo box or a form control combo box. These are placed over the worksheet and can be linked to a cell. They retain their own formatting and don't affect the cell's formatting. They are found under the Developer tab.

Why does my drop-down list show blanks?

Blanks appear when your source range includes empty cells. To remove them, either adjust the source range to exclude blanks, or use a dynamic named range formula like =OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1) that automatically shrinks to the used cells.