Highlighting only 1 cell

collettegee

New Member
Joined
Aug 17, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi I have written the following formula as a conditional formula =AND(C$20=Sheet1!$D$46,C21>=Sheet1!$D$47)
which highlights values based on 2 criteria. This can give me up to 3 results and i only want the closest one to one of the specific criteria values not all possible answers. How do i modify the formula to do this please. .

1660752899766.png
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi I have written the following formula as a conditional formula =AND(C$20=Sheet1!$D$46,C21>=Sheet1!$D$47)
which highlights values based on 2 criteria. This can give me up to 3 results and i only want the closest one to one of the specific criteria values not all possible answers. How do i modify the formula to do this please. .

View attachment 71818
Add to your message not a confusing image, but clear information, as a table with visible references, values, formulas etc., Use add-on XL2BB - Excel Range to BBCode, Dropbox etc.
 
Upvote 0
I hope these images are correct



=AND(C$12=Sheet1!$D$26,C13>=Sheet1!$D$27) is the conditional formatting

1660758930532.png


1660758973541.png
 
Upvote 0
I hope these images are correct



=AND(C$12=Sheet1!$D$26,C13>=Sheet1!$D$27) is the conditional formatting

View attachment 71842

View attachment 71843

Is it what you need?

Book1
CDEFGH
11
12345678
132.201.801.300.700.000.00
140.003.002.802.401.901.50
150.003.703.303.002.702.40
16
17
18
19
20
21
22
23
24
25
265
270.5
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E13:E15Expression=COUNTIF(D$13:D13,">"&D$27)=1textNO
 
Upvote 0
Book1
CDEFGH
12345678
132.201.801.300.700.000.00
140.003.002.802.401.901.50
150.003.703.303.002.702.40
16
17
18
19
20
21
22
23
24
25
265
270.5
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D13:D25Expression=COUNTIF(D$13:D13,">"&D$27)=1textNO
 
Upvote 0

Forum statistics

Threads
1,223,945
Messages
6,175,555
Members
452,652
Latest member
eduedu

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