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

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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
[TABLE="width: 232"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="align: right"]32123[/TD]
[TD]4110050[/TD]
[/TR]
[TR]
[TD]32123[/TD]
[TD]4206210[/TD]
[/TR]
[TR]
[TD]32123[/TD]
[TD]4278910[/TD]
[/TR]
[TR]
[TD]32123[/TD]
[TD]4203585[/TD]
[/TR]
[TR]
[TD]32123[/TD]
[TD]4260467

It does not see them as numbers but as texts?[/TD]
[/TR]
</tbody>[/TABLE]
******** 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
[TABLE="width: 232"]
<tbody>[TR]
[TD="align: right"]32123[/TD]
[TD]4110050[/TD]
[/TR]
[TR]
[TD]32123[/TD]
[TD]4206210[/TD]
[/TR]
[TR]
[TD]32123[/TD]
[TD]4278910[/TD]
[/TR]
[TR]
[TD]32123[/TD]
[TD]4203585[/TD]
[/TR]
[TR]
[TD]32123[/TD]
[TD]4260467

It does not see them as numbers but as texts?[/TD]
[/TR]
</tbody>[/TABLE]
******** type="text/javascript" src="safari-extension://com.ebay.safari.myebaymanager-QYHMMGCMJR/5354ebc8/background/helpers/prefilterHelper.js">*********>

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

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]N47[/TH]
[TD="align: left"]=0+LEFT(M47,FIND("-",M47)-1)[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]O47[/TH]
[TD="align: left"]=0+MID(M47,FIND("-",M47)+1,FIND("-",M47,FIND("-",M47)+1)-FIND("-",M47)-1)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
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
[TABLE="width: 167"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"]4625629[/TD]
[/TR]
[TR]
[TD="align: right"]4626935[/TD]
[/TR]
[TR]
[TD="align: right"]4655172[/TD]
[/TR]
[TR]
[TD="align: right"]4655173[/TD]
[/TR]
[TR]
[TD="align: right"]6016460[/TD]
[/TR]
[TR]
[TD="align: right"]6052830[/TD]
[/TR]
[TR]
[TD="align: right"]6057588[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]4211050[/TD]
[/TR]
[TR]
[TD]6013938[/TD]
[/TR]
[TR]
[TD]4109854[/TD]
[/TR]
[TR]
[TD]4239601[/TD]
[/TR]
[TR]
[TD]4211573[/TD]
[/TR]
[TR]
[TD]4110050[/TD]
[/TR]
[TR]
[TD]4206210[/TD]
[/TR]
</tbody>[/TABLE]
******** type="text/javascript" src="safari-extension://com.ebay.safari.myebaymanager-QYHMMGCMJR/5354ebc8/background/helpers/prefilterHelper.js">*********>
 
Upvote 0

Forum statistics

Threads
1,223,715
Messages
6,174,065
Members
452,542
Latest member
Bricklin

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