Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 124
Default finding the last day of the month

I have a spreadsheet that has a date column listing dates going back 3 years,
each month has about 50 line items with different days of the month, it there
a way to create a new column that lists the last day of the month for each
line item? For example if the date was August 9, 2007 the formula would
return August 31,2007.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default finding the last day of the month

Assume the date is in A3

=DATE(YEAR(A3),MONTH(A3)+1,)

will return the date of the last day of the month for the date in A3



--


Regards,


Peo Sjoblom


"Charles" wrote in message
...
I have a spreadsheet that has a date column listing dates going back 3
years,
each month has about 50 line items with different days of the month, it
there
a way to create a new column that lists the last day of the month for each
line item? For example if the date was August 9, 2007 the formula would
return August 31,2007.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default finding the last day of the month

With
A2: (a date)

If you have the Analysis ToolPak installed:
=EOMONTH(A2,0)

If you don't....then try this:
=DATE(YEAR(A2),MONTH(A2)+1,0)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Charles" wrote in message
...
I have a spreadsheet that has a date column listing dates going back 3
years,
each month has about 50 line items with different days of the month, it
there
a way to create a new column that lists the last day of the month for each
line item? For example if the date was August 9, 2007 the formula would
return August 31,2007.

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 124
Default finding the last day of the month

Great solutions!! Thanks for the help...

"Ron Coderre" wrote:

With
A2: (a date)

If you have the Analysis ToolPak installed:
=EOMONTH(A2,0)

If you don't....then try this:
=DATE(YEAR(A2),MONTH(A2)+1,0)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Charles" wrote in message
...
I have a spreadsheet that has a date column listing dates going back 3
years,
each month has about 50 line items with different days of the month, it
there
a way to create a new column that lists the last day of the month for each
line item? For example if the date was August 9, 2007 the formula would
return August 31,2007.

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default finding the last day of the month

I'm glad I could help, Charles......Thanks for the feedback.

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Charles" wrote in message
...
Great solutions!! Thanks for the help...

"Ron Coderre" wrote:

With
A2: (a date)

If you have the Analysis ToolPak installed:
=EOMONTH(A2,0)

If you don't....then try this:
=DATE(YEAR(A2),MONTH(A2)+1,0)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Charles" wrote in message
...
I have a spreadsheet that has a date column listing dates going back 3
years,
each month has about 50 line items with different days of the month, it
there
a way to create a new column that lists the last day of the month for
each
line item? For example if the date was August 9, 2007 the formula would
return August 31,2007.

Thanks






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
Help finding the date of the last Saturday of a given month Chuck M Excel Worksheet Functions 9 May 23rd 07 08:38 PM
Finding Particular Day of Month DF Excel Worksheet Functions 7 April 21st 07 02:44 PM
Finding the last day of a month comotoman Excel Discussion (Misc queries) 3 October 18th 05 11:12 PM
Finding the Sum of value each month Pjcan1 Excel Discussion (Misc queries) 6 June 15th 05 09:33 PM
Finding min and max date of a given month Caro-Kann Defence Excel Worksheet Functions 2 May 13th 05 06:33 PM


All times are GMT +1. The time now is 12:52 PM.

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"