Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kbreiss
 
Posts: n/a
Default Text is being converted to Date

I have my cell as "text"... here is an example of what is in the cell...

08-10-20-00-00-00

I need to do a Replace....Replace -00 with (leave it blank)
Excel then converts my number to 8/10/2020
Where as I want it to display as 08-10-20

Please help and thanks in advance,
Kacy
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default Text is being converted to Date

Put a single apostrophe before your text before the find/replace.
--
Gary's Student


"kbreiss" wrote:

I have my cell as "text"... here is an example of what is in the cell...

08-10-20-00-00-00

I need to do a Replace....Replace -00 with (leave it blank)
Excel then converts my number to 8/10/2020
Where as I want it to display as 08-10-20

Please help and thanks in advance,
Kacy

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Text is being converted to Date

How about using a helper cell (or column of cells):

=substitute(a1,"-00","")
and drag down



kbreiss wrote:

I have my cell as "text"... here is an example of what is in the cell...

08-10-20-00-00-00

I need to do a Replace....Replace -00 with (leave it blank)
Excel then converts my number to 8/10/2020
Where as I want it to display as 08-10-20

Please help and thanks in advance,
Kacy


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Harlan Grove
 
Posts: n/a
Default Text is being converted to Date

kbreiss wrote...
I have my cell as "text"... here is an example of what is in the cell...

08-10-20-00-00-00

I need to do a Replace....Replace -00 with (leave it blank)
Excel then converts my number to 8/10/2020
Where as I want it to display as 08-10-20


Don't use Edit Replace. Use Data Text to Columns and follow these
steps.

1. Choose Fixed Width, and click Next.

2. In the data preview box, place your mouse pointer just to the right
of the 0 in -20 and click once. Excel should draw a vertical line just
after that 0. Click Next.

3. The data preview box in the next screen of the wizard should show 2
fields. For the first field, which is what you want to keep, set the
column data format to Text in the upper right box. Then select the
second field (click on it in the data preview box) and in the upper
right select Do not import column (skip). Then click Finish.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kbreiss
 
Posts: n/a
Default Text is being converted to Date

That worked...Thanks! Out of curiousity what did that do?

"Gary''s Student" wrote:

Put a single apostrophe before your text before the find/replace.
--
Gary's Student


"kbreiss" wrote:

I have my cell as "text"... here is an example of what is in the cell...

08-10-20-00-00-00

I need to do a Replace....Replace -00 with (leave it blank)
Excel then converts my number to 8/10/2020
Where as I want it to display as 08-10-20

Please help and thanks in advance,
Kacy

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
Converting number or text to a Date Format samhain New Users to Excel 2 October 17th 05 02:28 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Combine date with text SVC Excel Worksheet Functions 1 March 27th 05 02:16 PM
EXTRACT TEXT FROM A DATE Ronbo Excel Worksheet Functions 5 February 1st 05 07:39 AM
Date format within a text syntex? Brw Excel Worksheet Functions 2 January 26th 05 02:13 PM


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