+ Reply to Thread
Results 1 to 7 of 7

how to combine sumif with index / match to make formula dynamic for updates

  1. #1
    Registered User
    Join Date
    05-15-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    12

    how to combine sumif with index / match to make formula dynamic for updates

    Hi guys

    Previously in my models i've found that sometimes when i had to make updates it would be quite manual when formulas work across tabs, having to edit rows etc.

    I was wondering if someone can provide some suggestion on how i can improve it.

    I've attached an example work book.

    Currently I have summary linking to the monthly tab.

    If i insert some new rows the formulas still link so its not an issue but for example if i add a bunch of extra detail in the monthly tab i would need to manually link them all in the summary.

    Ideally id have some index match (i assume?) formula which goes "this is the line item we want to sumif based on the year". The assumption of course is that the Line item (in this example Total Revenue, Total Costs) are same on both tabs.

    Many thanks for any help / advice / suggestions
    Attached Files Attached Files
    Last edited by ExcellingOcfUpsides; 09-26-2019 at 06:23 AM.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: how to combine sumif with index / match to make formula dynamic for updates

    See if this is what you are trying to achieve...

    On Summary Tab
    In C4
    Please Login or Register  to view this content.
    and then copy it across and down.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    05-15-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    12

    Re: how to combine sumif with index / match to make formula dynamic for updates

    Quote Originally Posted by sktneer View Post
    See if this is what you are trying to achieve...

    On Summary Tab
    In C4
    Please Login or Register  to view this content.
    and then copy it across and down.
    Thank you very much. This works. I was wondering though - why is the initial IF function required? This formula also seems to work on:

    Please Login or Register  to view this content.
    Many thanks

    EDIT: also, i guess id still need to edit the Z1000 based on how big the workbook gets.

    Is there someway of perhaps combining it with an "end function" (if one exists) which identifies what the last active cell in workbook is? e.g. sort of how we can get to it using CTRL+END otherwise this would need to be manually adjusted as well i guess.

    Could potentially just have it index the whole tab but i assume that would slow down the file / make it larger?
    Last edited by ExcellingOcfUpsides; 09-26-2019 at 06:13 AM.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: how to combine sumif with index / match to make formula dynamic for updates

    Yes, the formula would work without the outer IF formula. I added this as I used a single formula which I placed in C4 and then dragged it down and across. If you drag the formula in C4 down to C5 and since B5 is empty it will return an error and to avoid that I added that extra IF condition so that same formula in C4 can be dragged across and down.

    But if you don't need that extra IF formula, you can have a formula without it.

    If that takes care of your original question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.

    You may also say thanks to those who have put their time and efforts to help you in this forum by clicking the Add Reputation link under their posts, another way to say thanks.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: how to combine sumif with index / match to make formula dynamic for updates

    You may use this as well...

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    05-15-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    12

    Re: how to combine sumif with index / match to make formula dynamic for updates

    Quote Originally Posted by sktneer View Post
    You may use this as well...

    Please Login or Register  to view this content.
    Thanks. Yeah thats what i put in for now. just wondering whether once the workbook becomes more populated (just creating a template now) whether this would create size issues / lag issues because its scanning the whole tab and id be having hundreds of cells doing the same sumif formula scanning the whole tab.

    Edited title & added the rep :-)

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: how to combine sumif with index / match to make formula dynamic for updates

    Index works differently and stops evaluating once the Match function finds the first match so it is safe to use whole column, row or all the rows reference in it. So you should not have any performance issue with it.

    Thanks for the rep!

+ 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. formula to combine columns sum/index/match
    By mecexcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2015, 05:40 PM
  2. Replies: 3
    Last Post: 04-14-2015, 01:36 PM
  3. [SOLVED] #Value error for hlookup, match and Index combine formula
    By Pi* in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-05-2015, 07:09 PM
  4. [SOLVED] Make an index and match function dynamic
    By concatch in forum Excel General
    Replies: 3
    Last Post: 08-18-2014, 02:35 PM
  5. [SOLVED] How to combine SUMIF, INDEX and MATCH
    By BeachRock in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-28-2013, 04:58 PM
  6. make a sumif formula dynamic
    By amartino44 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-08-2013, 11:19 AM
  7. Replies: 2
    Last Post: 11-05-2011, 03:26 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