Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Date format in a text string

"Harlan Grove" wrote in message
ps.com...
"T. Valko" wrote...
...
That's because the TEXT function will only apply number formats.


A1 contains the text abc. B1 contains the formula

=TEXT(A1,"0;-0;\<0\;\-\-@\-\-")

and returns --abc--. At least running Excel 2003 SP1. Which version
are you running? [Surely you would have tested this.]


I did, but obviously it wasn't extensive enough.

I stand corrected!

As Rick noted, it works just as well without the slashes: (not extensively
tested)

=TEXT(A1,"0;-0;<0;--@--")

--
Biff
Microsoft Excel MVP


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
Format cells based on text string contains Also Excel Worksheet Functions 7 May 14th 07 11:13 AM
Format text string Saintsman Excel Discussion (Misc queries) 2 April 2nd 07 11:56 AM
How do I grab the date from a text string? [email protected] Excel Worksheet Functions 4 June 6th 06 07:55 AM
Date format in string Adam Thwaites Excel Discussion (Misc queries) 3 May 10th 06 04:14 PM
Convert text string to date AK Excel Worksheet Functions 1 February 1st 06 06:27 PM


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

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

About Us

"It's about Microsoft Excel"