# Simple subtotal

#### kumarnarain

##### New Member
Hai
I have 3 columns..Itemcode,Amount and subtotals.(say column a ,column b, & column c)I want to havet he subtotals coulmn reflect the sum of all rows with the same item code value.I am a beginner and it might be a real naive question.

Regards

Kumar

### Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

#### Brian from Maui

##### MrExcel MVP
kumarnarain said:
Hai
I have 3 columns..Itemcode,Amount and subtotals.(say column a ,column b, & column c)I want to havet he subtotals coulmn reflect the sum of all rows with the same item code value.I am a beginner and it might be a real naive question.

Regards

Kumar

=SUMIF(ItemCodeRange,ItemCode,SubtotalRange)

#### kumarnarain

##### New Member
Hai

I am still not able t crack the problem..I am attaching the xl sheet for ref

Regards

Kumar
Book1
EFGHIJK
10itemcodeamountsubtotalofcsubtotalofbsubtotalofa
11a5400
12a454
13c789
14a454
15a545
16b44
17b5454
18b5454
19c121
20a345
21c4
22c645
23c56464
24b3456
25c5649
26c54
Sheet1

#### Brian from Maui

##### MrExcel MVP
=SUMIF(F11:F26,"C",G11:G26)

##### MrExcel MVP
In fact, you were given all you need...
Book5
EFGHI
9Subtotalof
10itemcodeamountcba
11a540063726144087198
12a454
13c789
14a454
15a545
16b44
17b5454
18b5454
19c121
20a345
21c4
22c645
23c56464
24b3456
25c5649
26c54
Sheet1

G11, copied across:

=SUMIF(\$E\$11:\$E\$26,G\$10,\$F\$11:\$F\$26)

Replies
3
Views
1K
Replies
6
Views
385
Replies
1
Views
511
Replies
2
Views
686
Replies
1
Views
526

1,182,042
Messages
5,933,377
Members
436,891
Latest member
DanDan

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