VLOOKUP Error huge data

3nduranc3

New Member
Joined
May 27, 2013
Messages
17
Hi All!

I have a pretty big problem here, and never met something like this, although I am using Excel a lot even doing macros.

I got a Big database from SAP. Namely 862 000 rows. Each have a Material Nr. in it, looking like this:

1156985-141-09

I have another Workbook which contains certain material numbers, And i want to know which are from it in the big one also (This has only 15k rows).

So I make a + column in the big file, and hit VLOOKUP. Thefirst value is found and gives the material number back. And here comes the problem. When I copy it to other cells down, it basically gives back the first value always. How is this possible?

I tried to copy value, copy formula, x1 works not because of format, its not number. I made a new file, formatted it general, text, number whatever, it always does the same. Tried xlsm, xlsx formats even.

And not just VLOOKUP, but a simple TRIM does the same.

Could you help?

Thanks a lot!
 
Just a simple =VLOOKUP(R2;othersheet!A:A,1,0)

But at 860k rows it was like 45 mins to calculate them all.

Try to sort column A on othersheet, if possible, and invoke:

=IF(VLOOKUP(R2,othersheet!A:A,1,1)=R2,VLOOKUP(R2,othersheet!A:A,1,1),"Not Found")

Replace comma with semi-colon if you are on a European system
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
The formula in my post #9 should be this.
I had some typos, and change ,'s to ; if needed.

Code:
.Formula = "=VLOOKUP(R2;othersheet!A:A,1,0)": .Value = .Value

I'm thinking once the formulas are in place, vlookup will still take a long time.

I have the feeling I am barking up the wrong tree.

Regards,
Howard
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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