How to isolate portion of thread

DougStroud

Well-known Member
Joined
Aug 16, 2005
Messages
2,976
Office Version
  1. 365
Platform
  1. MacOS
I need to isolate the number in the cell. I'd like to select the number, cut it and place it in the adjacent cell to the right.

A1 DougStroud.com (DS) - 205,200

Thanks,

Doug
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
If it is always at the end of the entry, after the "-", then try this formula (for an entry in cell A1):
Excel Formula:
=TRIM(RIGHT(SUBSTITUTE(A1,"-",REPT(" ",100)),100))+0
 
Upvote 0
Solution
You are welcome.
Glad I was able to help!
 
Upvote 0
Hi,

Assuming the number is always after the hyphen, only 1 hyphen, nothing behind the number:

Book3.xlsx
AB
1DougStroud.com (DS) - 205,200205200
Sheet808
Cell Formulas
RangeFormula
B1B1=MID(A1,FIND("-",A1)+1,15)+0


PS: I use TRIM for text results, +0 to convert to real number, don't think both are needed, when using +0, Excel with auto-trim if it's 255 spaces or less.
 
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,685
Members
449,463
Latest member
Jojomen56

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top