Search for a number in a column of alpha numeric data and display only the non numeric data

questforexcel

Board Regular
Joined
Jan 18, 2019
Messages
128
Office Version
  1. 2013
Platform
  1. Windows
Hi All,

So I have a column which has only numbers. For eg. 345678, 674567.

I want these individual numbers to be looked from a series of data which have corresponding Alphanumeric Values eg. 345678 - Computers, 674567 - Printers ...so on.

How do I place a formula which looks up the individual numbers above from alpha numeric values and displays only the non numeric values i.e. the text info.

I assume to ease the reference, the separating symbol is "-" .

I thought of using a vlookup but wouldnt know how would that differentiate the characters to the right of the "-".

Would appreciate all your help.

Thank you
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
How about


Book1
ABCD
1
2345678 567890 - Computer
3456789laptop456789 - laptop
4567890Computer34567 - printer
53456
Lookup
Cell Formulas
RangeFormula
B2=IFERROR(TRIM(RIGHT(SUBSTITUTE(INDEX($D$2:$D$4,MATCH(A2&" *",$D$2:$D$4,0)),"- ",REPT(" ",100)),100)),"")
 
Upvote 0
Thank you for your quick response and effort.

I tried the formula but it returns a blank value. Dont know why.

=IFERROR(TRIM(RIGHT(SUBSTITUTE(INDEX($E$5:$E$142,MATCH(G6&" *",$E$5:$E$142,0)),"-",REPT(" ",100)),100)),"")


How about

ABCD
1
2345678567890 - Computer
3456789laptop456789 - laptop
4567890Computer34567 - printer
53456

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Lookup

Worksheet Formulas
CellFormula
B2=IFERROR(TRIM(RIGHT(SUBSTITUTE(INDEX($D$2:$D$4,MATCH(A2&" *",$D$2:$D$4,0)),"- ",REPT(" ",100)),100)),"")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
In that case can you please post some sample data. There are some add-ins here that enable you to do that. Add-ins
 
Upvote 0
Hi, site skin and look of Mr. Excel is awesome! much easier to upload and put through images and sheets.

Apologies for the delayed response. Added my working here. Would really appreciate your guidance. Thank you

1574108646247.png
 
Upvote 0
If your columns are L & M try
=IFERROR(TRIM(RIGHT(SUBSTITUTE(INDEX($L$5:$L$10,MATCH(M5&"*",$L$5:$L$10,0)),"- ",REPT(" ",100)),100)),"")

Also images are of very little use, there is an add-in here that enables you to post data to the site, that can be copied to and pasted. XL2BB
 
Upvote 0
Thank you so much for your quick response and help.

My apologies for sharing it as an image, i downloaded the file and tried to run it but do not have access to run downloaded files.

So not able to run the Add In.

I tried using the formula and adjusted the match to M, it sill displays a blank cell.

Thank you for your time. :)
 
Upvote 0
Works for me with data like

Book1
LMN
5345678-PC123456laptop
6123456-laptop345678PC
Data
Cell Formulas
RangeFormula
N5:N6N5=IFERROR(TRIM(RIGHT(SUBSTITUTE(INDEX($L$5:$L$10,MATCH(M5&"*",$L$5:$L$10,0)),"-",REPT(" ",100)),100)),"")
 
Upvote 0
OMG!! It worked now with the latest formula above !! :) :) :) God Bless you thank you so much :) :)

If its okay could you please help me understand this formula above. Thank you so much :)
 
Upvote 0
I am sorry to be more specific, what would the "*" represent in the formula after "Match" and what does REPT(" ",100)),100)),"") signify? Thank you
 
Upvote 0

Forum statistics

Threads
1,214,547
Messages
6,120,139
Members
448,948
Latest member
spamiki

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