End of month calculations

G

Guest

I have the following formula that gives me the date at the end of the month
six month on. eg if I put a date of 15 Aug 06 in cell A1, the result in A2
would be 28 Feb 07. What I need also if the date in A1 is a month early (say
28 Jul 06), the result in A2 still needs to be 28 Feb 07. I hope I made it
clear as mud!!

=EOMONTH(A1,6)
 
L

Leo Heuser

ASU said:
I have the following formula that gives me the date at the end of the month
six month on. eg if I put a date of 15 Aug 06 in cell A1, the result in A2
would be 28 Feb 07. What I need also if the date in A1 is a month early
(say
28 Jul 06), the result in A2 still needs to be 28 Feb 07. I hope I made it
clear as mud!!

=EOMONTH(A1,6)

A month early. Compared to what?
If all Excel has is A1, how is it going to "know", what
a month early is?
 
G

Guest

A month earlier to the date in cell A2.
--
ASU


Leo Heuser said:
A month early. Compared to what?
If all Excel has is A1, how is it going to "know", what
a month early is?

--
Best regards
Leo Heuser

Followup to newsgroup only please.
 
G

Guest

if A1 is 27th July 2006 would A2 be 31 Jan 07?

If so perhaps try

=EOMONTH(A1,6+(DAY(EOMONTH(A1,7))<=DAY(A1)))

If not then please define date ranges for A1 that would give 31 Jan 07 in A2
or 31 Mar 07 in A2
 

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