Sumproduct and horizontal lookup

G

Guest

I have the following spreadsheet:
A B C D
1 Jan Feb
2 blue 50 30
3 red 125 544
4 yellow 40 44
5 blue 30 122
6 red 54 60
7 red 100 80

How do I use sumproduct with a lookup in the colums. For ex. I want to know
how much I have in the blue for Jan and Feb. I don't won't to use pivot
tables.

Thanks Gingit.
 
D

daddylonglegs

I guess you have a bigger range in reality but for your example perhap
to give you a sum for blue items in jan column

=SUMPRODUCT(--(A2:A7="Blue"),INDEX(B2:C7,0,MATCH("jan",B1:C1,0))
 
G

Guest

Hi daddylonglegs,

This is only a sample, my spreadsheet is much more complex. But your
formula didn't work :( I should clarify that my spreadsheet starts at col A
if that matters.

Thanks,
 
G

Guest

Looks like it worked afterall

THANKS :)

Gingit said:
Hi daddylonglegs,

This is only a sample, my spreadsheet is much more complex. But your
formula didn't work :( I should clarify that my spreadsheet starts at col A
if that matters.

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top