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
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Can you post your worksheets data ranges as a mini workbook using the xl2bb add in (link below). your text is very small, and the forum users can also work with your actual data instead of trying to recreate it.
 
Upvote 0
Can you post your worksheets data ranges as a mini workbook using the xl2bb add in (link below). your text is very small, and the forum users can also work with your actual data instead of trying to recreate it.
Traffic Trajectory Calculator Master.xlsx
ABCDEFGHIJKLMNOPQRST
1
2
3YoY Compare
4CriteriaURL GroupURL CountURLS GainingURLS DecliningURLS No Data Last YearAggr 16mo Impr VolumeAggr 16mo Click Vol% Index Size% Click Contribution% Impression ContributionLevel> Value< Value
5500+ ClicksPerformance924111334,602.00270,5099.2073.4012.27Performanc500
6100 - 501 ClicksGood302383421,754,220.0060,83130.2016.5164.33Good100501
710 - 101 ClicksFair606284208294629,402.0037,17860.6010.0923.08Fair10101
80 - 11 ClicksWeak0736818,657.0000.000.000.32Weak011
90 Click > 100 ImpressionsOpportunity000.000.000.00
100 Click, < 100 ImpressionsDead00.0000.000.000.00
Summary YoY
Cell Formulas
RangeFormula
E5E5=COUNTIFS('L3M YoY'!B:B,">"&S5,'L3M YoY'!M:M,"*UPWARDS*")
F5F5=COUNTIFS('L3M YoY'!B:B,">="&S5,'L3M YoY'!M:M,"*DOWNWARDS*")
G5G5=COUNTIFS('L3M YoY'!B:B,">="&S5,'L3M YoY'!M:M,"")
H5H5=SUMIF('GSC Data 16mo'!C:C, ">=10000", 'GSC Data 16mo'!B:B)
E6:E8E6=COUNTIFS('L3M YoY'!B:B,">"&S6, 'L3M YoY'!B:B,"<"&T6, 'L3M YoY'!M:M,"*UPWARDS*")
F6:F8F6=COUNTIFS('L3M YoY'!B:B,">"&S6, 'L3M YoY'!B:B,"<"&T6, 'L3M YoY'!M:M,"*DOWNWARDS*")
G6:G8G6=COUNTIFS('L3M YoY'!B:B,">"&S6,'L3M YoY'!B:B,"<"&T6,'L3M YoY'!M:M,"")
H6H6=SUMIFS('GSC Data 16mo'!C:C, 'GSC Data 16mo'!C:C, ">=5001", 'GSC Data 16mo'!C:C, "<=10000")
H7H7=SUMIFS('GSC Data 16mo'!C:C, 'GSC Data 16mo'!C:C, ">=1001", 'GSC Data 16mo'!C:C, "<=5000")
H8H8=SUMIFS('GSC Data 16mo'!C:C, 'GSC Data 16mo'!C:C, ">=101", 'GSC Data 16mo'!C:C, "<=1000")
I5I5=SUMIF('GSC Data 16mo'!B:B, ">"&S5, 'GSC Data 16mo'!B:B)
J5:J10J5=D5/$C$17*100
K5:K10K5=I5/$C$18*100
L5:L10L5=H5/$C$19*100
I6:I8I6=SUMIFS('GSC Data 16mo'!B:B, 'GSC Data 16mo'!B:B, ">"&S6, 'GSC Data 16mo'!B:B, "<"&T6)
I9:I10I9=SUMIF('GSC Data 16mo'!B:B, "=0", 'GSC Data 16mo'!B:B)
B5B5=CONCAT(S5, "+ Clicks")
B6:B8B6=CONCATENATE(S6," - ",T6, " Clicks")
D5D5=COUNTIF('GSC Data 16mo'!B:B, ">"&S5)
D6:D8D6=COUNTIFS('GSC Data 16mo'!B:B, ">"&S6, 'GSC Data 16mo'!B:B, "<"&T6)
D9D9=COUNTIFS('GSC Data 16mo'!B:B, "<1", 'GSC Data 16mo'!C:C, ">100")
D10D10=COUNTIFS('GSC Data 16mo'!B:B, "<1", 'GSC Data 16mo'!C:C, "<100")
H10H10=SUMIF('GSC Data 16mo'!C:C, "<=100", 'GSC Data 16mo'!B:B)
 
Upvote 0
Thanks for the mini. It helps! Welcome to the forum!

YOu have a lot of formulas referencing other sheets. but it is the formulas and your row/column infor i like to see. Sometimes the accurate data helps. but this is a start. If you want to post the infor from the other worksheets, it may help even more.
 
Upvote 0
Traffic Trajectory Calculator Master.xlsx
ABCDE
1Top pagesClicksImpressionsCTRPosition
2Shop Statues - Sculptures - Garden & Home Decor - Design Toscano10731214214417.55%20.37
3Shop Our Garden Statues - Design Toscano1072610376951.03%10.67
4Garden Statues & Décor On Sale - Design Toscano1004610396360.97%10.84
5Garden Gnomes - Yard Gnomes & Statues - Design Toscano650320751510.31%9.8
6Gnomes - Garden Gnomes & Statues - Yard Gnomes - Design Toscano634124993480.25%9.56
7Dinosaur Statues - T-Rex & Raptors - Design Toscano59452644662.25%9.49
8Medieval & Gothic Furniture - Design Toscano41282134891.93%10.41
9https://www.designtoscano.com/categories/gargoyle-statues40268063780.50%10.77
10https://www.designtoscano.com/categories/asian-zen-garden-statues38203577581.07%13.46
11https://www.designtoscano.com/categories/egyptian37992466781.54%10.24
12https://www.designtoscano.com/categories/large-outdoor-christmas-decoration37344758870.78%31.46
13https://www.designtoscano.com/catalog_forms/new/37137108990.52%7.32
14https://www.designtoscano.com/categories/nude-statues-sculptures35901450282.48%7.15
15https://www.designtoscano.com/categories/animal-statues35584307140.83%9.56
16https://www.designtoscano.com/categories/grand-scale-animal-statues33931582582.14%11.23
17https://www.designtoscano.com/categories/home-decor30306662850.45%3.3
18https://www.designtoscano.com/categories/bear-garden-statues29162222861.31%9.08
19https://www.designtoscano.com/categories/furniture28375608420.51%8.84
20https://www.designtoscano.com/categories/sale27877040520.40%3.25
21https://www.designtoscano.com/categories/angel-cherub-statues27534558980.60%9.34
22https://www.designtoscano.com/categories/garden-fountains24257164110.34%25.73
23https://www.designtoscano.com/categories/greek-roman-statues23852407780.99%18.33
24https://www.designtoscano.com/categories/decorative-walking-sticks23752873430.83%17.65
25https://www.designtoscano.com/categories/gargoyle-dragon-statues22411474191.52%10.78
26https://www.designtoscano.com/categories/egyptian-furniture2131748042.85%12.9
27https://www.designtoscano.com/categories/fairy-outdoor-statues20582155270.95%11.75
28https://www.designtoscano.com/categories/stained-glass-windows19675604220.35%21.37
29https://www.designtoscano.com/products/life-size-cigar-store-indian-statue-1-ne18005519041551901.23%7.15
30https://www.designtoscano.com/categories/bronze-statues-for-the-garden17852017170.88%20.11
GSC Data 16mo
 
Upvote 0
I think this is the worksheet I need to work with. If I get a formula from this you can move it to the report worksheet. Is that right?
But, to summarize your requirement:
you want get a a total of the cells in Column C only where the adjacent cell in B is between the values in S and T on the report sheet?
 
Upvote 0
Okay, Here is a stab at it:

I had to change some click values to get impression counts:
Book1
BCDEFGHIJ
1ClicksImpressionsCTRPositionClick Ranges:Impressions
210731214214410.075520.37Performanc50012,549,111
31072610376950.010310.67Good1005013,625,360
41004610396360.009710.84Fair10101715,612
5650320751510.00319.8Weak011201,717
6634124993480.00259.56
759452644660.02259.49
841282134890.019310.41
940268063780.00510.77
1038203577580.010713.46
1137992466780.015410.24
1237344758870.007831.46
1337137108990.00527.32
1435901450280.02487.15
1535584307140.00839.56
1633931582580.021411.23
1730306662850.00453.3
182152222860.01319.08
193585608420.00518.84
202587040520.0043.25
212154558980.0069.34
222807164110.003425.73
233392407780.009918.33
242162873430.008317.65
254401474190.015210.78
26219748040.028512.9
273512155270.009511.75
28905604220.003521.37
29501551900.01237.15
3052017170.008820.11
31
GSC Data 16mo
Cell Formulas
RangeFormula
J2J2=SUM((--($B$2:$B$30>$H$2))*($C$2:$C$30))
J3:J5J3=SUM((--($B$2:$B$30>$H3))*(--($B$2:$B$30)<$I3)*($C$2:$C$30))
 
Upvote 0
Okay, Here is a stab at it:

I had to change some click values to get impression counts:
Book1
BCDEFGHIJ
1ClicksImpressionsCTRPositionClick Ranges:Impressions
210731214214410.075520.37Performanc50012,549,111
31072610376950.010310.67Good1005013,625,360
41004610396360.009710.84Fair10101715,612
5650320751510.00319.8Weak011201,717
6634124993480.00259.56
759452644660.02259.49
841282134890.019310.41
940268063780.00510.77
1038203577580.010713.46
1137992466780.015410.24
1237344758870.007831.46
1337137108990.00527.32
1435901450280.02487.15
1535584307140.00839.56
1633931582580.021411.23
1730306662850.00453.3
182152222860.01319.08
193585608420.00518.84
202587040520.0043.25
212154558980.0069.34
222807164110.003425.73
233392407780.009918.33
242162873430.008317.65
254401474190.015210.78
26219748040.028512.9
273512155270.009511.75
28905604220.003521.37
29501551900.01237.15
3052017170.008820.11
31
GSC Data 16mo
Cell Formulas
RangeFormula
J2J2=SUM((--($B$2:$B$30>$H$2))*($C$2:$C$30))
J3:J5J3=SUM((--($B$2:$B$30>$H3))*(--($B$2:$B$30)<$I3)*($C$2:$C$30))

you may need to update the >,< signs (add = to one or both) to make the comparisons work correctly.
 
Upvote 0
Thank you for your help. I believe I got what I am looking for with:
=SUMIFS('GSC Data 16mo'!C:C,'GSC Data 16mo'!B:B,">"&S6,'GSC Data 16mo'!B:B,"<"&T6)
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,851
Members
449,194
Latest member
HellScout

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