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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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