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:

[TABLE="width: 144"]
<TBODY>[TR]
[TD="width: 64, bgcolor: transparent"]Fruit
[/TD]
[TD="width: 64, bgcolor: transparent"]Item Set
[/TD]
[TD="width: 64, bgcolor: transparent"]Available
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Banana
[/TD]
[TD="bgcolor: transparent"]A1
[/TD]
[TD="bgcolor: transparent"]Y
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Apple
[/TD]
[TD="bgcolor: transparent"]A2
[/TD]
[TD="bgcolor: transparent"]N
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Banana
[/TD]
[TD="bgcolor: transparent"]A2
[/TD]
[TD="bgcolor: transparent"]N
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Kiwi
[/TD]
[TD="bgcolor: transparent"]A2
[/TD]
[TD="bgcolor: transparent"]N
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Apple
[/TD]
[TD="bgcolor: transparent"]A1
[/TD]
[TD="bgcolor: transparent"]Y
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Peach
[/TD]
[TD="bgcolor: transparent"]B1
[/TD]
[TD="bgcolor: transparent"]Y
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Apple
[/TD]
[TD="bgcolor: transparent"]A1
[/TD]
[TD="bgcolor: transparent"]Y
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Apple
[/TD]
[TD="bgcolor: transparent"]A1
[/TD]
[TD="bgcolor: transparent"]Y
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Apple
[/TD]
[TD="bgcolor: transparent"]A0
[/TD]
[TD="bgcolor: transparent"]Y
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Banana
[/TD]
[TD="bgcolor: transparent"]C2
[/TD]
[TD="bgcolor: transparent"]N
[/TD]
[/TR]
</TBODY>[/TABLE]


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
 

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