Conditional Formatting || Formula

%3CLINGO-SUB%20id%3D%22lingo-sub-2755477%22%20slang%3D%22en-US%22%3EConditional%20Formatting%20%7C%7C%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2755477%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20I%20use%20this%20formula%20%3DAND(ISBLANK(A2)%2CTODAY()%26gt%3BA1)%20for%20conditional%20formatting%2C%20if%20I%20want%20to%20highlight%20A1%20%3F%3C%2FP%3E%3CP%3EMy%20requirement%20is%20to%20highlight%20the%20content%20of%20A1%20(date)%20if%20value%20in%20A2%20(date)%20is%20not%20available%20%26amp%3B%20A1(date)%20is%20in%20the%20past.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20address%20this%20condition%20using%20formula%20%3F%20or%20there%20is%20any%20other%20way%20to%20do%20this%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20help%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2755477%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2755593%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Formatting%20%7C%7C%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2755593%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1157567%22%20target%3D%22_blank%22%3E%40arunrj%3C%2FA%3E%26nbsp%3BThe%20formula%20shall%20work.%20Not%20sure%20what%20your%20problem%20is.%20Have%20you%20tried%20it%3F%3C%2FP%3E%3CP%3EAttached%20is%20a%20working%20example.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2762659%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Formatting%20%7C%7C%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2762659%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%20Thanks%20for%20the%20response%2C%20yea%2C%20it%20worked%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2766831%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Formatting%20%7C%7C%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2766831%22%20slang%3D%22en-US%22%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%22Query.JPG%22%20style%3D%22width%3A%20611px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311498i0B7144515958250D%2Fimage-dimensions%2F611x216%3Fv%3Dv2%22%20width%3D%22611%22%20height%3D%22216%22%20role%3D%22button%22%20title%3D%22Query.JPG%22%20alt%3D%22Query.JPG%22%20%2F%3E%3C%2FSPAN%3E%E2%80%83%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20this%20isn't%20working%2C%20any%20Idea%20%3F%3C%2FP%3E%3CP%3EIs%20it%20because%20the%20cell%20I%20am%20giving%20the%20conditional%20formatting%20is%20empty%20%3F%20but%20again%20one%20more%20condition%20I%20have%20provided%20right%20%3F%20Don't%20know%20why%20it%20isn't%20working.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2767371%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Formatting%20%7C%7C%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2767371%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1157567%22%20target%3D%22_blank%22%3E%40arunrj%3C%2FA%3E%26nbsp%3BChange%20%22applies%20to%22%20to%20%24N%243%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2769372%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Formatting%20%7C%7C%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2769372%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%20Again%20how%20to%20apply%20the%20formatting%20to%20entire%20column%20O%20%3F%3CBR%20%2F%3EWhat%20I%20do%20every%20time%20is%20literally%20copy%20paste%20the%20same%20down%2C%20but%20its%20a%20lot%20of%20time%20consuming.%3CBR%20%2F%3EI%20don't%20know%20to%20do%20macros%2C%20or%20any%20other%20way%20is%20there%20to%20do%20it%20in%20a%20simple%20way%20%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2769400%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Formatting%20%7C%7C%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2769400%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1157567%22%20target%3D%22_blank%22%3E%40arunrj%3C%2FA%3E%26nbsp%3BSorry%2C%20your%20intentions%20weren't%20clear%20to%20me.%20Change%20the%20%22Applied%20to%22%20to%20something%20like%20%24O%243%3A%24O%24100.%20Then%2C%20with%20the%20CF%20formula%20you%20tried%20earlier%20all%20blank%20cells%20in%20O3%3AO100%20will%20be%20highlighted%20if%20todays%20date%20has%20passed%20the%20date%20in%20column%20N%20(on%20the%20same%20row).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Can I use this formula =AND(ISBLANK(A2),TODAY()>A1) for conditional formatting, if I want to highlight A1 ?

My requirement is to highlight the content of A1 (date) if value in A2 (date) is not available & A1(date) is in the past.

 

How can I address this condition using formula ? or there is any other way to do this ?

 

Please help 

14 Replies

@arunrj The formula shall work. Not sure what your problem is. Have you tried it?

Attached is a working example. 

@Riny_van_Eekelen Thanks for the response, yea, it worked

 

Query.JPG

 

Why this isn't working, any Idea ?

Is it because the cell I am giving the conditional formatting is empty ? but again one more condition I have provided right ? Don't know why it isn't working.

@arunrj Change "applies to" to $N$3

@Riny_van_Eekelen The idea is I am having a set of dates, say column M- Baseline values, column N- Estimated values & column O is the actual.
So I already have values in my M & N, whenever the estimate is crossed today & I have no value in O, I want O to be highlighted.

@Riny_van_Eekelen Again how to apply the formatting to entire column O ?
What I do every time is literally copy paste the same down, but its a lot of time consuming.
I don't know to do macros, or any other way is there to do it in a simple way ?

@arunrj Sorry, your intentions weren't clear to me. Change the "Applied to" to something like $O$3:$O$100. Then, with the CF formula you tried earlier all blank cells in O3:O100 will be highlighted if todays date has passed the date in column N (on the same row).

 

 

 

 

 

@Riny_van_Eekelen  But the formula is for that particular cells only, right ? How can I apply to say O3:O100 ?
It will be like when O3 & N3 values in formula will deicide for entire O column, right ?

@arunrj In conditional formatting, you write the formula as with references to cells in one single row. In your case comparing N3 and O3. Applying that rule to a range O3:O100 will tell Excel to apply the same rule to all cells in that range. So, in O4 the rule will look at N4 and O4. In O5, it will look at N5 and O5 and so on. Similar to when you enter a formula with relative references and copy it down a column.

Have you tried it? Otherwise, upload a schedule that resembles your real one and I'll put the rule(s) in it for you.

@Riny_van_Eekelen Actually, i am having a formula in the N column, which is why I think my conditional formatting not working. I am attaching my worksheet.

Can I accommodate this CF with the existing one in sheet attached ?

 

 

@arunrj Oh my! You have real dates in M and then you created texts from them in N if there is no date entered in column O. Obviously, you can't apply date calculations on texts. Use a formula like:

 

=IFERROR(DATEVALUE(IF(ISNUMBER(O3),"NA","09/20/2021")),"NA")

 

in column N. This will create a real date that you test with the CF formula. But I wonder why you would go through all the trouble of entering the estimate date with such a formula. That's your choice, of course.

@Riny_van_Eekelen : Thanks for a solution, but If I just add the DATEVALUE in CF, it will be fine right ?

like =AND(ISBLANK(O3),TODAY()>DATEVALUE(N3))

Rather than changing the formula again, as it won't serve my purpose.

 

@arunrj Just try it!

yea, its working, thanks