ending number

albertldee

Board Regular
Joined
Aug 22, 2002
Messages
65
hi everyone i just receive a spread sheet to seperate number
cell D has number like this 245-15 or 247/587-8
is there a formula that would let me seperate the number that come after - to cell C
example cell D4 has 256-16 i want to add the any number after the - like 16 into cell C4

thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Greg Truby

MrExcel MVP
Joined
Jun 19, 2002
Messages
10,022
<ul>[*]=RIGHT(D4,LEN(D4)-FIND("-",D4))[/list]{Edit}(a)Too slow on the draw! Hiya Oaktree. (b)Oak's use of the "+0" at the end results in the cell's results being a number whereas my formula results in the output being treated as text. Use whichever fits your needs.{/edit}
 
Upvote 0

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
albertldee said:
hi everyone i just receive a spread sheet to seperate number
cell D has number like this 245-15 or 247/587-8
is there a formula that would let me seperate the number that come after - to cell C
example cell D4 has 256-16 i want to add the any number after the - like 16 into cell C4

thanks

=REPLACE(D4,1,SEARCH("-",D4),"")+0
 
Upvote 0

Forum statistics

Threads
1,195,949
Messages
6,012,481
Members
441,701
Latest member
vnkendijs

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
Top