Highlight only last cell in column that has values if a condition is met

duteberta

Board Regular
Joined
Jun 14, 2009
Messages
92
Office Version
  1. 365
Platform
  1. MacOS
I'm struggling to find the write formula to write in Conditional Formatting to highlight ONLy the last cell in each column that has a value but only on the condition that a value above is met.

So in my case if the value in Row 6 = "YES" then highlight the last cell in that column that has a value. I tried using this to no avail...

=IF(C$6="YES",COUNTA($C$5:$C$999)=ROW($C11))

Here is a screenshot of what I'm working on...
 

Attachments

  • Screenshot 2024-06-18 at 10.05.18 AM.png
    Screenshot 2024-06-18 at 10.05.18 AM.png
    202.5 KB · Views: 26

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try
Excel Formula:
=and(C$6="YES",COUNTA(C$11:C$999)=ROW()-row(C$11)+1)
 
Upvote 0
There are no row numbers in your screenshot, but your formula is checking for C6 to be YES.

Select A11 to wherever your conditional range ends
=AND(A$6="YES",A11<>"",A12="")

This assumes to blanks in a column will indicate no more date
 
Upvote 0
Or this:
Book1
CDEFGHIJ
5NameNameNameNameNameNameNameName
6NoNoNoNoNoNoYesNo
7SerialSerialSerialSerialSerialSerialSerialSerial
8ModelModelModelModelModelModelModelModel
9
10BatteryBatteryBatteryBatteryBatteryBatteryBatteryBattery
11Info1Info1Info1Info1Info1Info1Info1Info1
12Info2Info2Info2Info2Info2Info2Info2Info2
13Info3Info3Info3Info3Info3Info3Info3Info3
14Info4Info4
15Info5Info5
16Info6
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C11:J20Expression=IF(C$6="Yes",COUNTA(C11:C$20)=1)textNO
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,747
Messages
6,180,719
Members
452,995
Latest member
isldboy

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