Conditional Formatting using advanced formulas

FelipeVaz

New Member
Joined
Sep 30, 2014
Messages
37
Hi folks, how are you doing!

I'm facing a challenge trying to find out and conditional formatting a vertical cell range against a horizontal cell range, both with dates. At least, that is what I think to be my challenge, :LOL::LOL:!

In the link below a model and instructions:

OneDrive file link: http://1drv.ms/1M51pdH

Ps.: using formulas, not VBA.

Thanks
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Try this formula for conditional formatting to colour all cells yellow

=COUNTIFS(DataInício,"<="&B7,DataFim,">="&B7)

If you want to distinguish yellow and blue it's probably easier to add a formula to checklist spreadsheet, e.g. in S2 copied down

=COUNTA(B2:R2)

Name that column "Counter"

Now for blue condition use

=COUNTIFS(DataInício,"<="&B7,DataFim,">="&B7,Counter,17)

You need to have blue condition appear in the list before the yellow condition
 
Upvote 0
Try this formula for conditional formatting to colour all cells yellow

=COUNTIFS(DataInício,"<="&B7,DataFim,">="&B7)

If you want to distinguish yellow and blue it's probably easier to add a formula to checklist spreadsheet, e.g. in S2 copied down

=COUNTA(B2:R2)

Name that column "Counter"

Now for blue condition use

=COUNTIFS(DataInício,"<="&B7,DataFim,">="&B7,Counter,17)

You need to have blue condition appear in the list before the yellow condition


Works perfectly! Thanks Barry houdini.

I was thinking wrong doing in that way. gooosh!

Thanks:)
 
Upvote 0

Forum statistics

Threads
1,215,227
Messages
6,123,743
Members
449,116
Latest member
alexlomt

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