Vlookup macro from Vlookup function .

Sunline

Well-known Member
Joined
Oct 6, 2007
Messages
701
Office Version
  1. 2016
Platform
  1. Windows
Hello all , looked over past posts and none seem to cover this .
I would like to turn if possible this function into a macro as i run this in 3 cols and is memory heavy and slow . i have 170,000 rows and growing weekly .

=IF(DO2="",0,VLOOKUP(DO2,Sheet2!$E$2:$F$43,2,0)) , return answer is in col FO2 .

This looks at col DO2 , if blank will return a zero , if it contains
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1=,2=,3=,4=,5=,6=,7=,8=,9=,10=,11=,12=,13=,14=,15=,16=,17=,B,D,F,LR,P,RO,U , then lookup sheet2 range $E$2:$F$43 and return
5 if 1 found in col DO2,10 if 2 found,15 if 3 found,20 if 4 found,25 if 5 found , etc up to 210 which would be for U if found in col DO .

Golly i hope i have finally asked all the right questions for once .
Thanks .
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Bump , im guessing i havent supplied enough info again , please let me know what i havent asked for , looking for a remedy , thanks .
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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