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: 20

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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,223,723
Messages
6,174,113
Members
452,545
Latest member
boybenqn

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