PC Review


Reply
Thread Tools Rate Thread

Day - Date problem

 
 
JohnUK
Guest
Posts: n/a
 
      5th Oct 2008
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 With Quote
 
 
 
 
Rick Rothstein
Guest
Posts: n/a
 
      5th Oct 2008
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" <(E-Mail Removed)> wrote in message
news:C356D22A-E9C2-4696-BDC6-(E-Mail Removed)...
> 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 With Quote
 
JohnUK
Guest
Posts: n/a
 
      5th Oct 2008
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" <(E-Mail Removed)> wrote in message
> news:C356D22A-E9C2-4696-BDC6-(E-Mail Removed)...
> > 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 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
::: Date Comparison Problem or Date Formula or Date Macro ::: infojacques@gmail.com Microsoft Excel Discussion 3 13th Jul 2007 10:08 AM
[Newbie UK Date problem] Ways atround this UK date format localisation/SQLselection issue? DC Microsoft ASP .NET 5 1st Jul 2005 10:35 PM
[Newbie UK Date problem] Ways atround this UK date format localisation/SQLselection issue? DC Microsoft C# .NET 5 1st Jul 2005 10:35 PM
Formatting Problem-Highlighting a cell when date has expired past current date alancyoung Microsoft Excel Misc 1 19th Feb 2004 05:14 PM
Date Range: Between [Start Date] and [End Date] problem KL Microsoft Access Queries 4 16th Dec 2003 02:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:02 AM.