+ Reply to Thread
Results 1 to 13 of 13

Dynamic Array, Index & Match, SUMIFS Formula Help!

  1. #1
    Forum Contributor garrett.grillo's Avatar
    Join Date
    06-19-2011
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2010
    Posts
    188

    Dynamic Array, Index & Match, SUMIFS Formula Help!

    Hi Excel Forum Team,

    I have a cash flow spreadsheet (see attachment or link to example below) that I need a formula for (A2:D6) that will automatically search through the larger cash flow spreadsheet below (A9:O13) and will return a single cost value that resided in a specified cell (D10:O13).

    The formula will be able to find the correct horizontal column title (A9:O9), then once the formula finds the correct column title, it will search the vertical rows for three unique values WBS Code, Vendor Code, and Purchase Order Number (A10:C13). This will now allow the formula to target in on both horizontally and vertically to one cell that contains the specified project cost value (D10:O13) and return its findings back up to the specified month column above (D3:D6).

    Please help me on this one I’m truly stuck and can’t get the formula to work right and I’m not sure if I need a Dynamic Array, Dynamic Index & Match, Dynamic SUMIFS or some other formula all together.

    Thank You!

    Dynamic Array Index Match Example.xlsx

    Garrett
    Last edited by garrett.grillo; 05-03-2014 at 04:45 PM.

  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,933

    Re: Dynamic Array, Index & Match, SUMIFS Formula Help!

    Try this ARRAY formula, copied down...
    =INDEX($D$10:$O$13,MATCH($A3&$B3&$C3,$A$10:$A$13&$B$10:$B$13&$C$10:$C$13,0),MATCH($D$2,$D$9:$O$9,0))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    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
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamic Array, Index & Match, SUMIFS Formula Help!

    In D3, then copied down, a normal formula:

    =INDEX($D$10:$O$13, MATCH(A3&"-"&B3&"-"&C3, INDEX($A$10:$A$13&"-"&$B$10:$B$13&"-"&$C$10:$C$13, 0), 0), MATCH(D$2, $D$9:$O$9, 0))
    Last edited by JBeaucaire; 05-03-2014 at 05:07 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Contributor garrett.grillo's Avatar
    Join Date
    06-19-2011
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2010
    Posts
    188

    Re: Dynamic Array, Index & Match, SUMIFS Formula Help!

    Hi JBeaucaire,

    Do I also also need to need to make your formula an Array by pressing in Ctrl+Alt+Enter?

    Garrett

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamic Array, Index & Match, SUMIFS Formula Help!

    No, it's a normal formula due to the inner INDEX.

  6. #6
    Forum Contributor garrett.grillo's Avatar
    Join Date
    06-19-2011
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2010
    Posts
    188

    Re: Dynamic Array, Index & Match, SUMIFS Formula Help!

    Hi FDibbins and JBeaucaire,

    Both your formulas worked perfectly!!! :-)

    This formula is for my work to improve an upon the existing cash flow spreadsheet that my team is in desperate need of because of the overload on the number of project we have to keep financial control of.

    Thank you from me and my team for all your help!

    Garrett

  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,933

    Re: Dynamic Array, Index & Match, SUMIFS Formula Help!

    Happy to help and thanks for the feedback

    Jerry, out of curiosity, is there a technical reason for adding the "-" in the concat?
    Last edited by FDibbins; 05-03-2014 at 05:25 PM.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Dynamic Array, Index & Match, SUMIFS Formula Help!

    It ensures that the lookup values are unique.

    A quick example of how concatenation could cause a problem...

    You want to lookup "X" in one column and "Y" in another column...

    1...Z...X
    2...XY...[empty cell]
    3...X...Y

    If you lookup A1&B1="XY" then row 2 meets that criteria but the correct result you want is on row 3.

    So, if you use A1&"-"&B1 then you get the correct match on row 3.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    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,933

    Re: Dynamic Array, Index & Match, SUMIFS Formula Help!

    good point, thanks Tony

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Dynamic Array, Index & Match, SUMIFS Formula Help!

    Concatenation, especially on large ranges, is inefficient.

    Nested IF functions are more efficient.

    INDEX(range1,MATCH(1,IF(range2="this",IF(range3="that",1)),0))

  11. #11
    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,933

    Re: Dynamic Array, Index & Match, SUMIFS Formula Help!

    Now, all I gotta do, is try and remember that

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Dynamic Array, Index & Match, SUMIFS Formula Help!

    Yeah, there's a lot to remember!

    I have 100's of files full of examples and notes.

  13. #13
    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,933

    Re: Dynamic Array, Index & Match, SUMIFS Formula Help!

    I think Im getting to the stage where, if I put 1 more new thing in my brain, an old thing falls out the other side, and I get a message flashing up with "crawling ants" saying my resources are insufficient, close some files please

+ 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. [SOLVED] Dynamic Array for Index/Match formula
    By Fletch74 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-23-2016, 03:51 PM
  2. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  3. Dynamic or Variable Lookup array in INDEX, MATCH or VLOOKUP
    By kishor_c in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-16-2012, 09:46 AM
  4. Replies: 2
    Last Post: 11-05-2011, 03:26 PM
  5. Nested Match(index()) vs. Match() array formula.
    By GeneralDisarray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2011, 07:57 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