vlookup help

jaden210

New Member
Joined
Jun 6, 2012
Messages
34
hey, I am trying to create an Add-in function to my excel sheet. Basically, I need it to say
=if(isna(vlookup(Lookup_value,Table_array, Col_index_num,[Range_lookup])),"0",vlookup(Lookup_value,Table_array, Col_index_num,[Range_lookup])) .
I have been manually typing this function in when I need it, and am looking for a quicker solution. any ideas?
 

Some videos you may like

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

martindwilson

Well-known Member
Joined
Aug 14, 2009
Messages
824
why not just
iferror(vlookup(Lookup_value,Table_array, Col_index_num,[Range_lookup]),0)
 

jaden210

New Member
Joined
Jun 6, 2012
Messages
34
that totally works, i am typing this functions hundreds of times a day and so it would be nice if there was a quicker way of of getting there.
 

martindwilson

Well-known Member
Joined
Aug 14, 2009
Messages
824
so you have hundreds of ranges that require individual lookups? i don't follow why are you typing hundreds, you still have to fill in the lookup cell / range /and the column.
if you really are typing this hundreds of times just put in note pad
=iferror(vlookup(a1, B:B,1,0),0) and copy paste change lookup range and col index to suit,
however is this just a question of autofilling down the formula?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,464
Messages
5,596,288
Members
414,052
Latest member
Dual Showman

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
Top