sumproduct with vlookup

lesbritten

New Member
Joined
Dec 1, 2011
Messages
21
Hi all,

I have the following formula that works perfectly....
=SUM(SUMPRODUCT(AP17:AQ22*AP16:AQ16))

However, when i try to lookup a value like so....
=SUM(SUMPRODUCT(O5:Q8*VLOOKUP(O3:Q3&"-"&O4:Q4,BK6:BN35,4,FALSE)))
it doesn't work, even when I CSE the formula.

I think i am batting along the wrong lines when using vlookup and may have to use index and match, but my knowledge of these is limited.

I added an extra column to the vlookup table that combined the text from BL6:BM35 to make column BK (if you see what I mean) so the Vlookup would work.

I hope thats enough detail, any ideas/suggestions welcome!!

Many thanks,

Les
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
That lookup is using multiple cells to concatenate in the lookup value. That won't work. What is in those cells and the lookup table?
 
Upvote 0
interesting.... I've used concatenation with vlookups in the past and worked

In the vlookup table I have four columns.
Column BK is the ref that contains a concatenation of rows BL and BM with a "-" inbewteen.
Column BN contains the price

Ie.
BK would have Coriander-Bunched
BL would have Coriander
BM would have Bunched
BN would have 1.5

Rows 6-35 would have different specifications all the way down

Les
 
Upvote 0
Yeah you can with cells like this

O3&"-"&O4

but you are trying to concatenate ranges

O3:Q3&"-"&O4:Q4
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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