Share via

Excel @if Problems

Anonymous
2015-01-27T17:41:52+00:00

I have a very simple problem that I just can't get to work ...

I have a Contract date in column C

The Return date in column D =c5=30

Today in column E  Today()

How many days left in column F =IF(C9,"", D9-E9)

How many days out in Column G =IF(F5>6,"","Days Out")

Call Client in Column H =IF(F5>6,"","Follow-up ~ Call Client")

The problem ...

If I don't have a date in Column C - I don't want to see anything in Column F

So I put =if(c5,"",D5-E5)

it gives me a -42001 instead of leaving the cell blank.

and I want it to say if F5 is less that 0  Expired

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

Anonymous
2015-01-27T19:01:38+00:00

oops, I didnt realize your formula is in column F, it should be

=IF(C5="","",IF(D5-E5<0,"Expired",D5-E5))

Was this answer helpful?

0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2015-01-27T19:53:27+00:00

    You're the Greatest!

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2015-01-27T18:49:43+00:00

    Hello Wyman.

    It says " Circular Reference Warning"

    I have a date in Column C

    1/1/2015 1/31/2015 1/27/2015 13:52 3.4 Days Out Follow-up ~ Call Client

    when I put your formula in F5 I get

    1/1/2015 1/31/2015 1/27/2015 13:55 0 Days Out Follow-up ~ Call Client

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2015-01-27T18:04:31+00:00

    Try

    IF(ISBLANK(C5),"",IF(D5<E5,"Expired",D5-E5))

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2015-01-27T18:03:31+00:00

    =if(c5="","",if(F5<0,"Expired",D5-E5))

    Was this answer helpful?

    0 comments No comments