Part of text as criteria

I

irresistible007

While Practising my skills I encountered following prob:

Col 'B' = Region, C= Product and D is quantities

Formula to sum quantities sold of product "Beta" to East region:

=SUM(IF((B5:B10="EAST")*(C5:C10="beta"),D5:D10, 0))

(i hope the above formula is efficient enough)

But when I put "Eastern" in any of the cell in Col 'B' it wont give m
the desired result. So I want the 1st condition to look lik
B5:B10="East*" but even changing to this i could get the resuts. I hav
even tried B5:B10="East& "*"" but doesnt worked.....

Please help
 
B

Biff

Hi!
=SUM(IF((B5:B10="EAST")*(C5:C10="beta"),D5:D10, 0))

(i hope the above formula is efficient enough)


More efficient (and, normally entered, not an array):

A1 = East
B1 = Beta

=SUMPRODUCT(--(B5:B10=A1),--(C5:C10=B1),D5:D10)

To do the same thing in which the cells in B5:B10 may contain the substring
"East":

=SUMPRODUCT(--(ISNUMBER(SEARCH(A1,B5:B10))),--(C5:C10=B1),D5:D10)

Biff

"irresistible007" <[email protected]>
wrote in message
 
B

Bruno Campanini

"irresistible007" <[email protected]>
wrote in message
While Practising my skills I encountered following prob:

Col 'B' = Region, C= Product and D is quantities

Formula to sum quantities sold of product "Beta" to East region:

=SUM(IF((B5:B10="EAST")*(C5:C10="beta"),D5:D10, 0))


=SUMPRODUCT((LEFT(B5:B10,4)="EAST")*
(C5:C10="beta")*D5:D10)

Ciao
Bruno
 

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

Similar Threads

Variable Sumproduct Range 6
Payment calculation 1
Simple Calculation Bug 1
Avg Arrays 2
Stripe out duplicate data 5
Incrementing Formula by Column Instead of by Row 1
Sumif with more than one criteria 15
Sumproduct 7

Top