Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16

Thread: Generate collour coding in gant schedule in excel

  1. #11
    Magician navic's Avatar
    Join Date
    Aug 2013
    Location
    Europe, Croatia
    Posts
    885
    Articles
    0
    Excel Version
    Excel 2013


    Register for a FREE account, and/
    or Log in to avoid these ads!

    Quote Originally Posted by magnus.er1 View Post
    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
    My personal Web Excel Tutorials
    Attention! In the formulas as a delimiter I use a semicolon (; ) if you using my formula, then perhaps you need to use a comma (,)
    Also for a decimal number I use a comma (,) you may need to use point (.) instead of

  2. #12
    Hello,
    Thanks for your quick reply,
    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. #13
    Magician navic's Avatar
    Join Date
    Aug 2013
    Location
    Europe, Croatia
    Posts
    885
    Articles
    0
    Excel Version
    Excel 2013
    Quote Originally Posted by magnus.er1 View Post
    but it is missing an important function,
    In my Excel 2013

    Click image for larger version. 

Name:	magnus_er1_2.png 
Views:	4 
Size:	19.4 KB 
ID:	6246

    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?
    Last edited by navic; 2017-01-12 at 08:28 PM.
    My personal Web Excel Tutorials
    Attention! In the formulas as a delimiter I use a semicolon (; ) if you using my formula, then perhaps you need to use a comma (,)
    Also for a decimal number I use a comma (,) you may need to use point (.) instead of

  4. #14
    Magician navic's Avatar
    Join Date
    Aug 2013
    Location
    Europe, Croatia
    Posts
    885
    Articles
    0
    Excel Version
    Excel 2013
    Quote Originally Posted by navic View Post
    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";""))
    Click image for larger version. 

Name:	magnus_er1_3.png 
Views:	6 
Size:	23.3 KB 
ID:	6247
    My personal Web Excel Tutorials
    Attention! In the formulas as a delimiter I use a semicolon (; ) if you using my formula, then perhaps you need to use a comma (,)
    Also for a decimal number I use a comma (,) you may need to use point (.) instead of

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

  6. #16
    Magician navic's Avatar
    Join Date
    Aug 2013
    Location
    Europe, Croatia
    Posts
    885
    Articles
    0
    Excel Version
    Excel 2013
    You are welcome
    My personal Web Excel Tutorials
    Attention! In the formulas as a delimiter I use a semicolon (; ) if you using my formula, then perhaps you need to use a comma (,)
    Also for a decimal number I use a comma (,) you may need to use point (.) instead of

Page 2 of 2 FirstFirst 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
  •