+ Reply to Thread
Results 1 to 2 of 2

Sumif match offset

  1. #1
    Registered User
    Join Date
    03-30-2010
    Location
    Bermuda
    MS-Off Ver
    Excel 2003
    Posts
    5

    Sumif match offset

    Thanks to the forum...Apparently all I had to do was post here to FINALLY figure it out myself....(I think)

    Hello,

    I am trying to write a formula that will have excel determine the sumrange to use in a sumif formula based on the text value in a given cell. Can anyone help please?

    Eg. SUMIF(SAV838_ISCAT,$A36,sumrange)

    Where:
    SAV838_ISCAT is a named range of $A$4:$A$999 on reference tab Savings838
    $A36 contains an account shortcode (eg. “DIN”)

    Cell H1 contains the text “Jan ‘10”

    I am struggling to figure out how to get excel to look to the same tab of the name range above (Savings838) and based on the sumif criteria, sum the correct column (Jan ’10); of course tab Savings838 also has a column “Jan ‘10’ with the values I want summed. I do not want to have to tell it which column as I would have to change it every month. I want it to look to cell H1 and match the month and sum if the name range equals DIN.

    Cell H1 will change for each month (eg. Feb would be N1)

    I’ve tried offset and match within the sumif and named ranges but can’t figure out how to do it properly so it will work.

    SAV838DATA is my full data range on tab Savings838 (range $F$4:$Q:$999)
    on tab Savings838, the months are found on row 1, colums F through Q

    =SUMIF(SAV838_ISCAT,$A36,OFFSET(SAV838DATA,0,MATCH(H$1,savings838!$F$1:$Q$1,0)-1,999,1))

    Can anyone please help?
    Last edited by tbell; 03-30-2010 at 02:27 PM.

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

    Re: Sumif match offset

    Maybe?

    =SUMIF(NAME,$A36,OFFSET(SAV838_ISCAT,,MATCH(H$1,OFFSET(SAV838_ISCAT,-3,5,1,12),0),,1))
    Last edited by NBVC; 03-30-2010 at 02:33 PM. Reason: Changed width from 7 to 12 to account for cols F:Q
    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.

+ 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