Formatting Issues

Create State and People Drop-Down Lists in Excel

Huma Ashraf ChHuma Ashraf Ch Nov 18, 2026 868 views

Question details

Create drop-down lists for a state and a people-count threshold, calculate profit for the selected state, and highlight counts above the threshold.

Create State and People Drop-Down Lists in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains state, profit, and people-count data that should respond to user selections.
Observed behavior
The desired worksheet displays total profit for the chosen state and highlights people counts exceeding the chosen threshold.
Before you start

Identify the state, profit, and people-count columns and choose empty cells for the drop-down lists and result. The example below uses columns A, B, and D for data, M10 for the state, N14 for the threshold, and O10 for the profit total.

Solution 1Recommended

Set Up Excel Drop-Down Lists, SUMIFS, and Conditional Formatting

Use data validation for the selections, SUMIFS for the state total, and a formula-based rule to highlight people counts.

This example assumes data starts in row 2 and ends in row 100. Replace the example ranges with your actual columns and rows.

1
Create the source lists

Enter NSW, QLD, and VIC in H2:H4. Enter the numbers 1 through 9 in I2:I10.

2
Add the state drop-down

Select M10, then choose Data > Data Validation. Under Settings, choose List and enter =$H$2:$H$4 in the Source box. Select OK.

3
Calculate the selected state's profit

Select O10 and enter =SUMIFS($B$2:$B$100,$A$2:$A$100,M10). This sums profits in column B for rows whose state in column A matches M10.

4
Add the people-count drop-down

Select N14 and choose Data > Data Validation. Choose List, enter =$I$2:$I$10 in the Source box, and select OK.

5
Highlight counts above the threshold

Select D2:D100, then choose Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format. Enter =AND($N$14<>"",D2>$N$14), choose a format, and select OK.

6
Test the selections

Choose a state in M10 and a number in N14. Check that O10 shows the matching profit total and that counts above the selected number are highlighted.

Set Up Excel Drop-Down Lists, SUMIFS, and Conditional Formatting
Highlight entire rows: To highlight whole rows instead of only the people-count cells, select the full data range, such as A2:D100, and use =AND($N$14<>"",$D2>$N$14) as the conditional formatting formula.
Work with spreadsheets in WPS Office

Create Drop-Down Lists and Highlight Thresholds in WPS Spreadsheet

Use WPS Spreadsheet to set up state and people-count lists, calculate profit with SUMIFS, and format counts above the selected threshold.

  1. 1. Open the spreadsheet: Open WPS Spreadsheet and use Open to select your workbook. Enter the state choices in H2:H4 and numbers 1 through 9 in I2:I10.
  2. 2. Create the drop-down lists: Select M10 and use Data > Data Validation to create a List with source =$H$2:$H$4. Repeat for N14 with source =$I$2:$I$10.
  3. 3. Calculate state profit: In O10, enter =SUMIFS($B$2:$B$100,$A$2:$A$100,M10), adjusting the ranges to match your state and profit columns.
  4. 4. Apply conditional formatting: Select D2:D100 and use Home > Conditional Formatting to create a formula-based rule with =AND($N$14<>"",D2>$N$14). Choose a format and confirm the rule.
  5. 5. Check the results: Use the drop-down arrows in M10 and N14 to select values, then check the profit total in O10 and the highlighted counts.
Create data validation lists for state and people-count selections.Use SUMIFS and conditional formatting to analyze the selected data.Open and save Microsoft Excel XLSX files.Work in a familiar, easy-to-use spreadsheet interface.
microsoft office alternative - wps office

Frequently Asked Questions

Can I change the states in the drop-down list?

Yes. Edit the source cells H2:H4, or select M10 and update the Source range under Data > Data Validation if the list needs more cells.

Why does the SUMIFS result show zero?

Check that M10 matches a state in the state range and that the profit cells contain numbers. Also confirm that the state and profit ranges in the formula cover corresponding rows.

How do I highlight the entire row instead of just the people count?

Select the full data range, such as A2:D100, and create a formula-based conditional formatting rule using =AND($N$14<>"",$D2>$N$14). The fixed column reference keeps the rule pointed at column D.

What happens if no threshold is selected?

The example conditional formatting formula checks that N14 is not blank, so it will not highlight counts until a threshold is selected.