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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
How about
Excel Formula:
=AND(F4=0,COUNTIFS($F4:F4,0)<=$E4)
 
Upvote 0
Did you select the whole range it needs to work on before applying the rule?
 
Upvote 0
What is the applies to range?
 
Upvote 0
1668435654899.png

So, outcome I'm after,

B12:I12 highlights in yellow up to the total of cell A12....... A12 has 6 so 6 "0"s highlight up to the total from left to right.

Example on row (15), H15 isn't highlighted as A15 = 4 and you have 4 "0"s before you get to H15,
 
Upvote 0
That is exactly what the formula I supplied does.
Fluff.xlsm
EFGHIJKLMN
1
2
3
43406040220
55011050200
Data
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F4:N5Expression=AND(F4=0,COUNTIFS($F4:F4,0)<=$E4)textNO


Can you please answer my question.
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,376
Members
449,080
Latest member
Armadillos

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