Conditional Formating Help

jmattingly85

New Member
Joined
Jul 12, 2010
Messages
37
Office Version
  1. 365
Platform
  1. Windows
I need some help with conditional formatting. Below is a sample of my data:

ABC
1Current7.92%
210%
39%
48%
57%
66%

I would like to add conditional formatting to Column C to highlight the cell (and three columns to the right) in Column C that cell B1 falls in between, rounding up to the nearest percent. So in this example, C4 would be highlighted. Is this possible?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
how about
=$D2=INDEX($D$2:$D$6,MATCH(ROUNDUP($B$1,2),$D$2:$D$6,-1))
in conditional formatting

for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
D2:G100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=$D2=INDEX($D$2:$D$6,MATCH(ROUNDUP($B$1,2),$D$2:$D$6,-1))

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK


Book7
ABCDEFGH
1Current7.92%lookup value returned
2210.00%0.08
339.00%
448.00%
557.00%
666.00%
Sheet1
Cell Formulas
RangeFormula
H2H2=INDEX($D$2:$D$6,MATCH(ROUNDUP($B$1,2),$D$2:$D$6,-1))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D3:G6,D2:E2,G2Expression=$D2=INDEX($D$2:$D$6,MATCH(ROUNDUP($B$1,2),$D$2:$D$6,-1))textNO
H2Expression=$D2=INDEX($D$2:$D$6,MATCH(ROUNDUP($B$1,2),$D$2:$D$6,-1))textNO
 
Upvote 0
This mostly worked, however the roundup part isn't quite working. See below:

Screenshot 2024-04-06 at 12.25.41 PM.png
 
Upvote 0
what formula did you use
works for me
=INDEX($K$7:$K$21,MATCH(ROUNDUP($J$5,2),$K$7:$K$21,-1))

NOTE the selection row - must be the same as the formula row
so
selection Applied to K7:K100
and
K7 in the formula - ROW 7 must match
=$K7=INDEX($K$7:$K$21,MATCH(ROUNDUP($J$5,2),$K$7:$K$21,-1))

whats the formula you are using and the applied to range


for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
K7:K100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=$K7=INDEX($K$7:$K$21,MATCH(ROUNDUP($J$5,2),$K$7:$K$21,-1))

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK

Book6
JKLM
1
2
3
4showing formula
57.91%0.08
6
715%
814%
913%
1012%
1111%
1210%
139%
148%
157%
166%
175%
184%
193%
202%
211%
Sheet3
Cell Formulas
RangeFormula
M5M5=INDEX($K$7:$K$21,MATCH(ROUNDUP($J$5,2),$K$7:$K$21,-1))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
K7:K21Expression=$K7=INDEX($K$7:$K$21,MATCH(ROUNDUP($J$5,2),$K$7:$K$21,-1))textYES
 
Upvote 0
If etaf's solution doesn't work for you then
• Is every percentage step represented in the list ?
If yes just something like this might work
Excel Formula:
=ROUND($K7,2)=ROUNDUP($J$5,2)

• If not and you just wanted the next largest number to match, you could try:
Excel Formula:
=XLOOKUP($J$5,$K$7:$K$21,$K$7:$K$21,-1,1)=$K7
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top