Excel 2003 Help with SUMPRODUCT & finding unique values with conditions

NewbieDoo

New Member
Joined
Jan 19, 2015
Messages
1
Hi, this is my first post so I hope someone can help.

My dataset:

Fruit
Item Set
Available
Banana
A1
Y
Apple
A2
N
Banana
A2
N
Kiwi
A2
N
Apple
A1
Y
Peach
B1
Y
Apple
A1
Y
Apple
A1
Y
Apple
A0
Y
Banana
C2
N

<TBODY>
</TBODY>


I am using Excel 2003 formula:

=(SUMPRODUCT((B24:B100<>"")/COUNTIF(B24:B100,B24:B100&"")))

to give me the number of available sets = 5 (A0, A1, A2, B1 & C2)

and

=SUMPRODUCT(--(LEFT(A24:A100,5)="Apple"),--(LEFT(B24:B100,1)="A"),--ISNUMBER(FIND("Y",C24:C100)))

to give me the number of sets containing "Apple", beginning with "A" and available "Y" = 4

The output I actually need is 2, that is the number of "A" sets that are available "Y" and contain Apples = 2 (A0 & A1)

Does anyone know how to do this? Any help would be appreciated
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,214,614
Messages
6,120,519
Members
448,968
Latest member
Ajax40

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