Nested IF statements

V

Valerie

Hello,

I have a huge spreadsheet that I am trying to gather some data in. I have
successfully entered a couple of nested if statements, but am having trouble
with one particular one. The table looks like this:
Column I Column J Column P Column Q
"Due MO's Completed Released On
Date" "Release Date" on Time Time Status

1/5/08 1/6/09 LATE FALSE
7/17/06 5/17/06 LATE ON TIME

The formula I am using is: =IF(AND(P51="LATE",J51<I51),"ON
TIME",IF(AND(P51="C",J51>=I51),"LATE"))

As you can see, it is working in the second row, but I keep getting a false
in the last cell on the first row. I want it to return a "LATE". Can
someone please tell me what I have done wrong? Thanks in advance for any
assistance you can give me.
 
V

Valerie

Sorry to bother who ever. I found my error. Thanks again. I have gotten a
lot of information just reading other people's posts and the replies back to
them.
 
S

Shane Devenshire

Just in case:

The third argument of the second IF is empty, so Excel uses FALSE. You can
think of your formula like this:

=IF(AND(D5="LATE",C5<B5),"ON TIME",IF(AND(D5="C",C5>=B5),"LATE",FALSE))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top