+ Reply to Thread
Results 1 to 1 of 1

Thread: SUMIF & MATCH Functions on Seperate Sheets

  1. #1
    Registered User
    Join Date
    09-27-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2003
    Posts
    2

    SUMIF & MATCH Functions on Seperate Sheets

    Hello!

    I am trying to find a formula that will allow me to perform a SUMIF function were the values to be summed are on another tab. That challenge is I have to use a MATCH function to locate the correct row without having to manual change the sum range each time I use the formula.

    This is the formula I am using:
    =SUMIF(A1:C1,G1,INDIRECT(ADDRESS(MATCH(F1,Sheet2!A:A,0),2,,,"Sheet2")&":"&ADDRESS(MATCH(F1,Sheet2!A: A,0),200,,,"Sheet2")))

    Essentially that I am looking for is:
    =SUMIF(A1:C1,G1,ADDRESS(MATCH(F1,Sheet2!A:A,0),2,,,"Sheet2":ADDRESS(MATCH(F1,Sheet2!A:A,0),200,,,"Sh eet2"))

    The two address functions return the correct cell references, however the SUMIF function will not recognize the formula as valid.

    I attached a spreadsheet with a model of what I am working on.

    Your assistance is greatly appreciated. This has got me totally stumped!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-03-2009
    Location
    Firenze, Italy
    MS-Off Ver
    Excel 2000 XP
    Posts
    436

    Re: SUMIF & MATCH Functions on Seperate Sheets

    Hi,

    you should take sheet2 reference out of Address

    Regards
    Last edited by CANAPONE; 02-02-2012 at 02:08 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon below the post.

    Please, mark your thread [SOLVED] if you received your answer.

    Forum rules: http://www.excelforum.com/forum-rule...rum-rules.html

  3. #3
    Valued Forum Contributor
    Join Date
    12-03-2009
    Location
    Firenze, Italy
    MS-Off Ver
    Excel 2000 XP
    Posts
    436

    Re: SUMIF & MATCH Functions on Seperate Sheets

    Hi,

    a possible way

    =SUMIF(A1:C1,G1,INDIRECT("Sheet2!"&ADDRESS(MATCH(F1,Sheet2!A:A,0),2)&":"&ADDRESS(MATCH(F1,Sheet2!A:A,0),200)))
    Hope it helps
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon below the post.

    Please, mark your thread [SOLVED] if you received your answer.

    Forum rules: http://www.excelforum.com/forum-rule...rum-rules.html

+ 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.2.0