Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Steven
 
Posts: n/a
Default Excel 2000 Date Question

I'm using the above and want to do something simple. In cell A1 I typed in
the date 3/31/2006. Then starting is cell B2 and continuing in that row, I
want the end of the month to show up. So in B2 I want to see 4/30/2006 and in
C2 I want to see 5/31/2006 and so on. I put in this formula in B2
=DATE(YEAR(A1),MONTH(A1)+1,DAY(A1)) but it returns 5/1/2006 not 4/30/2006.
Why and what do I need to do to get it to work the way I've described?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt
 
Posts: n/a
Default Excel 2000 Date Question

Install the analysis toolpak and use the function EOMONTH

"Steven" wrote:

I'm using the above and want to do something simple. In cell A1 I typed in
the date 3/31/2006. Then starting is cell B2 and continuing in that row, I
want the end of the month to show up. So in B2 I want to see 4/30/2006 and in
C2 I want to see 5/31/2006 and so on. I put in this formula in B2
=DATE(YEAR(A1),MONTH(A1)+1,DAY(A1)) but it returns 5/1/2006 not 4/30/2006.
Why and what do I need to do to get it to work the way I've described?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Steven
 
Posts: n/a
Default Excel 2000 Date Question

Thx. I'm surprised that this is something that can't be done without an add-in.

"Barb Reinhardt" wrote:

Install the analysis toolpak and use the function EOMONTH

"Steven" wrote:

I'm using the above and want to do something simple. In cell A1 I typed in
the date 3/31/2006. Then starting is cell B2 and continuing in that row, I
want the end of the month to show up. So in B2 I want to see 4/30/2006 and in
C2 I want to see 5/31/2006 and so on. I put in this formula in B2
=DATE(YEAR(A1),MONTH(A1)+1,DAY(A1)) but it returns 5/1/2006 not 4/30/2006.
Why and what do I need to do to get it to work the way I've described?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default Excel 2000 Date Question

It can, you just have to be creative in your formula

=date(year(a1),month(a1)+2,1)-1

"Steven" wrote:

Thx. I'm surprised that this is something that can't be done without an add-in.

"Barb Reinhardt" wrote:

Install the analysis toolpak and use the function EOMONTH

"Steven" wrote:

I'm using the above and want to do something simple. In cell A1 I typed in
the date 3/31/2006. Then starting is cell B2 and continuing in that row, I
want the end of the month to show up. So in B2 I want to see 4/30/2006 and in
C2 I want to see 5/31/2006 and so on. I put in this formula in B2
=DATE(YEAR(A1),MONTH(A1)+1,DAY(A1)) but it returns 5/1/2006 not 4/30/2006.
Why and what do I need to do to get it to work the way I've described?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt
 
Posts: n/a
Default Excel 2000 Date Question

I think you mean
=DATE(YEAR(A1),MONTH(A1)+1,1)-1

"Duke Carey" wrote:

It can, you just have to be creative in your formula

=date(year(a1),month(a1)+2,1)-1

"Steven" wrote:

Thx. I'm surprised that this is something that can't be done without an add-in.

"Barb Reinhardt" wrote:

Install the analysis toolpak and use the function EOMONTH

"Steven" wrote:

I'm using the above and want to do something simple. In cell A1 I typed in
the date 3/31/2006. Then starting is cell B2 and continuing in that row, I
want the end of the month to show up. So in B2 I want to see 4/30/2006 and in
C2 I want to see 5/31/2006 and so on. I put in this formula in B2
=DATE(YEAR(A1),MONTH(A1)+1,DAY(A1)) but it returns 5/1/2006 not 4/30/2006.
Why and what do I need to do to get it to work the way I've described?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default Excel 2000 Date Question

Nope. If A1 contains 1/31/06, your formula would calculate Feb 1 and then
subtract a day to get back to the original 1/31/06 date.

Mine calcs March 1, subtracts a day, and gets to 2/28/06


"Barb Reinhardt" wrote:

I think you mean
=DATE(YEAR(A1),MONTH(A1)+1,1)-1

"Duke Carey" wrote:

It can, you just have to be creative in your formula

=date(year(a1),month(a1)+2,1)-1

"Steven" wrote:

Thx. I'm surprised that this is something that can't be done without an add-in.

"Barb Reinhardt" wrote:

Install the analysis toolpak and use the function EOMONTH

"Steven" wrote:

I'm using the above and want to do something simple. In cell A1 I typed in
the date 3/31/2006. Then starting is cell B2 and continuing in that row, I
want the end of the month to show up. So in B2 I want to see 4/30/2006 and in
C2 I want to see 5/31/2006 and so on. I put in this formula in B2
=DATE(YEAR(A1),MONTH(A1)+1,DAY(A1)) but it returns 5/1/2006 not 4/30/2006.
Why and what do I need to do to get it to work the way I've described?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get the date correct in excel 2000 on a chart? Racheb Charts and Charting in Excel 2 December 16th 05 05:11 AM
Excel 2000 Question Troy Excel Worksheet Functions 3 September 26th 05 01:59 AM
Value Errors with EXCEL XP not showing up in EXCEL 2000 goodguy Links and Linking in Excel 0 July 19th 05 02:38 PM
Format date in excel 2000 like '31st January 2005' Malcolm Agingwell Excel Discussion (Misc queries) 1 June 29th 05 02:34 PM
Format date in excel 2000 like '31st January 2005' Malcolm Agingwell Excel Discussion (Misc queries) 1 June 29th 05 12:01 PM


All times are GMT +1. The time now is 08:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"