PC Review


Reply
Thread Tools Rate Thread

date field is held as 38932 how do I export as 3rd August 06

 
 
=?Utf-8?B?RGF2ZSBE?=
Guest
Posts: n/a
 
      15th Mar 2007
I am building up SQL statements using data in a Spreadsheet. I'm doing this
via CONCATENATE. I have a date field that appears to be 3rd August 2006 but
in the concatenate appears as 38932. How do I get it to come through as 3rd
August 2006?
 
Reply With Quote
 
 
 
 
macropod
Guest
Posts: n/a
 
      15th Mar 2007
Hi Dave,

Assuming the date is in A1:
=TEXT(A1,"d mmmm yyyy") will return '3 August 2006'
The formula to return the day as an ordinal number is quite a bit more complicated:
=DAY(A1)&CHOOSE(AND(DAY(A1)<>11,DAY(A1)<>12,DAY(A1)<>13)*MIN(4,MOD(DAY(A1),10))+1,"th","st","nd","rd","th")&TEXT(A1," mmmm yyyy")

You can include either of these with the balance of your concatenation formula.

Cheers

--
macropod
[MVP - Microsoft Word]
-------------------------

"Dave D" <Dave (E-Mail Removed)> wrote in message news:FE7C832A-B9C1-4354-8612-(E-Mail Removed)...
>I am building up SQL statements using data in a Spreadsheet. I'm doing this
> via CONCATENATE. I have a date field that appears to be 3rd August 2006 but
> in the concatenate appears as 38932. How do I get it to come through as 3rd
> August 2006?

 
Reply With Quote
 
=?Utf-8?B?RGF2ZSBE?=
Guest
Posts: n/a
 
      15th Mar 2007
Thanks a lot

"macropod" wrote:

> Hi Dave,
>
> Assuming the date is in A1:
> =TEXT(A1,"d mmmm yyyy") will return '3 August 2006'
> The formula to return the day as an ordinal number is quite a bit more complicated:
> =DAY(A1)&CHOOSE(AND(DAY(A1)<>11,DAY(A1)<>12,DAY(A1)<>13)*MIN(4,MOD(DAY(A1),10))+1,"th","st","nd","rd","th")&TEXT(A1," mmmm yyyy")
>
> You can include either of these with the balance of your concatenation formula.
>
> Cheers
>
> --
> macropod
> [MVP - Microsoft Word]
> -------------------------
>
> "Dave D" <Dave (E-Mail Removed)> wrote in message news:FE7C832A-B9C1-4354-8612-(E-Mail Removed)...
> >I am building up SQL statements using data in a Spreadsheet. I'm doing this
> > via CONCATENATE. I have a date field that appears to be 3rd August 2006 but
> > in the concatenate appears as 38932. How do I get it to come through as 3rd
> > August 2006?

>

 
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
Export/Import: Truly needs hand held explanation, please Mike Microsoft Outlook Contacts 5 19th Mar 2010 07:56 AM
export to a hand held device =?Utf-8?B?U2hlcg==?= Microsoft Access External Data 0 2nd Feb 2006 09:48 PM
Export the Date Field? JohnF. Microsoft Outlook Discussion 0 19th Aug 2005 02:57 PM
Export Outlook date field as date/time format to Access database =?Utf-8?B?QmVja3k=?= Microsoft Outlook Discussion 0 2nd Dec 2004 02:49 PM
Validation rule trouble - ensuring values held in one field are less than those held in another field Joey P Microsoft Access Queries 2 7th Dec 2003 03:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:18 AM.