Formula Help, only want numerical data after #

CDICKENS

Active Member
Joined
Mar 24, 2002
Messages
498
I am trying to parse out some data in a cell and just return the number that is after the # .

Here is some sample data


Adderley (# 18876)
American Limoges/Sebring (# 18877)
Aynsley (# 2793)
Barker Bros, Sampson Smith (# 2794)
Belleek (# 2795)
Bing & Grondahl (# 2796)
Capodimonte (# 4218)

I want to return only the numerical data that is after the # .

For Example:

Adderley (# 18876) should return 18876
Barker Bros,Sampson Smith (# 2794) should return 2794

Here is the formula that I have started:

=RIGHT(B25,FIND("#",B25&" ")-1)

It ddoesn't quite do what I want, here are the results of that formula on the sample data:


(# 18876)
Limoges/Sebring (# 18877)
(# 2793)
Bros, Sampson Smith (# 2794)
(# 2795)
Grondahl (# 2796)
onte (# 4218)



Thanks,

Chuck
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
If you have the morefunc add-in...

=SUBSTITUTE(WMID(A1,2,1,"#"),")","")+0

Otherwise...

=SUBSTITUTE(TRIM(MID(A1,SEARCH("#",A1)+1,LEN(A1))),")","")+0
 
Upvote 0
Aladin. Is there any worksheet function equivalent to "Instr" in VBA?

GNaga
 
Upvote 0

Forum statistics

Threads
1,221,706
Messages
6,161,406
Members
451,702
Latest member
Kc3475

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