Matrixx2525
New Member
- Joined
- Feb 4, 2017
- Messages
- 8
Hello,
I'm trying to learn the Dictionary to speed up my Vlookup but it won't work.
My case is very simple: I have Sheet 1 with names+ages and need to add the profession, found in Sheet 2:
Sheet1
=====
Name|Age|Profession
John|25|
Marc|31|
Susan|54|
Karin|21|
Sheet2
=====
Name|profession
Karin|doctor
John|teacher
Karin|unemployed
Marc|shoe salesman
Normally, I would use the simple Vlookup as a formula or in VBA, but I use 100.000+ records, so this solution is slow...
Can anybody give me some code how to add the profession from Sheet2 into Sheet1-row C using the Scripting Dictionary?
Thanks so much in advance, this would really help me.
best regards,
Jeroen
I'm trying to learn the Dictionary to speed up my Vlookup but it won't work.
My case is very simple: I have Sheet 1 with names+ages and need to add the profession, found in Sheet 2:
Sheet1
=====
Name|Age|Profession
John|25|
Marc|31|
Susan|54|
Karin|21|
Sheet2
=====
Name|profession
Karin|doctor
John|teacher
Karin|unemployed
Marc|shoe salesman
Normally, I would use the simple Vlookup as a formula or in VBA, but I use 100.000+ records, so this solution is slow...
Can anybody give me some code how to add the profession from Sheet2 into Sheet1-row C using the Scripting Dictionary?
Thanks so much in advance, this would really help me.
best regards,
Jeroen