Highlight closest without going over

jac508

New Member
Joined
Jul 13, 2016
Messages
5
Hello! I am trying to create a scoring sheet for a price is right style of game. I want to be able to enter each person's guess in cells B2 through B19 and have it highlight the cell(s) that is/are closest without going over the actual price, which is found in cell B20. I know I need to create a new rule under conditional formatting, but I cannot figure out the formula. I've referenced a few other threads that address highlighting the closest cell, but I'm having trouble limiting it to be less than the reference cell. Any help is appreciated. Thank you!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Depends which version of excel you have (please update your Account details to show this).

Personally, I would use
Excel Formula:
=$B2=MAXIFS($B$2:$B$19,$B$2:$B$19,"<="&$B$20)
applied to B2:B19 as a CF rule.
 
Upvote 0
Solution
How about
+Fluff 1.xlsm
B
1
225
328
450
543
627
738
821
920
1026
1143
1232
1347
1450
1538
1637
1743
1835
1929
2034
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:B19Expression=B2=MAX(IF($B$20-$B$2:$B$19>=0,$B$2:$B$19))textNO
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,566
Members
449,089
Latest member
Motoracer88

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