@Combination functions to Grade timelines in Excel Gantt

%3CLINGO-SUB%20id%3D%22lingo-sub-2211486%22%20slang%3D%22en-US%22%3E%40Combination%20functions%20to%20Grade%20timelines%20in%20Excel%20Gantt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2211486%22%20slang%3D%22en-US%22%3E%3CP%3E%40members%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Erecommendations%20will%20be%20great%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20timelines%20in%20excel%20with%203%20different%20dates.%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSTRONG%3EAction%3A%3C%2FSTRONG%3E%20I%20want%20to%20be%20able%20to%20grade%20the%20timelines%20to%20reflect%20the%202%20differences%20as%20in%20line%209%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3EThe%20formula%20I%20have%20formula%20which%20I%20applied%20conditional%20formatting%20but%20can%20get%20them%20all%20as%20green%3CUL%3E%3CLI%3E%3DIF(AND(AF%245%26gt%3B%3D%24G9%2CAF%245%26lt%3B%3D%24I9)%2C%22X%22%2C%22%22)%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20do%20I%20combine%20following%20outcomes%20needed%20below%20so%20I%20can%20conditional%20format%20by%20Y%20and%20X%3C%2FP%3E%3CUL%3E%3CLI%3EAs%20in%20line%209%20manually%20done%3CUL%3E%3CLI%3EStart%20date%20-%20Delivery%20to%20LOB%20-%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3DIF(AND(AE%245%26gt%3B%3D%24G9%2CAE%245%26lt%3B%3D%24H9)%2C%22X%22%2C%22%22)%3C%2FLI%3E%3CLI%3EThen%20Delivery%20to%20LOB%20%E2%80%93%20End%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3DIF(AND(AE%245%26gt%3B%3D%24H9%2CAE%245%26lt%3B%3D%24I9)%2C%22Y%22%2C%22%22)%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image002.jpg%22%20style%3D%22width%3A%20639px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F263790i35244AFBABAE9FB3%2Fimage-dimensions%2F639x99%3Fv%3Dv2%22%20width%3D%22639%22%20height%3D%2299%22%20role%3D%22button%22%20title%3D%22image002.jpg%22%20alt%3D%22image002.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2211486%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2211512%22%20slang%3D%22en-US%22%3ERe%3A%20%40Combination%20functions%20to%20Grade%20timelines%20in%20Excel%20Gantt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2211512%22%20slang%3D%22en-US%22%3EI'm%20not%20sure%20where%20these%20X%20and%20Y%20are%20going%20but%20guessing%20they%20are%20in%20the%20cells%20that%20are%20turning%20green%2Flight%20green.%20So%20a)%20yes%20you%20can%20combing%20those%20conditions%3A%3CBR%20%2F%3E%3DIF(AND(AE%245%26gt%3B%3D%24G9%2CAE%245%26lt%3B%3D%24H9)%2C%22X%22%2CIF(AND(AE%245%26gt%3B%3D%24H9%2CAE%245%26lt%3B%3D%24I9)%2C%22Y%22%2C%22%22))%3CBR%20%2F%3Ebut%20b)%20you%20also%20don't%20need%20to%20put%20X%20and%20Y%20in%20those%20cell%20to%20do%20the%20conditional%20formatting.%20Conditional%20formatting%20offers%20custom%20formula%20option%20and%20just%20use%20the%20conditional%20part%20of%20your%20IF%20statements%3A%3CBR%20%2F%3EDark%20Green%3CBR%20%2F%3Eif%20the%20range%20is%20AE5%3AAZ100%3CBR%20%2F%3EFormula%20is%20%3DAND(AE%245%26gt%3B%3D%24G9%2CAE%245%26lt%3B%3D%24H9)%20OR%20%3D(AE%245%26gt%3B%3D%24G9)*(AE%245%26lt%3B%3D%24H9)%3CBR%20%2F%3Ethen%20do%20the%20same%20for%20the%20light%20green%20conditional%20formatting%20(NOTE%3A%20you%20have%20overlap%20for%20the%20condition%20when%20AE5%20%3D%20H9%20so%20change%201%20to%20%26lt%3B%20or%20%26gt%3B%20instead%20%26lt%3B%3D%20or%20%26gt%3B%3D%20)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2211527%22%20slang%3D%22en-US%22%3ERe%3A%20%40Combination%20functions%20to%20Grade%20timelines%20in%20Excel%20Gantt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2211527%22%20slang%3D%22en-US%22%3EThank%20you%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%20going%20to%20try%20your%20suggestion%20now%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

@members

 

recommendations will be great

 

I have timelines in excel with 3 different dates.

 

Action: I want to be able to grade the timelines to reflect the 2 differences as in line 9

 

  • The formula I have formula which I applied conditional formatting but can get them all as green
    • =IF(AND(AF$5>=$G9,AF$5<=$I9),"X","")

 

How do I combine following outcomes needed below so I can conditional format by Y and X

  • As in line 9 manually done
    • Start date - Delivery to LOB -       =IF(AND(AE$5>=$G9,AE$5<=$H9),"X","")
    • Then Delivery to LOB – End          =IF(AND(AE$5>=$H9,AE$5<=$I9),"Y","")

 

image002.jpg

9 Replies
I'm not sure where these X and Y are going but guessing they are in the cells that are turning green/light green. So a) yes you can combing those conditions:
=IF(AND(AE$5>=$G9,AE$5<=$H9),"X",IF(AND(AE$5>=$H9,AE$5<=$I9),"Y",""))
but b) you also don't need to put X and Y in those cell to do the conditional formatting. Conditional formatting offers custom formula option and just use the conditional part of your IF statements:
Dark Green
if the range is AE5:AZ100
Formula is =AND(AE$5>=$G9,AE$5<=$H9) OR =(AE$5>=$G9)*(AE$5<=$H9)
then do the same for the light green conditional formatting (NOTE: you have overlap for the condition when AE5 = H9 so change 1 to < or > instead <= or >= )
Thank you going to try your suggestion now

@mtarler 

Hi Mtarler
so this formula gives me the separations =IF(AND(AE$5>=$G9,AE$5<=$H9),"X",IF(AND(AE$5>=$H9,AE$5<=$I9),"Y",""))
I am now struggling to show the cut off to apply to the rows below in the conditional formating. Not sure where I am getting it wrong
I want to format the cells with X different colour and the cells with Y different colour

Sry you've lost me. What do you mean "I am now struggling to show the cut off to apply to the rows below in the conditional formating."

Apologies if i'm not clear

I have 3 dates for my duration
What I want to do is to show the duration for (Start date - Delivery to LOB Date) one colour
and then
(Delivery to LOB date – End Date) a separate colour under conditional formatting throughout the applicable rows
I get all that. I don't understand your statement about "...the cut off to apply to rows below..." and hence don't understand what you are having trouble with in achieving your goal.
It is always much easier if you can attach the workbook or a stripped down version of it.
You indicated that the "x" and "y" formula worked so all you had to do is apply 2 conditional formats to the whole region. 1 for the dark green and 1 for the light green.

@mtarler 

First time posting here.

 

Hi, I have attached a sample. I appreciate your patience.

 

 

@Khadd3243 no problem, that is why we volunteer.  so I didn't see any conditional formatting on the sheet so i added 2 rules.  Each was Applied to columns H:CK as shown in the conditional rules manager box below:

mtarler_0-1615839920184.png

You can also see the formula that it is using on the left.

BTW, I formatted both the text color and background color the same so all those "X" and "Y" values 'disappear'

To modify, just click the 'Edit rule...' button and you will get a box like this:

mtarler_1-1615840087894.png

you can see on the upper half that the 'Format only cells that contain' option was selected and on the lower half I specified Cell Value = "Y" as the condition.  To modify the formatting options like the text color and background color just click the Format button.

You can also see the last option on the upper half says "Use a formula to determine which cells to format" and that is the custom formula option I mentioned earlier whereby you could use the conditionals that determine if the cell should be an "X" or "Y" to DIRECTLY determine if that cell should be Dark Green or Light Green.  If you ever decide to use that, just remember to make the formula based on the upper left corner cell from the Applies To section just like the formula you made to be inside the cell before you fill down and fill right.

Hope that all helps.

@mtarler
Thanks for the response. This was very helpful.