#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPS JPS is offline
external usenet poster
 
Posts: 47
Default Date Correction

I have a spreadsheet with 1000+ rows and I need to correct a date column,
This column should contain the last day of the month, but often does not.

I am in need of a formula that will check the month and correct to the last
calendar day, i.e. November would be 30 and December would be 31. I need to
retain the original month and year and correct only the day.

Thanks€¦

--
JPS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Date Correction

=DATE(YEAR(A1),MONTH(A1)+1,0)

and copy down

--
HTH

Bob

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

"JPS" wrote in message
...
I have a spreadsheet with 1000+ rows and I need to correct a date column,
This column should contain the last day of the month, but often does not.

I am in need of a formula that will check the month and correct to the
last
calendar day, i.e. November would be 30 and December would be 31. I need
to
retain the original month and year and correct only the day.

Thanks.

--
JPS



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Date Correction

2 methods

=EOMONTH(A1,0)
Requires the analysis toolpak Addin

or
=DATE(YEAR(A1),MONTH(A1)+1,0)

Mike

"JPS" wrote:

I have a spreadsheet with 1000+ rows and I need to correct a date column,
This column should contain the last day of the month, but often does not.

I am in need of a formula that will check the month and correct to the last
calendar day, i.e. November would be 30 and December would be 31. I need to
retain the original month and year and correct only the day.

Thanks€¦

--
JPS

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default Date Correction

If your current date is in A1 then use this formula with the relevant cell
formatting to show the date format you require. (If EOMONTH worksheet
function is not available then select Tools - Add-Ins and check Analysis
ToolPak)

=EOMONTH(A1,0)

"JPS" wrote:

I have a spreadsheet with 1000+ rows and I need to correct a date column,
This column should contain the last day of the month, but often does not.

I am in need of a formula that will check the month and correct to the last
calendar day, i.e. November would be 30 and December would be 31. I need to
retain the original month and year and correct only the day.

Thanks€¦

--
JPS

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPS JPS is offline
external usenet poster
 
Posts: 47
Default Date Correction

Bob,
U DA MAN,
Thanks....
--
JPS


"Bob Phillips" wrote:

=DATE(YEAR(A1),MONTH(A1)+1,0)

and copy down

--
HTH

Bob

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

"JPS" wrote in message
...
I have a spreadsheet with 1000+ rows and I need to correct a date column,
This column should contain the last day of the month, but often does not.

I am in need of a formula that will check the month and correct to the
last
calendar day, i.e. November would be 30 and December would be 31. I need
to
retain the original month and year and correct only the day.

Thanks.

--
JPS




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
Value correction P. Zicari Excel Discussion (Misc queries) 2 April 15th 08 07:28 PM
Date Auto-Correction Mozman Excel Discussion (Misc queries) 3 February 17th 07 08:44 PM
syntax correction Richard New Users to Excel 4 February 14th 07 08:30 PM
most recent date (correction) excelFan Excel Discussion (Misc queries) 6 December 21st 06 06:43 PM
correction nowfal Excel Discussion (Misc queries) 4 March 24th 06 06:40 PM


All times are GMT +1. The time now is 09:51 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"