Forum Discussion

Laosi's avatar
Laosi
Copper Contributor
May 15, 2025

Conditional Formatting for multiple range

I wonder can we make conditional formatting in excel to hightlight certain values in multiple ranges in a couple of certain columns?

ABCDEFG
1valuePercentages of TotalvaluePercentages of TotalvaluePercentages of Total
 109611226114561
 502854276728
 191021102510
 178100197100237100
       
2ValuesPercentage
of Total
ValuesPercentage
of Total
ValuesPercentage
of Total
 101021
 000010
 101021
 434263
 118149158
 171318122313
 171321142715
 201522152715
 312332223620
 282131213419
 130100144100173100
       
3ValuesPercentage
of Total
ValuesPercentage
of Total
ValuesPercentage
of Total
 7645854610246
 424241
 291732173716
 7473,8383
 201121112611
 636362
 127147177
 313131
 747383
 101052
 313131
 000000
 000000
 168100183100219100

so for example all 3 tables in a worksheet, all tables had different row lengths and i want to hightlight automatically 3 largest percentages values in range between "Percentage of Total" and "100" which is the sum of percentages in each tables.so for Table 1 all of cells between "Percentage of Total" and "100" will be hightlight,for table 2 highlight values are 23 21 15 (1st column), 22 21 15 (2nd column), 20 19 15 (3rd column)and for table 3 it would be 45 17 11 (1st column), 46 17 11 (2nd column) and 46 16 11 (3rd column)

Is there a way to do that?

1 Reply

  • How about this:


    1. Select the First Table's Percentage Columns (e.g., B2:B10, D2:D10, F2:F10).
    2. Go to Home > Conditional Formatting > New Rule.
    3. Choose `"Use a formula to determine which cells to format"`.
    4. Use below formula

    =B2>=LARGE(B$2:B$10,3)

     

    • Replace B$2:B$10 with the appropriate range in each table.
    • Change column letters (B, D, F) accordingly for other percentage columns.
    • The LARGE() function retrieves the top 3 values in the specified range.

    5. Click Format, choose a highlighting style (like a bold background color), and OK.
    6. Repeat the process for Table 2 and Table 3, adjusting the formula ranges.

Resources

OSZAR »