Hello -
I just learned about the Replace function.
pretty slick for adding a hyphen in a specific spot in a string of numbers.
e.g.
this makes cell B1 read "123-456".
awesome.
now, how can I use the REPLACE function 2x (or more) in cell B1.
Assume that now my number is 123456789, and I want to make it read as "123-456-789"
I tried using a comma between replace statements but that gives an error.
I'd like to accomplish this all neat and tidy in one cell if possible, (rather than use REPLACE over and over again in multiple cells).
Any ideas?
I just learned about the Replace function.
pretty slick for adding a hyphen in a specific spot in a string of numbers.
e.g.
Code:
[b] A1 B1[/b]
123456 =REPLACE(A1,4,0,"-")
awesome.
now, how can I use the REPLACE function 2x (or more) in cell B1.
Assume that now my number is 123456789, and I want to make it read as "123-456-789"
I tried using a comma between replace statements but that gives an error.
I'd like to accomplish this all neat and tidy in one cell if possible, (rather than use REPLACE over and over again in multiple cells).
Any ideas?