Subtotal and Sumif problem.

Tipler93

New Member
Joined
Jan 17, 2014
Messages
1
Hey Everyone,

I have an Excel document with two sheets(tabs).

One is called "AnalyseData" and the other is called "New Table".

I want to get the total of values in column K in "AnalyseData" WHEN:

Column F in AnalyseData = Cell D12 in New Table
Column D in AnalyseData = Cell B2 in New Table
Column D in AnalyseData = Cell B3 in New Table

This is my current formula:

=SUMIFS(AnalyseData!$K:$K,AnalyseData!$F:$F,'New Table'!$D$12,AnalyseData!$D:$D,'New Table'!$B$2,AnalyseData!$D:$D,'New Table'!$B$3)


Now I want to be able to filter the raw data in AnalyseData and make it so the formula only sums up the visible cells in column K. I have tried to use Subtotal and Sumproduct but I always seem to get an error.


Any help would be appreciated.

Kind Regards,

Tipler93
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hey Everyone,

I have an Excel document with two sheets(tabs).

One is called "AnalyseData" and the other is called "New Table".

I want to get the total of values in column K in "AnalyseData" WHEN:

Column F in AnalyseData = Cell D12 in New Table
Column D in AnalyseData = Cell B2 in New Table
Column D in AnalyseData = Cell B3 in New Table

This is my current formula:

=SUMIFS(AnalyseData!$K:$K,AnalyseData!$F:$F,'New Table'!$D$12,AnalyseData!$D:$D,'New Table'!$B$2,AnalyseData!$D:$D,'New Table'!$B$3)


Now I want to be able to filter the raw data in AnalyseData and make it so the formula only sums up the visible cells in column K. I have tried to use Subtotal and Sumproduct but I always seem to get an error.


Any help would be appreciated.

Kind Regards,

Tipler93

Try...
Rich (BB code):
=SUMPRODUCT(
    AnalyseData!$K$2:$K$200,
    --(AnalyseData!$F$2:$F$200='New  Table'!$D$12),
    --ISNUMBER(MATCH(AnalyseData!$D$2:$D$200,'New Table'!$B$2:$B$3,0)))
 
Upvote 0

Forum statistics

Threads
1,216,134
Messages
6,129,070
Members
449,485
Latest member
greggy

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