Find the First of the Month after 60 days

N

NeSchw6G

I need help making a formula to use the date in cell F3, add 60 days and then
find the first of the following month.

i.e. The date given would be 8/21/08 and I would need a formula to produce
11/1/08

If the 60 days falls on the first of the month, then it should produce the
same number, as in the date given would be 9/2/08 and 60 days would be
11/1/08 and so it should produce 11/1/08.

Thank you,
 
M

Mike H

Hi,

Try this

=IF(DAY(F3+60)=1,F3+60,EOMONTH(F3+60,0)+1)

If you get a NAME error then
Tools|Addins
Check the analysis toolpak and re=enter the formula

Mike
 
R

Rick Rothstein \(MVP - VB\)

You can use this formula...

=DATE(YEAR(F3+60),MONTH(F3+60)+1,1)

Rick
 
N

NeSchw6G

It worked perfectly.
Thank you!!

Mike H said:
Hi,

Try this

=IF(DAY(F3+60)=1,F3+60,EOMONTH(F3+60,0)+1)

If you get a NAME error then
Tools|Addins
Check the analysis toolpak and re=enter the formula

Mike
 
B

Bob Phillips

You haven't catered for 60 days falling on the 1st of month, you go one too
far then, e.g. 2nd June

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
R

Rick Rothstein \(MVP - VB\)

Hmm! Good point! I am guessing that is why David posted his code with 59
instead of 60. I know you are right and that has to be what the OP meant
that he wanted; but, just in case, I thought I would mention that on a close
reading of the original posting, my formula does do exactly what the OP
asked for.

Rick
 
D

David Biddulph

Yes, I'd avoided EOMONTH because of the customary saga of Analysis ToolPak
(and I didn't want to have to give an RTFM reply when people don't bother
looking at Excel help to find out why the EOMONTH function isn't working for
them). :-(
 
B

Bob Phillips

Well you must be reading a different post from me as the OP said

.... If the 60 days falls on the first of the month, then it should produce
the
same number, as in the date given would be 9/2/08 and 60 days would be
11/1/08 and so it should produce 11/1/08.

That seems unequivocally clear to me.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
R

Rick Rothstein \(MVP - VB\)

Yes, that section is definitely "unequivocally clear"; and I would have know
that too, had I read the entire message and not just the part that showed in
the visible section of the message area of my newsreader.<g> The visible
part of my displayed message area stopped at this line...

"i.e. The date given would be 8/21/08 and I
would need a formula to produce 11/1/08"

and the message appeared complete to me, so I never thought to scroll the
window down; hence, I never saw the part of the original message you are
referring to. That should explain to you what must have seemed like puzzling
wording when I wrote this...

"I know you are right and that has to be
what the OP meant that he wanted..."

Rick
 

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