Need to find formula to find value and add all data without the duplicates

sneakyla

New Member
Joined
Aug 11, 2021
Messages
23
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I need to find the correct formula to find a specific value such and sum all the sizes without any duplicates. Please see below for the table example.

Basically, what I need to achieve is a formula to find BANANA and give a total size number of 3 because banana has small medium and large (3 different sizes), same goes for APPLE with a returning value of 3 because there 3 different sizes for apple too. If I added values of ORANGE with only Small and Medium then I need the formula to return the value of 2 because there are only 2 different sizes.

1629830757132.png


Thank you!
 
Thanks for that Eric, didn't think it would need it with sumproduct.
It's the IF. IF and IFERROR never worked inside of SUMPRODUCT without the CSE.

Marcelo, your formula fails with this case:

Book1
ABC
1
2BYA
3BX
4AY
5AY
6AZ
7AZ
8AZ
9BX
10BX
11BY
12BX
13BZ
14BZ
15BZ
16BX
17
Sheet1


I've about got a non-CSE version working, but it's getting pretty long, and if the OP is happy, probably not worth it.
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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