What does this formula mean?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What does this formula mean?

=IF(DATEDIF(K4,"12/31/2004","m")>=20,0,IF(DATEDIF(K4,"12/31/2004","m")<8,0,Q4/12))
 
Hi

This looks at the difference in months between K4 and 31st December 04 and
if it is more than or equal to 20, or less than 8 it will put a zero in the
cell. If it is neither of these (ie between 9 and 19) if will put in Q4/12
(ie the figure in cell Q4 divided by 12)

Andy.
 
and it can be simplified to

=IF(AND(DATEDIF(K4,"12/31/2004","m")>=20,DATEDIF(K4,"12/31/2004","m")<8),0,Q
4/12))


--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Bob

I think you mean:
=IF(OR(DATEDIF(K4,"12/31/2004","m")>=20,DATEDIF(K4,"12/31/2004","m")<8),0,Q4/12))

Andy.
 
Indeed I did Andy. Thanks

Bob


Bob

I think you mean:
=IF(OR(DATEDIF(K4,"12/31/2004","m")>=20,DATEDIF(K4,"12/31/2004","m")<8),0,Q4
/12))

Andy.
 

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

Similar Threads

Leave final cell blank 2
Using Formulas 3
One More on Date Function 1
Formula not working 4
Difference between two months 5
IF Dates 1
Expanding Date formula 1
DATEDIF vs. simple difference 5

Back
Top