SUMIFS formula in same column as the sum range (Possible?)

ChristianEllehammer

New Member
Joined
Aug 18, 2015
Messages
6
I've been using this awesome forum for many years, getting all of my Excel questions answered by the awesome forum members and Excel gurus, but now I'm having a task to which I cannot seem to find an already existing topic/solution for, thus this is my first post.

I'm having (almost) the same issue/question as khadert in this topic: http://www.mrexcel.com/forum/excel-questions/452723-sumproduct-circular-reference-help.html

Let me explain:

I want to SUM a column (column C) depending on two text criteria.
First criteria is in column A, and second criteria is in column B.
The formula HAS to be in the same column as the SUM range (column C), thus I need to exclude the rows of the criterias in the sum range column (C).

I know to use SUMIFS, but using this returns 0 as it makes a circular reference to the cell in which the SUMIFS formula is (C1 and C5).

Would be nice if the SUMIFS-formula could find the criteria cells with OFFSET, finding the criterias one and two rows left of the formula cell. I need this as I'm filtering the complete list, thus having 'simple' cell references would mess up the SUMIFS-results.

[TABLE="width: 900"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name1[/TD]
[TD]Total[/TD]
[TD]FORMULA WHICH SUMIFS C:C with criterias in A1 ("Name1") and excludes all rows with the criteria of "Total"
Should be = 3 (SUM of C2:C4)[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Name1[/TD]
[TD]Sub1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Name1[/TD]
[TD]Sub2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Name1[/TD]
[TD]Sub3[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Name2[/TD]
[TD]Total[/TD]
[TD]FORMULA WHICH SUMIFS C:C with criterias in A5 ("Name2") and excludes all rows with the criteria of "Total"
Should be = 6 (SUM of C6:C8)[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Name2[/TD]
[TD]Sub1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Name2[/TD]
[TD]Sub2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Name2[/TD]
[TD]Sub3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Etc...[/TD]
[TD]Etc...[/TD]
[TD]Etc...[/TD]
[/TR]
</tbody>[/TABLE]


I hope that I have been clear about my issue, else please let me know.

THANK YOU!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi, did you explore the subtotal option on the data tab? This might give you exactly the result you are looking for.
 
Upvote 0
This works for me in C2:
Code:
=SUMIFS(C:C,A:A,A2,B:B,"<>Total")
No circular reference whatsoever.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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