if a number= string to text

deanl33069

Board Regular
Joined
May 2, 2019
Messages
120
so i have a long number from a barcode.
0190027182300349320100024711190409210219892014g
in cells a6-a460
where the 3rd #to the 14th is fixed
90027182300349 and want cell g6-g460 output text tied to that number
so 90027182300349 would = to blue
90027182232456 would=to red
I tried the formula MID(a6,3,14)=
but cant get it to work
 
Re: EXTRACT part of a long number to a text answer

[TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl63, width: 64"]i have this number
01900123456789012345678901234567890

[/TD]
[/TR]
</tbody>[/TABLE]
and i am using this statment =mid(a5,3,14)
gives me 90012345678901 i want the result to be HAMMER
ty


Let's say that in column A you have that text.
Somewhere - say in column D you have those 14-digit numbers and in column E the names for each code in column D.

Now in the column - let's say - B uses the following formula:
Code:
= vlookup (-- mid($A1, 3, 14), $D$1:$E$1000, 2, 0)
 
Last edited:
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Re: EXTRACT part of a long number to a text answer

If in column D are TEXT (number as text) then formula will be:
Code:
=vlookup(mid($A1,3,14), $D$1:$E$1000,2,0)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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