Subtotal / turning rows on/off

jsmith70

New Member
Joined
Jul 7, 2019
Messages
12
Office Version
  1. 365
Platform
  1. Windows
i have a list of names / salaries that extend multiple years (columns). i would like to add a function that i can turn on/off cells representing salary to see the total at the bottom with/without certain salaries.

i want to be able to toggle name 2 on and off to see how the totals change in 2019 / 2020

for example

name / 2019 salary / 2020 salary

name 1 / 150000 / 175000
name 2 / 95000 / 125000
name 3 / 125000 / 150000

... / 2019 total / 2020 total
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
You can use =SUBTOTAL(109, range) and then hide rows to omit them.
 
Upvote 0
thank you - is there a simpler way instead of right clicking and hiding the road, then unhiding, then hiding etc.. ? like a toggle
 
Upvote 0
The are many ways it could be done. You could insert a column and put an X next to the names you want to include (or exclude).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,193
Members
452,616
Latest member
intern444

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