+ Reply to Thread
Results 1 to 4 of 4

Sumproduct, row, max, match - help!

  1. #1
    Registered User
    Join Date
    04-08-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    35

    Sumproduct, row, max, match - help!

    Ok, I'm not exactly sure what formula I need... I want to return the value from Column C that is the last entry for a specific item in column A.

    The data shows how many items were taken (in column B) and how many are remaining (in Column C). For example if I had:
    [Column A] [Column B] [Column C]
    banana -2 5
    apple -3 6
    banana -1 4
    orange -1 5
    orange -2 3
    apple -2 4


    I want the formula to return these results (on a separate sheet):
    Apples 4
    Oranges 3
    Bananas 4

  2. #2
    Registered User
    Join Date
    04-08-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    35

    Re: Sumproduct, row, max, match - help!

    oops, ok the data in the columns is respective as follows: fruit, negative amount, remaining positive amount

    ( Sorry, the formatting got messed up. )

  3. #3
    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,926

    Re: Sumproduct, row, max, match - help!

    Assuming the values in C will always be decreasing (although I have a feeling at some point they will climb again), try this ARRAY formula...
    A
    B
    C
    D
    E
    F
    1
    Fruit Amt Balance
    2
    banana
    -2
    5
    Apple
    4
    3
    apple
    -3
    6
    Orange
    3
    4
    banana
    -1
    4
    banana
    4
    5
    orange
    -1
    5
    6
    orange
    -2
    3
    7
    apple
    -2
    4

    F2=MIN(IF($A$2:$A$7=E2,$C$2:$C$7))
    copied down
    ...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

  4. #4
    Registered User
    Join Date
    08-25-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Sumproduct, row, max, match - help!

    Try if this works, the 1/(xxx) basically reverse your table before the lookup does its stuff.

    I'm using Ford's table format.

    Please Login or Register  to view this content.

+ 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. SUMPRODUCT when there is no match
    By jshaw82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-25-2015, 01:48 PM
  2. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  3. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  4. [SOLVED] Sumproduct with match
    By Torleif in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-26-2012, 05:33 PM
  5. Replies: 5
    Last Post: 04-20-2012, 08:54 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