Multiple match statements?

J

Jas

Hi,

I am trying to match 3 data points and return the value for the cell they
intersect at - without using concatenate if possible.

In the below table I would like to return the value for Product A, Country
UK, Week 2 i.e. 20 - any ideas?

Product Country Week Qty
A UK 1 10
A UK 2 20
A UK 3 15
A FR 1 10
A FR 2 12
 
J

Jas

Sorry I was not complete and clear in request, Product and country are
dynamic based on user input, so I have linked them to the location where
input, then I want the formula to use this input against the table of 228k
rows and find the value at that intersection - make sense?
 
J

Jas

Sorry you were both right it worked, needed to read it a bit more carefully -
more learnings :)
 
T

T. Valko

A1 = product = A
A2 = country = UK

=SUMPRODUCT(--(product=A1),--(country=A2),--(week=2),qty)
the table of 228k rows

I'd imagine that any formula will be slow to calculate on that size range. I
don't have Excel 2007, maybe the COUNTIFS function would be faster.

Biff
 
T

T. Valko

maybe the COUNTIFS function would be faster.

Check that! You're not counting. Is there a SUMIFS function?

Biff
 
R

Roger Govier

Yes Biff, there is

=SUMIFS(D:D,A:A="A",B:B,"UK",C:C,2)

Note that unlike Sumif, the range to be totalled comes first.
 

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