Excel SUMIF () -Formula can help you accomplish this.
as described syntax
SUMIF(range, criteria, sum_range)
Searches for fields within a range that match the criteria and sum the values in sum_range (at the same index where the criteria was found in the range, respectively).
you may need to create a matrix for each quantity / search criterion to summarize and compare ...
Another approach :
For a specific column (let’s take C) create a temporary column and add a value of 1 to each row.
For example, in the "Amount A:" column, enter the formula:
=IF($A2=D$1,1,0)
While D1 is the cell containing the number 3792 (above), and 2 in C2 is the current row in which the formula is located.
You could just drag it to the right and bottom.
This will be the result:
ABCDEFG 3792 3805 3806 3823 3892 3792 Widget A 1 3792 Widget A 1 3792 Widget A 1 3792 Widget A 1 3792 Widget A 1 3792 Widget A 1 3792 Widget A 1 3805 Widget B 1 3805 Widget B 1 3806 Widget C 1 3823 Widget D 1 3823 Widget D 1 3823 Widget D 1 3892 Widget E 1 3892 Widget E 1 3892 Widget E 1 SUM: 7 2 1 3 3
Just just summarize at the end and you get your results. If you need to add another number than 1 , just add another column containing the corresponding value, then replace it with IF formula.
you may need to automate this even more by using HLOOKUP() for the widget number at the top.
considers
source share