+ Reply to Thread
Results 1 to 8 of 8

SUMIF & INDIRECT Help

  1. #1
    Registered User
    Join Date
    08-19-2013
    Location
    Lawrenceville, GA
    MS-Off Ver
    Excel 2010
    Posts
    8

    SUMIF & INDIRECT Help

    So I am attempting to sum data across multiple sheets. The idea is that if the customers name appears in column A on any of the sheets, then it will return a sum of the the numbers in column C. In effort to achieve this I entered the following into a cell:

    =SUMIF(INDIRECT("'"&A331:A340&"'!A312:A450"),A2,INDIRECT("'"&A331:A340&"'!C312:C450"))

    This gets me: #value. Any suggestions?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: SUMIF & INDIRECT Help

    Hi and welcome to the forum

    summing across sheets based on a specific criteria can be tricky. Try a slightly different approach using a helper cell in the same place on each sheet Then, if you will have more than 1 entry for the criteria, use sumif() based on the name in the master sheet. If there will only be 1 entry, use vlookup

    Then on the master sheet, use a simple =SUM(Sheet2:Sheet10!A10)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-19-2013
    Location
    Lawrenceville, GA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: SUMIF & INDIRECT Help

    Thank you so much for a prompt response! There will be multiple entries for each customer so sumif is definitely the way to go. But, I am not sure what a helper cell is. Can you enlighten me?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: SUMIF & INDIRECT Help

    Wrap a SUMPRODUCT around it.


    =SUMPRODUCT(SUMIF(INDIRECT("'"&A331:A340&"'!A312:A450"),A2,INDIRECT("'"&A331:A340&"'!C312:C450")))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    08-19-2013
    Location
    Lawrenceville, GA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: SUMIF & INDIRECT Help

    Actually, I got it. Thanks again!

  6. #6
    Registered User
    Join Date
    08-19-2013
    Location
    Lawrenceville, GA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: SUMIF & INDIRECT Help

    Unfortunately, the sumproduct did not work. There has to be some issue with my indirect formulas because even when I type them into a cell alone, it shows #value. But nothing looks wrong with it so I just did what fdibbins suggested and created helper cells on each sheet for each customer and then on the master sheet I was able to sum the specific helper cells from each sheet. Not as pretty as I'd hoped, but it works perfectly and that's all I need. Thank you both for your suggestions!

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: SUMIF & INDIRECT Help

    Thanks NBVC

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: SUMIF & INDIRECT Help

    Another approach.

    Put all data on one sheet (e.g. with VBA).

    After that a pivot table can do the analize of the data.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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. Replies: 0
    Last Post: 08-17-2012, 02:02 PM
  2. INDIRECT with two conditions in SUMIF
    By JXH in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-01-2011, 12:57 AM
  3. SUMIF with INDIRECT
    By Big_Tater in forum Excel General
    Replies: 5
    Last Post: 03-30-2010, 11:32 AM
  4. SUMIF() with INDIRECT()
    By lakeshore427 in forum Excel General
    Replies: 1
    Last Post: 10-28-2009, 10:56 AM
  5. SUMIF INDIRECT
    By Alectrical in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-28-2005, 10:10 AM

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