Need help with conditional formatting using an IF function to recognise blank cells and overdue dates

Anonymous
2013-07-04T01:44:42+00:00

Hi

I am wanting to add conditional formatting to a spreadsheet which lists invoices and their due dates, along with payment date.

One column (H) has the payment due date.

Another column (M) has the date paid. This column is left blank if unpaid to date.

I want to highlight only cells in column H in which the due date is anything less than today, but ignoring those where there is a value in column M already. Essentially, I do not want to highlight anything which is overdue, but already paid (if that makes sense).

Having trouble working out what formula I need to do to show this in the conditional formatting area. I can get it to do the dates past easy enough, but cant get it to also ignore blank cells.

Have tried using ISBLANK.

Would greatly appreciate anyone's help with this formula!!

Thanks!!

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Ashish Mathur 102.4K Reputation points Volunteer Moderator
2013-07-04T02:40:07+00:00

Hi,

Try this

  1. Click on cell H2 and go to Home > Conditional formatting > New Rule > Use a formula to determine which cells to format
  2. In the formula bar there, enter this formula

=AND(H2<today(),I2="")

  1. Click on Format and select any Fill/Font colour
  2. Click on OK/Apply
  3. Copy cell H2, select H3:H50 right click > Paste Special > Formats

Hope this helps.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

59 additional answers

Sort by: Oldest
  1. Anonymous
    2014-03-04T06:29:13+00:00

    Thanks,

    I tried using <= in your formula as below. However, if that is done, when there are no dates in Column G and Column H, a value of "In Time" generates in Column F, whereas Column F should be blank in this instance.

    Please assist. Thank you.

    =IF(OR(H3>G3,AND(G3<>"",G3<TODAY(),H3="")),"Overdue",IF(H3<=G3,"In Time","")),

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2014-03-04T06:30:29+00:00

    In the second IF function, replace < with <=

    Sorry if this is a duplicate.

    I tried using <= in your formula as below. However, if that is done, when there are no dates in Column G and Column H, a value of "In Time" generates in Column F, whereas Column F should be blank in this instance.

    Please assist. Thank you.

    =IF(OR(H3>G3,AND(G3<>"",G3<TODAY(),H3="")),"Overdue",IF(H3<=G3,"In Time","")),

    Was this answer helpful?

    0 comments No comments
  3. Ashish Mathur 102.4K Reputation points Volunteer Moderator
    2014-03-05T02:38:32+00:00

    You seem to be absolutely unclear of what you want.  List down all possibilities and then I will solve the problem.  Your requirements change with every post.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2014-03-18T05:09:15+00:00

    Hi. I was out of town and offline so the delay.

    Yes, you're right,sorry, I had made many changes. I have tried the formula you provided (below) and it works for my requirements.

    =IF(OR(H3>G3,AND(G3<>"",G3<TODAY(),H3="")),"Overdue",IF(H3<G3,"In Time",""))

    This problem is therefore resolved - I just wanted to thank you for all your help. You've been a life saver.

    Was this answer helpful?

    0 comments No comments