Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Q. How can I change this date

Hi

I have some dates like this:Sunday, 10 September 2006
in my worksheet, I've tried to change the format in excel with no luck.

If they can be changed would it be possible to run a macro to change all the
dates in the worksheet in one go.

Thanks in advance.

Dave


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Q. How can I change this date


You didn't specify the format required but in a helper column, try:


=TEXT(TRIM(MID(A1,FIND(",",A1)+1,255)),"dd/mm/yyyy")

to convert to 10/09/2006

HTH

"DavidM" wrote:

Hi

I have some dates like this:Sunday, 10 September 2006
in my worksheet, I've tried to change the format in excel with no luck.

If they can be changed would it be possible to run a macro to change all the
dates in the worksheet in one go.

Thanks in advance.

Dave



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Q. How can I change this date

Hi David

Click on the column letter containing the dates to mark the whole column
FormatCellsNumberCustom dd mmm yyyy
or whatever format you want to see

--
Regards

Roger Govier


"DavidM" wrote in message
. uk...
Hi

I have some dates like this:Sunday, 10 September 2006
in my worksheet, I've tried to change the format in excel with no
luck.

If they can be changed would it be possible to run a macro to change
all the dates in the worksheet in one go.

Thanks in advance.

Dave



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Q. How can I change this date

You say that you've tried to change the format with no luck - this
implies that what you see as a date is really a text value - do you
have an apostrophe in front of the dates when you view them in the
formula bar?

If so, in a helper column you can enter the formula:

=VALUE(A1)

assuming the dates are in column A, and then you can format this cell
as you wish to have the date displayed. Copy this cell down your helper
column for as many dates as you have in column A. If you wish you can
fix the values in the helper column (using paste special) and then copy
them to overwrite the original "dates" and then delete the helper
column.

Hope this helps.

Pete

DavidM wrote:
Hi

I have some dates like this:Sunday, 10 September 2006
in my worksheet, I've tried to change the format in excel with no luck.

If they can be changed would it be possible to run a macro to change all the
dates in the worksheet in one go.

Thanks in advance.

Dave


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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Change Date without Opening the Workbook ad2maso Excel Worksheet Functions 0 February 3rd 06 11:34 AM
change date based on time kdp145 Excel Discussion (Misc queries) 7 December 14th 05 02:05 AM
Can I change a date with no format (20051111) to date format? Rose New Users to Excel 2 November 11th 05 09:03 PM
How would I change a date cell to decrease it by business days? CNGracin Excel Discussion (Misc queries) 3 December 15th 04 05:20 PM


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