Formula to calculate multiple instances (count) and also grand total of totals (sum)

GodzFire

New Member
Joined
Apr 30, 2018
Messages
20
We have a spreadsheet of all the songs used by the show NFL Primetime (NFL Primetime Song Info Listings & by Games/Weeks/Years Used), tab 2 is Songs by Games/Weeks/Years Used, which has the songs used each year as well as the total times they were used during the season.

I'd like to know if it's possible to create a formula or something to:
- Get the count of how many seasons a song was used for all the seasons, column C (eg, song was used for 6 years, it would count each of it's instances)
- Get the full total of all the times the song was used across the whole TV series, column D (eg, using that same song, adding up the TOTs for each year used for a grand total)

I'm sure this is possible, but have no idea how to implement either. It would also be good to have something that 'validation' tested, like [if C2="SONGNAME" then count C2] or [if C2="SONGNAME" then add D2 total], I know those aren't formulas, just trying to explain what I mean, so if rows are added or edited, it won't screw up everything else.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
where did you want the result
I have put in
Songs by GamesWeeksYears Used
Column AB & AC

Column AB - count of instances in C
=COUNTIF(C:C,C3) and copied down

Column AB - Sum of instances in D
=SUMIF(C:C,C3,D:D)

hopefully i have understood correctly

 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,387
Members
448,956
Latest member
JPav

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