SOLVED

Conditional Formatting with Formulas - Help PLease?! :)

Copper Contributor

Hi All, 

 

I am trying to insert a forumula as part of conditional formatting into a tracker on a spreadsheet to highlight expired dates but only when text in another column meets certain criteria. 

(E.g. If the date in column B occurs in the past and the text in column F is equal to "PENDING" or "IN QUERY" - if column F contains any other content i do not want the formatting applied)

I know how to do each of these things seperately but for the life of me cannot work out how to stitch the 2 formula together to work as one (i thought i could use an IF formula to calculate but cannot get it to work). 

 

I would really appreicate any advice on how to make this work. 

Thanks in advance

Jen :) 

12 Replies
Try this (no need for the IF in conditional formatting)

=AND( B1<TODAY(), OR(F1="PENDING", F1="IN QUERY") )
Hi Wyn,
Thank you! I have just tried this and it seems to be looking at both columns for the answer now which is great but instead of highlighting just cell 'B1' (if PENDING or IN QUERY is present in F1) it is highlighting the whole of column B. Any ideas of how to adjust so that it only highlights the cell?
Thanks again
Jen

Perhaps to expand

(B1<TODAY())*(B1>0)
Hi Sergei,

Thanks for your input - you'll have to excuse my very basic knowledge of excel formulas, but what result would this formula acheive?

Thanks you
Jen

Hi

Can you attach a screenshot of what you mean?


It excludes blank cells in column B

Hi Wyn, 


I've added a snapshot of my spreadsheet below. 

My goal is for dates in column B (INV DUE DATE) to be highlighted red but only if the answer in column F (STATUS) reads PENDING or IN QUERY. If column F reads PAID I do not want the formatting added to B. I hope that makes sense? 

When adding the conditional formatting to columb B, i start by selecting the whole column, then opening the conditional formatting options to apply the formula  - is this correct? 

 

Sorry if i'm not explaining this well, i'm not the best with formulas containing more than one function! haha 

 

I really appreicate your help. 

Thanks

Jen 

 

ExcelCapture.JPG

 

Hi Sergei, 

 

Oh great, thank you. That will make a really useful addition! :) 

 

Thanks, 
Jen

best response confirmed by JenSmith (Copper Contributor)
Solution
I would highlight B2 to B200 and then apply the following formula

=AND( B2<TODAY(), OR(F2="PENDING", F2="IN QUERY") )
Hi Wyn,

It's worked! Thank you so much. I really apprecaite you taking the time to help :)

Thanks
Jen

@Wyn Hopkins

@Sergei Baklan

 

Hi there! I'm having a similar problem. I have a list of personnel who each have one of a few different levels of training. Their names are listed in 1 column and their level in another. Then I have another table on a different sheet with all of their names under the positions where they work, and they may be in multiple positions. I would like the names in the position table to turn either green, yellow, or red based on the level of training they've had as listed on the other worksheet with the two columns. For example, when Bob Smith has had ICS 300 training, I want every cell with his name to turn green in the big table. How do I go about doing this. I can get the color change when I stay within the two columns by doing =$B2=300, but I cannot do it across worksheets. Even when I moved the two columns to the same sheet as the big table, I could not figure out a formula that highlighted the cells I wanted. It would highlight select ones randomly, or go across a few rows, but the level of training and the names did not correlate correctly. Thank you for you help.

Hi @jfh117 ,  would you mind posting this as a separate question to the forum?

 

Thanks

 

1 best response

Accepted Solutions
best response confirmed by JenSmith (Copper Contributor)
Solution
I would highlight B2 to B200 and then apply the following formula

=AND( B2<TODAY(), OR(F2="PENDING", F2="IN QUERY") )

View solution in original post