Adding Column formula to a vlookup

DanielAP

New Member
Joined
Apr 23, 2009
Messages
7
Hi

I have a vlookup that i need to extend across a large array. I believe the COLUMN formula will allow me to do this without having to manually change the column I'm looking up.

Any help on using this formula would be much appreciated as I'm new to it.

=(VLOOKUP($A9,$A$15:$F$19,2,FALSE)*VLOOKUP(B$8,$J$1:$N$5,2,FALSE))+((VLOOKUP($A9,$A$15:$F$19,3,FALSE)*VLOOKUP(B$8,$J$1:$N$5,3,FALSE))+((VLOOKUP($A9,$A$15:$F$19,4,FALSE)*VLOOKUP(B$8,$J$1:$N$5,4,FALSE))+((VLOOKUP($A9,$A$15:$F$19,5,FALSE)*VLOOKUP(B$8,$J$1:$N$5,5,FALSE)))))

Thanks

Dan (Excel 2007)
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi

I have a vlookup that i need to extend across a large array. I believe the COLUMN formula will allow me to do this without having to manually change the column I'm looking up.

Any help on using this formula would be much appreciated as I'm new to it.

=(VLOOKUP($A9,$A$15:$F$19,2,FALSE)*VLOOKUP(B$8,$J$1:$N$5,2,FALSE))+((VLOOKUP($A9,$A$15:$F$19,3,FALSE)*VLOOKUP(B$8,$J$1:$N$5,3,FALSE))+((VLOOKUP($A9,$A$15:$F$19,4,FALSE)*VLOOKUP(B$8,$J$1:$N$5,4,FALSE))+((VLOOKUP($A9,$A$15:$F$19,5,FALSE)*VLOOKUP(B$8,$J$1:$N$5,5,FALSE)))))

Thanks

Dan (Excel 2007)
Try this...

=SUMPRODUCT(INDEX(B15:E19,MATCH(A9,A15:A19,0),0),INDEX(K1:N5,MATCH(B8,J1:J5,0),0))
 
Upvote 0
in response to the original query, you need the Columns function instead of using 1 to show column 1 use =Columns($A1:A1) which results in 1 as you drag across the columns this will increment by 1 for eacch column ie columns($A1:E1) will return 5
 
Upvote 0
Thanks for all the responses, I knew there would be a neater way to work this. T.Valko your solution works perfectly, especially as i can easily scale it up to accommodate larger arrays.

Thanks again all, I really appreciate the help.

Dan
 
Upvote 0
Thanks for all the responses, I knew there would be a neater way to work this. T.Valko your solution works perfectly, especially as i can easily scale it up to accommodate larger arrays.

Thanks again all, I really appreciate the help.

Dan
You're welcome. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,802
Members
452,943
Latest member
Newbie4296

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