PC Review


Reply
Thread Tools Rate Thread

Converting Date to Beginning of the Month

 
 
carlsondaniel@gmail.com
Guest
Posts: n/a
 
      29th Nov 2006
Hello All,

I have an issue with dates. I am trying to convert any date such as
11/27/2006, 3/14/2005, to essentially only the month and year. I have a
formula that will only work correctly if all dates are the first of the
month so I need to convert the above dates to this: 11/1/2006 and
3/1/2005. Is there a way to do this? Any help would be greatly
appreciated! Thanks

 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      29th Nov 2006
Try this:

=Date-DAY(Date)+1

A1 = 11/27/2006

=A1-DAY(A1)+1 = 11/1/2006

Biff

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello All,
>
> I have an issue with dates. I am trying to convert any date such as
> 11/27/2006, 3/14/2005, to essentially only the month and year. I have a
> formula that will only work correctly if all dates are the first of the
> month so I need to convert the above dates to this: 11/1/2006 and
> 3/1/2005. Is there a way to do this? Any help would be greatly
> appreciated! Thanks
>



 
Reply With Quote
 
Roger Govier
Guest
Posts: n/a
 
      29th Nov 2006
Hi

If all you want from your dates is month and year, and assuming the
dates are in column A,
then either use a column alongside your dates with the formula =A1 and
format the column
Format>Cells>Number>Custom> mmm-yy
or just format the column containing the dates in this manner.

If you want the result as Text (as opposed to still being stored
internally as the serial date number) then use
=TEXT(A1,"mmm-yy")

--
Regards

Roger Govier


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello All,
>
> I have an issue with dates. I am trying to convert any date such as
> 11/27/2006, 3/14/2005, to essentially only the month and year. I have
> a
> formula that will only work correctly if all dates are the first of
> the
> month so I need to convert the above dates to this: 11/1/2006 and
> 3/1/2005. Is there a way to do this? Any help would be greatly
> appreciated! Thanks
>



 
Reply With Quote
 
carlsondaniel@gmail.com
Guest
Posts: n/a
 
      30th Nov 2006
That formula is exactly what I needed. Thanks!


T. Valko wrote:
> Try this:
>
> =Date-DAY(Date)+1
>
> A1 = 11/27/2006
>
> =A1-DAY(A1)+1 = 11/1/2006
>
> Biff
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hello All,
> >
> > I have an issue with dates. I am trying to convert any date such as
> > 11/27/2006, 3/14/2005, to essentially only the month and year. I have a
> > formula that will only work correctly if all dates are the first of the
> > month so I need to convert the above dates to this: 11/1/2006 and
> > 3/1/2005. Is there a way to do this? Any help would be greatly
> > appreciated! Thanks
> >


 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      1st Dec 2006
You're welcome. Thanks for the feedback!

Biff

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> That formula is exactly what I needed. Thanks!
>
>
> T. Valko wrote:
>> Try this:
>>
>> =Date-DAY(Date)+1
>>
>> A1 = 11/27/2006
>>
>> =A1-DAY(A1)+1 = 11/1/2006
>>
>> Biff
>>
>> <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > Hello All,
>> >
>> > I have an issue with dates. I am trying to convert any date such as
>> > 11/27/2006, 3/14/2005, to essentially only the month and year. I have a
>> > formula that will only work correctly if all dates are the first of the
>> > month so I need to convert the above dates to this: 11/1/2006 and
>> > 3/1/2005. Is there a way to do this? Any help would be greatly
>> > appreciated! Thanks
>> >

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting date to beginning or end of next month sharontodd Microsoft Access VBA Modules 1 4th Sep 2009 06:35 PM
Date - Beginning of Month Chris Gorham Microsoft Access Queries 1 6th Jul 2008 08:15 AM
Converting Year to Date Data to Month to Date ram Microsoft Access 5 22nd Mar 2008 12:01 PM
Between Month Beginning Date and Month End Date =?Utf-8?B?aXo4N2Vk?= Microsoft Access Queries 5 28th Oct 2004 02:33 PM
Converting Month/Date/Year data & sorting by month/date only =?Utf-8?B?Uy4gV2FzaGluZ3Rvbg==?= Microsoft Excel Worksheet Functions 4 26th Apr 2004 05:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:34 AM.