Thread: Generate collour coding in gant schedule in excel

1. Register for a FREE account, and/

Originally Posted by magnus.er1
cells that has no planned date gets an Y , i have also updated the attached example xls sheet with the problem.
In your example sheet, formula in K5 cell is not correct

=IF(AND(K\$3>=\$F5;K\$3<=\$G5);"X";IF(K\$3<=\$H5;"Y";""))

You need formula as below

=IF(AND(K\$3>=\$F5;K\$3<=\$G5);"X";IF(K\$3=\$H5;"Y";""))

btw: please see screenshot in my post #9

2. Hello,
Yes the code that you provided me with is working but it is missing an important function, in my previously attached xlx document you find my modified formula that fills the gap between end date and new endnote with (Y).
As i tried to explain, when using my modified formula the gaps will be filled in, but it will also fill with y in the cells before the "start date"

Thanks in advance Magnus

3. Originally Posted by magnus.er1
but it is missing an important function,
In my Excel 2013

My apologies, but I can not help you more. Or I do not understand you well.
English is not my native language.

BTW:
Let's try a different way.
Please attach an Excel file with the expected results. (Forget your formula)

PS. Do you perhaps want to "Y" in cells O5 and P5 on the screenshot?

4. Originally Posted by navic
PS. Do you perhaps want to "Y" in cells O5 and P5 on the screenshot?
If answer "Yes" then in Cell K5 try formula below (copy across)
Code:
`=IF(AND(K\$3>=\$F5;K\$3<=\$G5);"X";IF(AND(K\$3>=\$G5;K\$3<=\$H5);"Y";""))`

5. Hello,
Thanks Navic, now everything works,
Thanks for a good support
Br Magnus

6. You are welcome

Page 2 of 2 First 1 2

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•