+ Reply to Thread
Results 1 to 15 of 15

Sumif formula multiple sheets

  1. #1
    Registered User
    Join Date
    08-05-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    5

    Sumif formula multiple sheets

    Hi
    Hope someone can help me.
    I want to search through multiple sheets to find a value that is associated with that search item and add them all up.
    Example:
    As attached, I have multiple tabs, each one corresponding to a customer, inside that tab is the material used for that specific customer. What i want to do is for each line in the Purchased tab, i want to search each customer for that specific line and add up all the numbers in the QTY column that relates to that item, and have a final figure in the used column in the PURCHASED tab.
    Not sure i am explaining this very well.



    TEST.xlsx
    Last edited by AzzKikA; 08-07-2015 at 12:13 AM. Reason: Changed title, marked as solved.

  2. #2
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Adding Formula

    Hello,
    Please check attached sheet... Lets tackle step by step.. first let us know Do you want to take a total of col. c of all sheets with criteria??
    Attached Files Attached Files
    Don`t care, take care...

    Regards,
    Mangesh

  3. #3
    Registered User
    Join Date
    08-05-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    5

    Re: Adding Formula

    Hi Mangesh
    Please delete all the numbers in col d in the purchased tab, sorry i forgot to do it.

    So i want to have a total across all sheets in that column, so effectively i want excel to take that part# ie. TPS2CE7050, and find it in each tab, then look at column A in that tab and add them altogether to get a final USED amount, so for the first part number it will find it twice in tab A and the QTY (col A) is 140 (A4 - 60, A27 - 80)
    Then in tab B it appears 3 times (B54, B69, B91) for a total of 215 plus the 140 from TAB A, running total of 355 and so on untill all tabs are checked, does that make it clearer?

    So i guess that equates to i want to take a total of col. A with criteria and the criteria is col. B
    Last edited by AzzKikA; 08-06-2015 at 12:40 AM.

  4. #4
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Adding Formula

    Actually what you want is in attached sheet but problem with your sheet is you want to take a total of left side col...
    Is it possible to shift col A to the right side in all sheet??
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-05-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    5

    Re: Adding Formula

    So that cannot be done then?
    As you can see it is a vast sheet, it would be very inconvenient to change the location of the col, if i can avoid it i would prefer not to move it.
    Last edited by AzzKikA; 08-06-2015 at 01:10 AM.

  6. #6
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Adding Formula

    not impossible but hard..

  7. #7
    Registered User
    Join Date
    08-05-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    5

    Re: Adding Formula

    So the formula you used, can you explain it please?

  8. #8
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Adding Formula

    It is combination of three formulae.. Sumproduct formula is generally used to take sum of products of specified ranges but there is only single array so it took only summation.. You know the sumif formula.. Indirect function is used to specify indirect reference for different sheets i.e. you can specify sheet names by giving Range in same sheet..
    Last edited by mangesh.mehendale; 08-06-2015 at 02:46 AM.

  9. #9
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Adding Formula

    Finally Done What you want... Please check some items randomly coz this is first array formula have created in my life...

    Also don`t copy this formula through out the cells just drag the formula from cell.. If you don`t know how to drag then revert...

    Please note that the name given to this thread is not proper as per forum rule no. 1 change it to "Sumif formula to left columns accross multiple sheet" so that other people get benefit..

    This is array formula.. required Ctrl+Shift+Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mangesh.mehendale; 08-06-2015 at 05:23 AM. Reason: formula in post

  10. #10
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Adding Formula

    Using SUMIF would be more efficient than SUMPRODUCT.

    regular formula:

    =SUMIF(INDIRECT("'"&C$3&"'!$C$2:$C$5000"),$A4,INDIRECT("'"&C$3&"'!$A$2:$A$5000"))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding Formula

    Quote Originally Posted by AlKey View Post
    =SUMIF(INDIRECT("'"&C$3&"'!$C$2:$C$5000"),$A4,INDIRECT("'"&C$3&"'!$A$2:$A$5000"))
    Quoted range references will automatically be evaluated as absolute references so there's no need to include the dollar signs.

    =SUMIF(INDIRECT("'"&C$3&"'!C2:C5000"),$A4,INDIRECT("'"&C$3&"'!A2:A5000"))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  12. #12
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Adding Formula

    Quote Originally Posted by Tony Valko View Post
    Quoted range references will automatically be evaluated as absolute references so there's no need to include the dollar signs.

    =SUMIF(INDIRECT("'"&C$3&"'!C2:C5000"),$A4,INDIRECT("'"&C$3&"'!A2:A5000"))
    I know. I just copied the range from the sumproduct formula and put into SUMIF.

  13. #13
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Adding Formula

    Agree .... Actually I was trying to create a formula which will work across multiple sheets but it is working only with single sheet otherwise showing #VALUE! error so I have just paste this here... Here is attached sheet if anybody could solve this.. marked it yellow..
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    08-05-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    5

    Re: Adding Formula

    Thanks Heaps guys, after a little fiddling round it works great!

  15. #15
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Sumif formula multiple sheets

    Thanks for reputation point

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Adding a date formula to an existing formula
    By amasson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-18-2014, 04:20 PM
  2. [SOLVED] Formula for adding a percentage from one cell and adding the total of 2 others
    By Kandra in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2013, 06:48 AM
  3. adding Indirect formula to my current sum if array formula
    By Eastbay2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-13-2013, 09:41 AM
  4. Replies: 1
    Last Post: 02-24-2013, 06:27 PM
  5. [SOLVED] Adding a match formula to an existing formula
    By pauldaddyadams in forum Excel General
    Replies: 8
    Last Post: 08-16-2012, 05:14 PM
  6. Replies: 8
    Last Post: 03-21-2012, 12:04 PM
  7. Replies: 7
    Last Post: 03-22-2006, 12:10 PM
  8. Adding another formula to and Exsiting Formula
    By craigwojo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-16-2005, 02:20 PM

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