VLookup w/ Headers

dirk1965

Board Regular
Joined
Feb 18, 2004
Messages
241
Can the VLookup function be used on worksheets that have header rows? If so, what does the syntax look like?

Thanks
 
Sorry,

Forgot to insert your sheet names where appropriate per your original post.

Note: The reference to Column A are just used for counters/locators. They are not referencing specific information from your sheet(s).


=IF(ROWS($A$1:A1)>COUNTIF(Sheet1!$B$1:$B$1000,$E$2),"",INDEX(Sheet1!$D$1:$D$1000,SMALL(IF(Sheet1!$B$1:$B$1000=$E$2,ROW(Sheet1!$A$1:$A$1000)-ROW(Sheet1!$A$1)+1),ROWS($A$1:A1))))

don't forget to update ranges to encompass your whole lookup table range and then confirm with CTRL+SHIFT+ENTER
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,215,013
Messages
6,122,694
Members
449,092
Latest member
snoom82

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