# Sumif depending on two criteria

#### Shelly68

##### Board Regular
Complete novice here (well compared to everybody else on this forum, lol)

-----A ----- B ----- C

Apple -- -- Red -- 10
Apple ---- Green -- 6
Orange -- Blue -- 15
Orange -- Blue -- 20
Banana-- - Yellow -- 20
Banana -- Purple -- 10

How can I work out how many of each there are please

### Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi, Welcome to the board

To work out Orange and blue using your example:

=sumproduct((a1:a6="orange")*(b1:b6="blue")*(c1:c6)) will result in 35

Thanks, that's great, you're a champ!!!!

Replies
3
Views
319
Legacy 143009
L
Replies
4
Views
271
Replies
2
Views
536
Replies
1
Views
233
Replies
2
Views
584

1,219,960
Messages
6,151,163
Members
451,012
Latest member
OH650R

### 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.

### Which adblocker are you using?

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

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