IF Formula - Help!

G

Guest

I am trying to write a formula to show the 'soonest' date out of 2 columns,
but if both the columns are blank then show blank.

So far I have:

=IF(AA3>AB3, AA3, AB3)

Which correctly shows the date, but where there is blanks it is dragging
through a date of 00/01/1900.

Can anyone help me extend my formula?

Many Thanks

Helen
 
G

Guest

Try this in a cell formatted as date,

=IF(AND(ISNUMBER(AA3),ISNUMBER(AB3)),MIN(AA3,AB3),"")

Mike
 
R

Ron Rosenfeld

I am trying to write a formula to show the 'soonest' date out of 2 columns,
but if both the columns are blank then show blank.

So far I have:

=IF(AA3>AB3, AA3, AB3)

Which correctly shows the date, but where there is blanks it is dragging
through a date of 00/01/1900.

Can anyone help me extend my formula?

Many Thanks

Helen


=IF(MIN(A10,B10)=0,"",MIN(A10,B10))


--ron
 
G

Guest

Hi Mike,

Thanks for that, unfortuantely it is only bringing a result through where
there is a date in both Col AA & AB.
There isn't always data in both of these columns, but I need AC to show the
ssonest date or a blank.

Thanks again

H
 

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