+ Reply to Thread
Results 1 to 10 of 10

summing an index(match,match) over multiple spreadsheets

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2010
    Posts
    5

    summing an index(match,match) over multiple spreadsheets

    Hello! First time user and poster. I've searched and seen several "indirect" functions but I still can't get a formula that accomplishes my goal.

    This formula works for pulling info off one worksheet:
    =INDEX(sheet!$1:$1048576,MATCH($A4,sheet!$A:$A,0),MATCH(C$2,sheet!$3:$3,0))

    Now, I am trying to make this same formula a "sum" function over a range of worksheets (without having to simply add the same string above with each sheets name). The spreadsheets have to be index/matched because my two match criteria, month and account, are in different cell references across spreadsheets.

    Any help would be appreciated!

    Thanks,
    Andy

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: summing an index(match,match) over multiple spreadsheets

    Put all the tabs next to each other that you want to SUM() and replace sheet1! in your formulas to be sheet1:Sheet3!. the tabs must be next to eachother to work.

    * Disregard this. I knee-jerk responded and need to tweak.
    Last edited by Craig K.; 05-31-2013 at 11:38 AM. Reason: I'm an idiot
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  3. #3
    Registered User
    Join Date
    05-31-2013
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: summing an index(match,match) over multiple spreadsheets

    =INDEX(abq:abq2!$1:$1048576,MATCH($A4,abq:abq2!$A:$A,0),MATCH(C$2,abq:abq2!$3:$3,0)) returns a "#value". If I do:
    =INDEX(ABQ!$1:$1048576,MATCH($A4,ABQ!$A:$A,0),MATCH(C$2,ABQ!$3:$3,0))+INDEX('ABQ2'!$1:$1048576,MATCH($A4,'ABQ2'!$A:$A,0),MATCH(C$2,'ABQ2'!$3:$3,0)) I get a valid result. The spreadsheets are right next to each other.

    Thanks for the quick response.

  4. #4
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: summing an index(match,match) over multiple spreadsheets

    I thought you were trying to avoid that?

  5. #5
    Registered User
    Join Date
    05-31-2013
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: summing an index(match,match) over multiple spreadsheets

    I am trying to avoid the second scenario because I'd like to be able to create worksheets and pull them in the worksheet range and have them roll into the consolidating worksheet. I just added the "longhand" version above to make sure I could get the right answer and show what I'm hoping to accomplish with a single formula. Over time, the workbook will have 30 worksheets that I'd like to consolidate.

    Does that make sense?

  6. #6
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: summing an index(match,match) over multiple spreadsheets

    If your index table is always going to be the same size with the same column and row titles, why not just sort them? That way you can just put an equation like =SUM(ABQ:ABQ2!A1) in your summary tab.

  7. #7
    Registered User
    Join Date
    05-31-2013
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: summing an index(match,match) over multiple spreadsheets

    Because all the worksheets have different references:

    ie: in abq, the index/match combination may be cell d47. in abq2, the index/match combination may be cell e52.

    All the worksheets have difference date ranges and different accounts as the worksheets represent different site budgets with different service offerings. I don't want to change every worksheet when I need to make a change to one.

  8. #8
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: summing an index(match,match) over multiple spreadsheets

    Could you please upload a sample spreadsheet with the sensitive information taken out.

  9. #9
    Registered User
    Join Date
    05-31-2013
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: summing an index(match,match) over multiple spreadsheets

    Thanks for sticking with me. see cell c6 on Summary tab. I am trying to be able to create a formula that works for anything between the start and end worksheets and exclude anything outside that worksheet range.
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: summing an index(match,match) over multiple spreadsheets

    Since you're looking to fill in the table on your summary tab, I'm out of my depth in helping you to figure that out.
    If you just need a quick reference cell to see the total for an account on a given day check out the green cells in the attached spreadsheet.

    example(ck).xlsx

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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