Visible Cell Vlookup

MAM8433

New Member
Joined
May 18, 2011
Messages
36
I am trying to run a vlookup on visible cells and it is not finding/returning any values. I found the formula online and tried to adapt it to my situation. Currently, I want to return the value in column C. The cell formula is currently:

{=VLOOKUP(A2,IF(SUBTOTAL(3,OFFSET([File2.xlsx]Sheet1!$B:$C,ROW([File2.xlsx]Sheet1!$B:$C)-ROW([File2.xlsx]Sheet1!$B$2),0,1)),[File2xlsx]Sheet1!$B:$C),3,0)}

The file with the vlookup formula contains a 5-character zip code in column A. The filtered file (File2) contains a 5-character zip in column B and program codes in column C. I used crtl+shift+enter to create the array brackets that surround the formula. When I copy the formula down, all returned values are #N/A.

I know the zip fields have matching formats as I tested a regular vlookup of zips and they were found. I can manually find some zips codes in the visible rows, so they can’t all be #N/A. I hope you can help me fix the formula.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Watch MrExcel Video

Forum statistics

Threads
1,129,868
Messages
5,638,763
Members
417,051
Latest member
arthur_w

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