Sum all fruits in table

vorannon

New Member
Joined
Dec 11, 2019
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hi. I would like to sum all fruits from table like this:
quantityfruit 1fruit 2fruit 3
4​
appleplum
3​
pearapplestrawberry
8​
apple
6​
strawberry

And the result would be:
apple
15​
plum
4​
pear
3​
strawberry
9​

If I use sumif I only get sum from column fruit 1

Thank you for your help
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Something like:

=SUMPRODUCT(($B$2:$D$5=A8)*$A$2:$A$5)

where A8 contains your named fruit and A1:D5 contains the source table.
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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