VLOOKUP / MATCH cell selection error

BBallard

New Member
Joined
Jul 24, 2018
Messages
11
HI!
I am using a vlookup/match to populate fields from column headers. For the most part it's doing exactly what I need except instead of pulling column 2 twice and not pulling column 7.

code I am using:
=VLOOKUP($A$10,$A$2:$G$6,MATCH(B9,A1:G1,0)0)

I copied the code across the columns it looks right to me, but it pulls columns
2,2,3,4,5,6

Help! Thanks!!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
=VLOOKUP($A$10,$A$2:$G$6,MATCH(B9,A1:G1,0)0)
\

Are you missing a comma at the end?

=VLOOKUP($A$10,$A$2:$G$6,MATCH(B9,A1:G1,0),0)


Your formula may be returning TRUE version instead of FALSE
 
Last edited:
Upvote 0
B9 and A1:G1 don't have $ in front of them, which means they change as you copy across/down. Adjust and see if you get the correct results. Also be sure that $A$10 should be absolute.
 
Last edited:
Upvote 0
I had it working perfectly, went back and added in all of my data, and now it is doing the same thing again. Am I just missing something because I have been looking at for so long?

=VLOOKUP($A$2,Sheet2!$A$2:$O$77,MATCH($B1,Sheet2!A1:$O$1,0),0)

Thanks!
 
Upvote 0
Is there a way to leave cells blank if they do not apply to the object in my drop down list instead of it automatically placing a 0 in the cell?
 
Upvote 0
Yes you arent absoluting A1:O1 in your MATCH. Just the O1 part is absolute reference.
 
Upvote 0
thank you! is there a way to leave the cells blank if they do not apply to the object in my drop down list instead of it automatically placing a 0 in the cell?
 
Upvote 0
something like:

If(vlookup="","",vlookup)

where vlookup is your current formula without the = sign.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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