Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 116
Default Replace "/" with "-" in a number formatting

How do I replace / with - in a number
ex: 10-00-2830 with 10/00/2830
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 116
Default Replace "/" with "-" in a number formatting

Doesn't work in Excel. Actually, I solved my problem...

=left(a1,2) & "/" & mid(a1,4,2) & "/" & right(a1,4)

Thanks anyway!!!

"Teethless mama" wrote:

Ctrl-H
Find what: -
Replace with: /
Replace All


"Sherry" wrote:

How do I replace / with - in a number
ex: 10-00-2830 with 10/00/2830

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Replace "/" with "-" in a number formatting


Sherry;215905 Wrote:
Doesn't work in Excel. Actually, I solved my problem...

=left(a1,2) & "/" & mid(a1,4,2) & "/" & right(a1,4)

Thanks anyway!!!

"Teethless mama" wrote:

Ctrl-H
Find what: -
Replace with: /
Replace All


"Sherry" wrote:

How do I replace / with - in a number
ex: 10-00-2830 with 10/00/2830


Teethless mama's method works perfectly in XL, but you have to change
the search options to " search in formulas"


--
Pecoflyer

Cheers -
*'Membership is free' (http://www.thecodecage.com)* & allows file
upload -faster and better answers

*Adding your XL version* to your post helps finding solution faster
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=59301

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 694
Default Replace "/" with "-" in a number formatting

Hi Sherry
Goto Edit Find Replace
HTH
John
"Sherry" wrote in message
...
How do I replace / with - in a number
ex: 10-00-2830 with 10/00/2830


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Replace "/" with "-" in a number formatting

I think you'll find that Teethless mama would not have suggested it if it
doesn't work in Excel.
It does work.

It wouldn't work if the character you had as the 3rd and 6th characters
wasn't a hyphen as you'd typed it in this message but some special character
such as a non-breaking hyphen, an em-dash, or an en-dash. You can find out
what character it is by using =CODE(MID(A1,3,1)) If the answer isn't 45,
you haven't got a hyphen.
--
David Biddulph

Sherry wrote:
Doesn't work in Excel. Actually, I solved my problem...

=left(a1,2) & "/" & mid(a1,4,2) & "/" & right(a1,4)

Thanks anyway!!!

"Teethless mama" wrote:

Ctrl-H
Find what: -
Replace with: /
Replace All


"Sherry" wrote:

How do I replace / with - in a number
ex: 10-00-2830 with 10/00/2830





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Replace "/" with "-" in a number formatting

If the concatenation method worked, then that means it wasn't in a formula.
I'm guessing maybe the OP just typed TM's instructions into the spreadsheet
instead of doing them?

"Pecoflyer" wrote:


Sherry;215905 Wrote:
Doesn't work in Excel. Actually, I solved my problem...

=left(a1,2) & "/" & mid(a1,4,2) & "/" & right(a1,4)

Thanks anyway!!!

"Teethless mama" wrote:

Ctrl-H
Find what: -
Replace with: /
Replace All


"Sherry" wrote:

How do I replace / with - in a number
ex: 10-00-2830 with 10/00/2830


Teethless mama's method works perfectly in XL, but you have to change
the search options to " search in formulas"


--
Pecoflyer

Cheers -
*'Membership is free' (http://www.thecodecage.com)* & allows file
upload -faster and better answers

*Adding your XL version* to your post helps finding solution faster
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=59301


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 116
Default Replace "/" with "-" in a number formatting

No disrespect to Teethless mama but it does not work. Excel is recognizing
10/01/2009 as a date and changes nothing even when I change the format to
date in the "find what / replace with" window . I'm obviously missing
something.

"David Biddulph" wrote:

I think you'll find that Teethless mama would not have suggested it if it
doesn't work in Excel.
It does work.

It wouldn't work if the character you had as the 3rd and 6th characters
wasn't a hyphen as you'd typed it in this message but some special character
such as a non-breaking hyphen, an em-dash, or an en-dash. You can find out
what character it is by using =CODE(MID(A1,3,1)) If the answer isn't 45,
you haven't got a hyphen.
--
David Biddulph

Sherry wrote:
Doesn't work in Excel. Actually, I solved my problem...

=left(a1,2) & "/" & mid(a1,4,2) & "/" & right(a1,4)

Thanks anyway!!!

"Teethless mama" wrote:

Ctrl-H
Find what: -
Replace with: /
Replace All


"Sherry" wrote:

How do I replace / with - in a number
ex: 10-00-2830 with 10/00/2830




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Replace "/" with "-" in a number formatting

Your original example was 10-00-2083

TM's suggestion was predicated upon that example and it does work

Where did 10/01/2009 come from?


Gord Dibben MS Excel MVP


On Thu, 5 Feb 2009 14:33:21 -0800, Sherry
wrote:

No disrespect to Teethless mama but it does not work. Excel is recognizing
10/01/2009 as a date and changes nothing even when I change the format to
date in the "find what / replace with" window . I'm obviously missing
something.

"David Biddulph" wrote:

I think you'll find that Teethless mama would not have suggested it if it
doesn't work in Excel.
It does work.

It wouldn't work if the character you had as the 3rd and 6th characters
wasn't a hyphen as you'd typed it in this message but some special character
such as a non-breaking hyphen, an em-dash, or an en-dash. You can find out
what character it is by using =CODE(MID(A1,3,1)) If the answer isn't 45,
you haven't got a hyphen.
--
David Biddulph

Sherry wrote:
Doesn't work in Excel. Actually, I solved my problem...

=left(a1,2) & "/" & mid(a1,4,2) & "/" & right(a1,4)

Thanks anyway!!!

"Teethless mama" wrote:

Ctrl-H
Find what: -
Replace with: /
Replace All


"Sherry" wrote:

How do I replace / with - in a number
ex: 10-00-2830 with 10/00/2830





  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 116
Default Replace "/" with "-" in a number formatting

I apologize for wasting you time. :(

My co-worker renigged and gave me wrong request. She wanted 10/00/2083 to
be 10-00-2083. Resolution was: =TEXT(A10,"mm-dd-yyyy") so simple.


"Gord Dibben" wrote:

Your original example was 10-00-2083

TM's suggestion was predicated upon that example and it does work

Where did 10/01/2009 come from?


Gord Dibben MS Excel MVP


On Thu, 5 Feb 2009 14:33:21 -0800, Sherry
wrote:

No disrespect to Teethless mama but it does not work. Excel is recognizing
10/01/2009 as a date and changes nothing even when I change the format to
date in the "find what / replace with" window . I'm obviously missing
something.

"David Biddulph" wrote:

I think you'll find that Teethless mama would not have suggested it if it
doesn't work in Excel.
It does work.

It wouldn't work if the character you had as the 3rd and 6th characters
wasn't a hyphen as you'd typed it in this message but some special character
such as a non-breaking hyphen, an em-dash, or an en-dash. You can find out
what character it is by using =CODE(MID(A1,3,1)) If the answer isn't 45,
you haven't got a hyphen.
--
David Biddulph

Sherry wrote:
Doesn't work in Excel. Actually, I solved my problem...

=left(a1,2) & "/" & mid(a1,4,2) & "/" & right(a1,4)

Thanks anyway!!!

"Teethless mama" wrote:

Ctrl-H
Find what: -
Replace with: /
Replace All


"Sherry" wrote:

How do I replace / with - in a number
ex: 10-00-2830 with 10/00/2830





  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 116
Default Replace "/" with "-" in a number formatting

Thanks John!!!

"John" wrote:

Hi Sherry
Goto Edit Find Replace
HTH
John
"Sherry" wrote in message
...
How do I replace / with - in a number
ex: 10-00-2830 with 10/00/2830





  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Replace "/" with "-" in a number formatting

Well, I'm fascinated that you can get a date of 10-00-2083. The mind
boggles.
--
David Biddulph

Sherry wrote:
I apologize for wasting you time. :(

My co-worker renigged and gave me wrong request. She wanted
10/00/2083 to be 10-00-2083. Resolution was:
=TEXT(A10,"mm-dd-yyyy") so simple.


"Gord Dibben" wrote:

Your original example was 10-00-2083

TM's suggestion was predicated upon that example and it does work

Where did 10/01/2009 come from?


Gord Dibben MS Excel MVP


On Thu, 5 Feb 2009 14:33:21 -0800, Sherry
wrote:

No disrespect to Teethless mama but it does not work. Excel is
recognizing 10/01/2009 as a date and changes nothing even when I
change the format to date in the "find what / replace with" window
. I'm obviously missing something.

"David Biddulph" wrote:

I think you'll find that Teethless mama would not have suggested
it if it doesn't work in Excel.
It does work.

It wouldn't work if the character you had as the 3rd and 6th
characters wasn't a hyphen as you'd typed it in this message but
some special character such as a non-breaking hyphen, an em-dash,
or an en-dash. You can find out what character it is by using
=CODE(MID(A1,3,1)) If the answer isn't 45, you haven't got a
hyphen. --
David Biddulph

Sherry wrote:
Doesn't work in Excel. Actually, I solved my problem...

=left(a1,2) & "/" & mid(a1,4,2) & "/" & right(a1,4)

Thanks anyway!!!

"Teethless mama" wrote:

Ctrl-H
Find what: -
Replace with: /
Replace All


"Sherry" wrote:

How do I replace / with - in a number
ex: 10-00-2830 with 10/00/2830



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
Replace "/" with "-" in a number formatting Teethless mama Excel Discussion (Misc queries) 0 February 5th 09 08:21 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


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