excel 2003 IF function question

L

lotus lover

Hi. I hope you can help me out. I'm dealing in clock time. I've written the
formula
=if(AN7<.375,.375 If (AN7>=.375,AN7))

So, if the content of cell AN7 is before 9:00AM, the formula cell posts
9:00AM and if the content of cell AN7 is later than 9:00AM, the formula cell
posts that time.

The problem is if cell AN7 is blank. The formula cell is now posting
9:00AM, i assume because I have no greater than 0 statement. What I want is
for the formula cell to post blank, or at worse "false".

Is this doable?
 
D

David Biddulph

And of course you don't need the AN7>=0.375 test, because you've earlier
tested for AN7<0.375.

=IF(AN7="","",IF(AN7<0.375,0.375,AN7))
or
=IF(AN7="","",MAX(0.375,AN7))
 
M

Max

David Biddulph said:
=IF(AN7="","",IF(AN7<0.375,0.375,AN7))
or
=IF(AN7="","",MAX(0.375,AN7))

Yes. Thanks for refinements, David.
Guess I was too hung up with the front IF part of it <g>
 

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