Page 1
Page 1
Started By
Message

Is there an Excel formula to get the subtotals from one sheet onto another sheet?

Posted on 10/3/17 at 8:42 am
Posted by Paige
Vice President of the OT
Member since Oct 2010
84748 posts
Posted on 10/3/17 at 8:42 am
I've subtotaled hours of classes taken by social security number on one sheet

then on a different report, I'm manually entering the hours each person took

what kind of formula could I use to grab the subtotals?

TIA
Posted by CubsFanBudMan
Member since Jul 2008
5070 posts
Posted on 10/3/17 at 9:18 am to
You can probably either use vlookup or sumif. I would go with sumif.
Posted by Paige
Vice President of the OT
Member since Oct 2010
84748 posts
Posted on 10/3/17 at 9:50 am to
I tried v lookup but it just grabbed one of the classes instead of the subtotal

Not sure on sum if
Posted by Mahootney
Lovin' My German Footprint
Member since Sep 2008
11875 posts
Posted on 10/3/17 at 10:11 am to
It's quite easy.
Have both sheets open,
Create a =sum() formula in a cell in the sheet you want to pull the data FROM,
Go to the sheet that you want that subtotal to be shown,
Choose a cell and put your cursor in that cell,
Press the "=" button to start a cell reference,
Then go to the other sheet that has the subtotal that you want,
Click on the subtotal cell,
Press enter.

Similarly, you can create any type of formula to sum, or sumif, or sumifs in the sheet you want to pull data FROM and just reference it in the sheet you want to pull the data TO.
Or you can just create those formulas in the sheet you want to pull the data TO.

Excel will just make a sheet reference and pull the data across sheets or files. It's not tough.
Posted by CubsFanBudMan
Member since Jul 2008
5070 posts
Posted on 10/3/17 at 11:22 am to
quote:

I tried v lookup but it just grabbed one of the classes instead of the subtotal

Not sure on sum if


The vlookup has to match what the subtotal line is titled. If you used the auto-subtotal function (Found in the outline section of the data tab), then your vlookup will need to look for the social security number followed by the word Total - "111-22-3333 Total". If you manually typed in the subtotal formula, then use whatever you labeled that line.

The sumif function will help you when adding data to the main sheet.

=sumif(range,criteria, [sum_range])
Range: The column where the SSNs are
Criteria: The individual SSN that you want to get the subtotal of
Sum_Range: The column where the amounts to be subtotaled are.
Posted by Paige
Vice President of the OT
Member since Oct 2010
84748 posts
Posted on 10/3/17 at 11:42 am to
Y’all were right!

Sumif worked. I’ve never used it
Posted by seawolf06
NH
Member since Oct 2007
8159 posts
Posted on 10/4/17 at 3:22 pm to
If you have multiple criteria, sumifs is the next option available. Great formulas, but pivot tables can usually provide the same output in a simpler fashion.
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram