You are on page 1of 1

i have an data table with a with the following form (3 rows of many) Group Item Cost A bla 2

C lar 3 A er 5 What is the excel formula i need to put to get the sum Cost per Group?

To get the sum of the Cost column for each Group in an Excel table, you can use the SUMIF
function. The syntax for the SUMIF function is as follows:

SUMIF(range, criteria, [sum_range])

For example, if your table is in the range A1:C3, with Group in column A, Item in column B,
and Cost in column C, you could use the following formula to get the sum of the Cost column
for Group A:

=SUMIF(A2:A3, "A", C2:C3)

This formula will sum the values in the range C2:C3 (the Cost column) if the corresponding
value in the range A2:A3 (the Group column) is "A".

You can use this formula as a starting point, and then copy it and adjust the criteria and range
arguments to get the sum of the Cost column for each Group. For example, to get the sum of
the Cost column for Group C, you could use the following formula:

=SUMIF(A2:A3, "C", C2:C3)

You can also use the SUMIFS function if you want to sum values based on multiple criteria.
For example, if you want to sum the values in the Cost column for Group A where the Item is
"bla", you could use the following formula:

=SUMIFS(C2:C3, A2:A3, "A", B2:B3, "bla")

I hope this helps! Let me know if you have any questions or if you need further assistance.

You might also like