A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date Correction



 
 
Thread Tools Display Modes
  #1  
Old July 11th, 2008, 11:07 AM posted to microsoft.public.excel.worksheet.functions
JPS
external usenet poster
 
Posts: 49
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  
Old July 11th, 2008, 11:16 AM posted to microsoft.public.excel.worksheet.functions
Bob Phillips
external usenet poster
 
Posts: 5,994
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  
Old July 11th, 2008, 11:22 AM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
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  
Old July 11th, 2008, 11:23 AM posted to microsoft.public.excel.worksheet.functions
Dennis
external usenet poster
 
Posts: 1,222
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  
Old July 11th, 2008, 11:34 AM posted to microsoft.public.excel.worksheet.functions
JPS
external usenet poster
 
Posts: 49
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




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.