Assign formula

mantasm1

New Member
Joined
May 29, 2018
Messages
2
Hello guys,

Cant solve this function, so decided to write here. Maybe you can help me.

Situation:

Have a huge list (like a 30k+ rows). in A Column i have Numbers and in B i have Names. Basically i get a random list of names and i need to assign a exact number from list.

Example:

My database/list consists of:

AB
101Apple
102Tomato
103Lemon
104Orange
......
208Potato
209Onion
210Cucumber
......
etcetc

<tbody>
</tbody>


and i got random list of NAMES and need assign right NUMBER (for ex. i paste that list to column C and want to get a right number to D)

CD (need that formula)
Potato208
Cucumber210
Apple101
Orange104
Tomato102
and etc

<tbody>
</tbody>

I hope u get what i mean..

So anybody? I would be grateful for this.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hey man, thank you. That was enought, it worked.

here is solution:

=INDEX($A$2:$A$30028;MATCH(($A$1:$A$30);$B$2:$B$30028;0))

my list of numbers from "datasheet"
my new "random" list which i need to assign number
my list of names from "datasheet"

Dont want to start a new thread, so one more question, maybe you can help me also.
I have long name like Lemon from x country, big and sweet. How i can make this name limit like 3 words and put * in the end.

Ex: Lemon from x*?
 
Upvote 0
Try this formula:

=LEFT(INDEX($A$2:$A$30028;MATCH(($A$1:$A$30);$B$2:$B$30028;0)),SEARCH("|",SUBSTITUTE(INDEX($A$2:$A$30028;MATCH(($A$1:$A$30);$B$2:$B$30028;0))," ","|",3))-1)&"*"
 
Upvote 0

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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