Use reference cells in the formula to create subtotal

Burrelli

New Member
Joined
Feb 24, 2023
Messages
7
Office Version
  1. 365
Platform
  1. MacOS
This is the formula I have in cell H5
=SUMIF('GSC Data 16mo'!C:C, ">=10000", 'GSC Data 16mo'!B:B) - I need the literal to be replace be the subtotal of a filtered cell

C:C are Impressions and B:B are Clicks

What I need to have calculated in cell H5 is the total/sum of the Impressions Column C:C where the filter on B:B (Clicks Column) are greater than say 500 from a control/user input cell S5. So, return the total Impressions when the Total Clicks column is filtered by "x".

In my head...
=SUMIF('GSC Data 16mo'!C:C, [where 'GSC Data 16mo'!B:B, ">"&S5) ]

also need similar a SUMIFS version:

=SUMIFS('GSC Data 16mo'!C:C, 'GSC Data 16mo'!C:C, [where 'GSC Data 16mo'!B:B, ">"&S6) ], 'GSC Data 16mo'!C:C, [where 'GSC Data 16mo'!B:B, "<"&T6) ]

excel.png
 
i'm happy you found a solution. Best wishes.
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,215,059
Messages
6,122,913
Members
449,093
Latest member
dbomb1414

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