highlight three closest values, higher or lower

jcmccaughan

New Member
Joined
Sep 17, 2016
Messages
1
hello all,

I have tried to tweak some of these formulas that are similar to what i am searching for but with no luck.

I have values in A1:A19 with a reference in
B1. I would like conditionally format the three rows A:D that hold the closest values, with higher or lower not being relevant.

can you help me out?

thanks,
J.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Try this. Make three conditions and change the red 1 to a 2 and 3 for the other two formulas.

=SMALL(INDEX(ABS($A$1:$A$19-$B$1),),1)=ABS($A1-$B$1)
 
Upvote 0
You might calculate the ABS difference and then highlight with conditional formating the lowest 3. (Format only top or bottom ranked values)


 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,392
Members
449,445
Latest member
JJFabEngineering

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