+ Reply to Thread
Results 1 to 9 of 9

Sumif from multiple sheets

  1. #1
    Registered User
    Join Date
    02-09-2009
    Location
    Washington, US
    MS-Off Ver
    Excel 2003
    Posts
    73

    Sumif from multiple sheets

    I am trying to sumif on a Totals Sheet in this workbook.

    The problem I am having is that I am trying to calculate 4 different sheets to get to the total number.

    Before the sheet was combined with all the reps on 1 sheet but it was much easier to sort and see by creating individual sheets.

    I have attached the workbook with a couple of comments.

    thanks for any help,

    JJ
    Attached Files Attached Files
    Last edited by h_aesa1; 07-21-2010 at 12:31 AM.

  2. #2
    Registered User
    Join Date
    07-15-2010
    Location
    Daegu, Korea
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Sumif from multiple sheets

    A4 : Sold -> Open
    B4 : =SUM(SUMIF(INDIRECT("'"&{"Rep 1";"Rep 2";"Rep 3";"Rep 4"}&"'!F2:F65536"),A4,INDIRECT("'"&{"Rep 1";"Rep 2";"Rep 3";"Rep 4"}&"'!E2:E65536")))
    with [Ctrl + Shift + Enter]

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Sumif from multiple sheets

    Try this

    In Sheet "Totals"
    1/. Create a validation list in A3 with all the sheet names (Rep 1, Rep 2, etc..........)

    2/. In B4
    Please Login or Register  to view this content.

    3/. In B5
    Please Login or Register  to view this content.

    Hope this is what you are after
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Sumif from multiple sheets

    I might have misread your question. I read your comments on the worksheet and didn't look at your post again

    However this might be of interest

    I hope it helps
    Attached Files Attached Files

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Sumif from multiple sheets

    Or maybe just create named ranges

    Rep1_OC, Rep2_OC,Rep3_OC, Rep4_OC
    Rep1SQC, Rep2SQC,Rep3SQC, Rep4SQC

    then

    A4 ="Open"
    A5 ="Cancelled"
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    Hope this helps

  6. #6
    Registered User
    Join Date
    02-09-2009
    Location
    Washington, US
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Sumif from multiple sheets

    thank you fellas... looked at both solutions and both work awesome. For right now, because I already have it designed, i will use Rethguals but will make use of Marcol's solution so I can break it out by rep when i get some time....

    ....1 question

    how would i write a formula (using Rethguals logic or formula) to do a countif instead of sumif

    example.... count number of times that the word open occurs or cancelled occurs??

    thanks

    JJ

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Sumif from multiple sheets

    This should be enough

    A4 ="Open"
    A5 ="Cancelled"

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    I have added rethguals formulae and the above to the attached workbook
    and deleted some lines so the individual reps totals differ


    Hope this helps
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-09-2009
    Location
    Washington, US
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Sumif from multiple sheets

    works great...thanks for the help!!

    JJ

  9. #9
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Sumif from multiple sheets

    In response to your PM
    Hi Marcol,

    I didn't know if I should create a new post....

    I actually decided to use your method, more informational...

    How do I use your method and do the countif instead of sumif, if you don't mind helping me.

    thanks and appreciate your time and help

    JJ
    I have updated this attachment.
    This workbook does both countif and sumif conditions and for your conveniance includes rethguals' array formulae.

    Hope this helps
    Attached Files Attached Files

+ 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