Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default Day - Date problem

Hi, I have a list of dates (approx 500 rows) on an excel spreadsheet that I
want to convert to values, how can I do this through VBA?
Date format (if it makes a difference) is for example Wed-Oct-08 and what I
want is the cell next to it to show as Wed in text (not a number, then
formatted)
Many thanks for help

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Day - Date problem

Is your Wed-Oct-08 entry a *real* Excel date with the cell formatted to look
like that or is it just a text entry? Select one of the cells with that
"date" in it and what do you see in the Formula bar... exactly what is in
the cell or something that looks like a normal date? If a normal date, then
(assuming the date is in A1) put =TEXT(A1,"ddd") in, say, B1. Or, again if a
normal date, you could put =A1 in B1 and custom format the cell with ddd. If
it is strictly text, then put =LEFT(A1,FIND("-",A1)-1) in B1.

--
Rick (MVP - Excel)


"JohnUK" wrote in message
...
Hi, I have a list of dates (approx 500 rows) on an excel spreadsheet that
I
want to convert to values, how can I do this through VBA?
Date format (if it makes a difference) is for example Wed-Oct-08 and what
I
want is the cell next to it to show as Wed in text (not a number, then
formatted)
Many thanks for help


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default Day - Date problem

Many thanks Rick, the TEXT ("ddd") done the trick.
Regards
John

"Rick Rothstein" wrote:

Is your Wed-Oct-08 entry a *real* Excel date with the cell formatted to look
like that or is it just a text entry? Select one of the cells with that
"date" in it and what do you see in the Formula bar... exactly what is in
the cell or something that looks like a normal date? If a normal date, then
(assuming the date is in A1) put =TEXT(A1,"ddd") in, say, B1. Or, again if a
normal date, you could put =A1 in B1 and custom format the cell with ddd. If
it is strictly text, then put =LEFT(A1,FIND("-",A1)-1) in B1.

--
Rick (MVP - Excel)


"JohnUK" wrote in message
...
Hi, I have a list of dates (approx 500 rows) on an excel spreadsheet that
I
want to convert to values, how can I do this through VBA?
Date format (if it makes a difference) is for example Wed-Oct-08 and what
I
want is the cell next to it to show as Wed in text (not a number, then
formatted)
Many thanks for help



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
Date Problem Nick C Excel Discussion (Misc queries) 4 March 4th 09 04:15 PM
Exel increment date problem wrt todays date. [email protected] Excel Worksheet Functions 1 November 11th 07 06:58 PM
Date Formula Problem - Leave date blank if Null Gayla Excel Worksheet Functions 5 April 24th 07 09:42 PM
Us date versus EU date problem Jan T. Excel Programming 7 October 2nd 06 07:06 PM
Date Problem hon123456 Excel Programming 1 September 18th 06 08:11 AM


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