How do I ....

stuartbrisgel

New Member
Joined
Jul 4, 2014
Messages
15
Hello Y'all


Question

N47 = 32002-4211050-new


I want


M47 = 32002

and

N47 = 4211050




How do I do that?******** type="text/javascript" src="safari-extension://com.ebay.safari.myebaymanager-QYHMMGCMJR/3b664048/background/helpers/prefilterHelper.js">*********>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
You can use Text to columns and select "-" as delimeter
 
Upvote 0
don't follow at all ******** type="text/javascript" src="safari-extension://com.ebay.safari.myebaymanager-QYHMMGCMJR/5354ebc8/background/helpers/prefilterHelper.js">*********>
 
Upvote 0
See this example to understand my point above. If you have data in a column thats seperated by a a particular character, like in my example below, a hyphen....You can select the column with the data, go to DATA tab, select Text to columns and selectDelimited and select hyphen as the character to seperate by. Just follow the wizard and you will see how it works. see the table below for an example of the result when the data in column A is split


Excel 2010
ABCD
1155625-gfhhhg-7678686155625gfhhhg7678686
24564747-red-363634564747red36363
3364737-green-446575364737green446575
4645858-true-47474645858TRUE47474
Sheet1


If you want to use a formula for example, see an example below. there are a lot of formulas that can give you the same result


Excel 2010
MNO
4732002-4211050-new320024211050
Sheet1
Cell Formulas
RangeFormula
N47=LEFT(M47,FIND("-",M47)-1)
O47=MID(M47,FIND("-",M47)+1,FIND("-",M47,FIND("-",M47)+1)-FIND("-",M47)-1)
 
Upvote 0
Ok great part 1 done when I copied and pasted I have this effect
321234110050
321234206210
321234278910
321234203585
321234260467

It does not see them as numbers but as texts?

<colgroup><col><col></colgroup><tbody>
</tbody>
******** type="text/javascript" src="safari-extension://com.ebay.safari.myebaymanager-QYHMMGCMJR/5354ebc8/background/helpers/prefilterHelper.js">*********>
 
Upvote 0
Ok great part 1 done when I copied and pasted I have this effect
321234110050
321234206210
321234278910
321234203585
321234260467

It does not see them as numbers but as texts?

<tbody>
</tbody>
******** type="text/javascript" src="safari-extension://com.ebay.safari.myebaymanager-QYHMMGCMJR/5354ebc8/background/helpers/prefilterHelper.js">*********>

Just add zero to the formulas Momentman posted....

Worksheet Formulas
CellFormula
N47=0+LEFT(M47,FIND("-",M47)-1)
O47=0+MID(M47,FIND("-",M47)+1,FIND("-",M47,FIND("-",M47)+1)-FIND("-",M47)-1)

<tbody>
</tbody>

<tbody>
</tbody>
Be warned, though, converting them to real numbers will lose any leading zeroes that might be there.
 
Upvote 0
That shouldn't happen anyways, 'cos when you do Text to columns and use the general format, it pastes Numbers(in the form of text) as numbers
 
Last edited:
Upvote 0
4625629
4626935
4655172
4655173
6016460
6052830
6057588
4211050
6013938
4109854
4239601
4211573
4110050
4206210

<colgroup><col></colgroup><tbody>
</tbody>
******** type="text/javascript" src="safari-extension://com.ebay.safari.myebaymanager-QYHMMGCMJR/5354ebc8/background/helpers/prefilterHelper.js">*********>
 
Upvote 0

Forum statistics

Threads
1,216,067
Messages
6,128,590
Members
449,460
Latest member
jgharbawi

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