#1   Report Post  
Posted to microsoft.public.excel.misc
MC MC is offline
external usenet poster
 
Posts: 29
Default Date / Time problem

I am trying to format some cells with date/time stamps. The data is coming
in as follows:

09-05-2008 8:00
09-04-2008 1:00
09-03-2008 20:30

The dates should be Sep 5 2008, Sep 4 2008, Sep 3 2008 etc...but when I use
the date format in Excel (mmm dd yyyy), they are coming back as May 09 2008,
Apr 09 2008, Mar 09 2008, which is totally incorrect. Even if I use dd mmm
yyyy, it still formats it incorrectly, 09 May 2008, 09 Apr 2008, 09 Mar 2008.

I know how to extract the month/day/year and then convert it to the proper
date format but my problem is I need the time stamp from these cells added
back to my proper date(s). This is what I want:

Sep 05 2008 8:00
Sep 04 2008 1:00
Sep 03 2008 20:30

Any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Date / Time problem

With a value in A1:
=DATE(MID(A1,7,4),LEFT(A1,2),MID(A1,4,2))+MID(A1,F IND(" ",A1,1)+1,256)
and format the cell as:
Custom mmmm dd yyyy hh:mm
this will display:
September 05 2008 08:00

--
Gary''s Student - gsnu200802


"mc" wrote:

I am trying to format some cells with date/time stamps. The data is coming
in as follows:

09-05-2008 8:00
09-04-2008 1:00
09-03-2008 20:30

The dates should be Sep 5 2008, Sep 4 2008, Sep 3 2008 etc...but when I use
the date format in Excel (mmm dd yyyy), they are coming back as May 09 2008,
Apr 09 2008, Mar 09 2008, which is totally incorrect. Even if I use dd mmm
yyyy, it still formats it incorrectly, 09 May 2008, 09 Apr 2008, 09 Mar 2008.

I know how to extract the month/day/year and then convert it to the proper
date format but my problem is I need the time stamp from these cells added
back to my proper date(s). This is what I want:

Sep 05 2008 8:00
Sep 04 2008 1:00
Sep 03 2008 20:30

Any help would be appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Date / Time problem

Change your Windows Regional settings for Short Dates


Gord Dibben MS Excel MVP

On Thu, 4 Sep 2008 13:50:01 -0700, mc wrote:

I am trying to format some cells with date/time stamps. The data is coming
in as follows:

09-05-2008 8:00
09-04-2008 1:00
09-03-2008 20:30

The dates should be Sep 5 2008, Sep 4 2008, Sep 3 2008 etc...but when I use
the date format in Excel (mmm dd yyyy), they are coming back as May 09 2008,
Apr 09 2008, Mar 09 2008, which is totally incorrect. Even if I use dd mmm
yyyy, it still formats it incorrectly, 09 May 2008, 09 Apr 2008, 09 Mar 2008.

I know how to extract the month/day/year and then convert it to the proper
date format but my problem is I need the time stamp from these cells added
back to my proper date(s). This is what I want:

Sep 05 2008 8:00
Sep 04 2008 1:00
Sep 03 2008 20:30

Any help would be appreciated.


  #4   Report Post  
Posted to microsoft.public.excel.misc
MC MC is offline
external usenet poster
 
Posts: 29
Default Date / Time problem

Thanks, Gord, this works on my desktop but if I send this to other users,
will the date format hold?

"Gord Dibben" wrote:

Change your Windows Regional settings for Short Dates


Gord Dibben MS Excel MVP

On Thu, 4 Sep 2008 13:50:01 -0700, mc wrote:

I am trying to format some cells with date/time stamps. The data is coming
in as follows:

09-05-2008 8:00
09-04-2008 1:00
09-03-2008 20:30

The dates should be Sep 5 2008, Sep 4 2008, Sep 3 2008 etc...but when I use
the date format in Excel (mmm dd yyyy), they are coming back as May 09 2008,
Apr 09 2008, Mar 09 2008, which is totally incorrect. Even if I use dd mmm
yyyy, it still formats it incorrectly, 09 May 2008, 09 Apr 2008, 09 Mar 2008.

I know how to extract the month/day/year and then convert it to the proper
date format but my problem is I need the time stamp from these cells added
back to my proper date(s). This is what I want:

Sep 05 2008 8:00
Sep 04 2008 1:00
Sep 03 2008 20:30

Any help would be appreciated.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Date / Time problem

I don't know.

You could test by sending the workbook to me.

My short date settings are dd/MMM/yy

You set yours to mm/dd/yy.

Save the workbook and send it on.

Change the AT and DOT in my address


Gord

On Fri, 5 Sep 2008 07:32:01 -0700, mc wrote:

Thanks, Gord, this works on my desktop but if I send this to other users,
will the date format hold?

"Gord Dibben" wrote:

Change your Windows Regional settings for Short Dates


Gord Dibben MS Excel MVP

On Thu, 4 Sep 2008 13:50:01 -0700, mc wrote:

I am trying to format some cells with date/time stamps. The data is coming
in as follows:

09-05-2008 8:00
09-04-2008 1:00
09-03-2008 20:30

The dates should be Sep 5 2008, Sep 4 2008, Sep 3 2008 etc...but when I use
the date format in Excel (mmm dd yyyy), they are coming back as May 09 2008,
Apr 09 2008, Mar 09 2008, which is totally incorrect. Even if I use dd mmm
yyyy, it still formats it incorrectly, 09 May 2008, 09 Apr 2008, 09 Mar 2008.

I know how to extract the month/day/year and then convert it to the proper
date format but my problem is I need the time stamp from these cells added
back to my proper date(s). This is what I want:

Sep 05 2008 8:00
Sep 04 2008 1:00
Sep 03 2008 20:30

Any help would be appreciated.




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
Time/date problem. [email protected] Excel Discussion (Misc queries) 3 October 27th 06 02:19 PM
Vlookup problem with Date Time normajmarsh Excel Worksheet Functions 0 February 3rd 06 07:33 PM
Date time problem FSt1 Excel Discussion (Misc queries) 1 September 26th 05 03:35 PM
Date & Time problem ckiraly Excel Worksheet Functions 2 August 15th 05 01:13 PM
Ugh..another time and date problem...HELP Sandy Excel Worksheet Functions 4 July 29th 05 05:37 PM


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

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

About Us

"It's about Microsoft Excel"