Vlookup #REF error

vba317

Board Regular
Joined
Oct 7, 2015
Messages
58
I am having a problem with my Vlookup formula I am hoping that I can get some help. The formula is on Sheet1 cell Y15. I am trying to do a lookup based on account number on sheet 1 and 2. on Sheet 1 the account number is in Column C the column header is C11. On sheet 2 the account # column is column B. In Cell Y15 on sheet 1 I want the address field from sheet 2 Column H when the account numbers match.
Any help is appreciated.

Code:
=VLOOKUP(C11,Sheet1!C:C,Sheet2!H:H,FALSE)
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Vlookup should be of the form =VLOOKUP(lookup value, table array, column index number (should be a number),FALSE)
 
Last edited:
Upvote 0
I tried this and I get a #NA error
=VLOOKUP(Sheet1!C15,Sheet2!A:H,3,FALSE)

This formula says: Look up C15 of Sheet1 in column A of Sheet2. If found, return the corresponding value from column C of Sheet2. Is this what you are after?
 
Upvote 0
Looking at your original attempted formula


It would seem you want
=VLOOKUP(C11,Sheet1!C:H,6,FALSE)

This is what I thought at first until I noticed the different sheets in his attempted formula.

=VLOOKUP(C11,Sheet1!C:C,Sheet2!H:H,FALSE)
 
Last edited:
Upvote 0
This is what I thought at first until I noticed the different sheets in his attempted formula.
=VLOOKUP(C11,Sheet1!C:C,Sheet2!H:H,FALSE)
I didn't even notice that.

I think the lookup range should be sheet2 then
Looking at your original attempted formula


It would seem you want
=VLOOKUP(C11,Sheet1!C:H,6,FALSE)
That should be
=VLOOKUP(C11,Sheet2!C:H,6,FALSE)
 
Upvote 0

Forum statistics

Threads
1,213,515
Messages
6,114,080
Members
448,548
Latest member
harryls

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