Hi, I've got a problem that I believe excel can handle but I do not know how to go about doing it.
I'm trying to find all numeric,numeric instances and replace the comma (,) to a hyphen (-). For instance: If a cell looks like this:
1,4 billybobby walks, the dog ...... then I will want to change it to
1-4 billybobby walks, the dog .......the comma stays between "walks" and "the" but is changed to a hyphen between "1" and "4"
any ideas?
Thanks.
The SUBSTITUTE formula can do this. Read up on it.
=SUBSTITUTE(A1, ",", "-", 1)
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks