SOLVED

Formula which includes all results matching multiple criteria (no spilling)

Copper Contributor

Hi All,

 

I'm looking for a formula which can search a column and pull out all the relevant values based on 2 criteria, collating them all into one cell.  I have tried the following:

- Lookup - only finds the first value, but i need to find all

- Pivot table - I want this as part of a wider table which has values which can be manually entered (pivot can't do this)

 

I've provided an example below and would appreciate anyone's solutions!

 

Results table    
Item CodeDescriptionCost Formula should pick up …
A01UK[ formula ] 245
A01France[ formula ] 37
A01Spain[ formula ] 13
A02UK[ formula ] 102
A02France[ formula ] 111
A02Spain[ formula ] 60

 

Target table   
Description 1Description 2Values
A01UK10
A01UK20
A01UK50
A01UK65
A01France11
A01France26
A01Spain13
A02UK2
A02UK63
A02UK26
A02UK11
A02France65
A02France26
A02France20
A02Spain10
A02Spain50
A01UK100



3 Replies
best response confirmed by Rob__13 (Copper Contributor)
Solution

@Rob__13 

=SUMPRODUCT(($A$12:$A$28=A3)*($B$12:$B$28=B3)*$C$12:$C$28)

You can try this formula.

sumproduct.JPG 

@Rob__13 Simple SUMIFS() should give you desired result.

=SUMIFS(L:L,J:J,A2,K:K,B2)

 

Harun24HR_0-1683100926503.png

 

1 best response

Accepted Solutions
best response confirmed by Rob__13 (Copper Contributor)
Solution

@Rob__13 

=SUMPRODUCT(($A$12:$A$28=A3)*($B$12:$B$28=B3)*$C$12:$C$28)

You can try this formula.

sumproduct.JPG 

View solution in original post