# ending number

#### albertldee

##### Board Regular
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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
=RIGHT(D4,LEN(D4)-SEARCH("-",D4))+0

<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}

albertldee said:
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

Replies
1
Views
204
Replies
8
Views
326
Replies
3
Views
728
Replies
10
Views
923
Replies
4
Views
370

1,221,239
Messages
6,158,720
Members
451,512
Latest member
aimarhu

### 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.

### Which adblocker are you using?

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

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