Tricky AND formula

Brian Sells

Board Regular
Joined
Oct 17, 2011
Messages
58
I have a Gantt style sheet that is for tracking projects. I have an AND formula that highlights cells according to the number of days but when the cell that has the number of days is blank, it still highlights one cell like there is a day. I was wondering if there is a way to nest an IFBLANK or something else in with the formula. This is the formula for the cell: =(IF(AND(F$5>=$D6,F$5<=$E6),"X","")) and cell C6 is where I input the number of days for the task. D6 and E6 have the dates in them and adjust according to the number of days entered in C6. Any help would be greatly appreciated.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
You can test for something empty/is blank like this:
Code:
C6=""
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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