How to isolate portion of thread

DougStroud

Well-known Member
Joined
Aug 16, 2005
Messages
2,968
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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,215,429
Messages
6,124,844
Members
449,193
Latest member
MikeVol

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