Extracting Numbers after a Dash

PhancyK

New Member
Joined
Jan 17, 2016
Messages
46
Hey,

I'm trying to expand on the code =REPLACE(AR5,1,FIND("-",AR5),"") into an array that can gather multiple numbers from F5:AR5. The problem is that those cells can contain other values that don't include a dash.

Cells F5:AR5 can include:
empty
D
N
T
DOT-1
NES-1
TYL3ES-1
FDR3

and multiple other combinations. I just need something to return and add any numbers that come after the "-"

Is there anyway to do this with a single code?


Thanks
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Ok, so that gets rid of the error caused by the cells with different values but how do I create an array across 35 cells?

Basically shorten:

=IFERROR(REPLACE(F5,1,FIND("-",F5),""),"0")+(IFERROR(REPLACE(G5,1,FIND("-",G5),""),"0")+(IFERROR(REPLACE(H5,1,FIND("-",H5),""),"0"))) and so on...
 
Upvote 0
Maybe something like this:
This is an array function and must be entered with
Excel Workbook
GHIJKLM
357
4
5df- 4dr-45t-2zr- 6
CTRL-SHIFT-ENTER.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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