+ Reply to Thread
Results 1 to 8 of 8

addition using multiple worksheets

  1. #1
    Registered User
    Join Date
    06-12-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    6

    addition using multiple worksheets

    Hi folks, my first post here so don't knock me to much if I'm in the wrong place.
    My problem is this
    I need to know how to do some addition using multiple worksheets.This is my example.

    sheet1 in cells B2 to G2 I have a number
    in worksheet2 I am using cells B5 to G5 in each cell I have another number
    How do I create a formula to add all these up.

    If the different worksheets were using the same cells I can do it but because they are using different cell I can't.I am using ver 2003.
    Thanks for any answers.
    Nige.
    Attached Files Attached Files
    Last edited by masternige; 06-17-2010 at 11:55 AM.

  2. #2
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    155

    Re: addition using multiple worksheets

    It actually works the same way as if they were the same and once in one cell the formula can be dragged across the columns.

    See attached solution for the 3 shops...

    opsman
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-12-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: addition using multiple worksheets

    Hi thanks for the fast response.
    when you say it can be dragged across that seems to me to just expand the box which will include cells I do not want included in the formula. I downloaded your excel sheet and I can see you have included a totals sheet but I dont see any other change there.
    Regards Nige.

  4. #4
    Registered User
    Join Date
    06-12-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: addition using multiple worksheets

    To be specific what I should of said is I want to add up all the mars sales for the 3 shops.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: addition using multiple worksheets

    On the TOTALS page, cell B2, enter this:

    =SUM(SUMIF(INDIRECT("Shop"&{1,2,3}&"!A1:A50"),"="&$A2,INDIRECT("Shop"&{1,2,3}&"!B1:B50")))
    ...and copy down that column.

    In C2, you'll need to edit slightly as shown, then copy down column C:
    =SUM(SUMIF(INDIRECT("Shop"&{1,2,3}&"!A1:A50"),"="&$A2,INDIRECT("Shop"&{1,2,3}&"!C1:C50")))

    Continue adjusting for each column and copy down.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    155

    Re: addition using multiple worksheets

    By drag, what I meant was having put the formula in the top left cell, hovering your cursor over the bottom right corner of that cell you will see the pointer icon turning into a cross - left click and drag across the columns. This will transfer the formula across into the adjacent column (correctly).

    You can then add the relevant formula into the first column of row 2,3,4 etc and repeat the process...

    p.s. In tha example worksheet I had already dragged the formula across for you, maybe that's what was confusing you?
    Last edited by opsman; 06-12-2010 at 06:03 PM.

  7. #7
    Registered User
    Join Date
    06-12-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: addition using multiple worksheets

    I just wanted to say thanks a million for everybody's help.I can not thank you all enough

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: addition using multiple worksheets

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1