Conditional Formatting

Joined
Dec 8, 2017
Messages
16
Hi,

I'm trying to highlight cells that = "0" in a row but only up to a total of what's in column "E" and leave anything in the same Row after the total is achieved.

Example below, top half is what I have, then below is the result I'm after.

So, the top row only has the first 3 cells highlighted as the total is 3 and leaves the remaining cell that equals "0"

Then the row below is 5 free and I have 5 cells the equal "0" so all get highlighted.

Look forward to any help.

Thanks.

1668425202696.png
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
The formula needs to look at row 4 not row 1
 
Upvote 0
Please use the formula I posted rather than changing it.
 
Upvote 0
Hi,,

This worked but only if the "0"s are less or equal to E4 number.

E.G... E4 equals 5 and I have 6 "0"s in that row it won't work, I'd be expecting the fisrt 5 "0"s left to right to appear in green.

Below is what i'm using.

Thanks.
1668496816051.png
 
Upvote 0
That is still not the formula I suggested. It needs to be
Excel Formula:
=AND(F4=0,COUNTIFS($F4:F4,0)<=$E4)
 
Upvote 0
Sorry , all sorted and working thank you.

Don't suppose you know how to count cells with conditional formatting when you do a colour check on the cell in doesn't return a colour code.
 
Upvote 0
That would need either VBA or a formula that replicates the CF rules.
 
Upvote 0

Forum statistics

Threads
1,215,770
Messages
6,126,791
Members
449,336
Latest member
p17tootie

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