+ Reply to Thread
Results 1 to 5 of 5

Find max date and return value for item

  1. #1
    Registered User
    Join Date
    10-05-2016
    Location
    Georgia, USA
    MS-Off Ver
    2016
    Posts
    2

    Question Find max date and return value for item

    I have part numbers with multiple invoices over the past year. I need to find the last invoice date for each item and return the invoice amount for that date.
    I managed the =MAX(IF($A$2:$A$9430=A9433,$B$2:$B$9430)) formula to find the date...but I'm stuck as to how to add a command to return the value associated with that date. Any help would be great
    Attached Files Attached Files
    Last edited by christine2187; 10-05-2016 at 01:53 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Find max date and return value for item

    Array formula in F2, to return a list of items:
    =IFERROR(INDEX($A$2:$A$29,MATCH(0,INDEX(COUNTIF($F$1:$F1,$A$2:$A$29),0),0)),"")

    Array formula in G2, to return the latest date:
    =IF(F2="","",MAX(IF($A$2:$A$29=F2,$B$2:$B$29)))

    Array formula in H2, to return corresponding value:
    =IF(F2="","",INDEX($C$2:$C$29,MATCH(1,($A$2:$A$29=F2)*($B$2:$B$29=G2),0)))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Find max date and return value for item

    I was too quick to post....

    Array Formulae are a little different from ordinary formulas in that they MUST be 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 the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...

  4. #4
    Registered User
    Join Date
    10-05-2016
    Location
    Georgia, USA
    MS-Off Ver
    2016
    Posts
    2

    Re: Find max date and return value for item

    That worked! Thank you so much!!!

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Find max date and return value for item

    No problem!! 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. [SOLVED] 2 Column Look Up / Match - Return Item on or to the nearest date
    By DHHM in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2016, 06:55 AM
  2. [SOLVED] Find header against return corresponding line item
    By silambarasan.J in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-14-2015, 03:45 AM
  3. Problem with formula: Find highest value and return item
    By Thanks4helping in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-15-2015, 09:35 PM
  4. An item was sent several times, how to return the last date?
    By Excel_learner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-28-2014, 01:23 PM
  5. Return date of next item due
    By duderonomy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-10-2013, 03:10 AM
  6. Formula to return last date an item ordered
    By ExcelJunior in forum Excel General
    Replies: 6
    Last Post: 05-17-2011, 12:37 AM
  7. Find all instances of a selected item and return all results
    By NewGuy OnBlock in forum Excel General
    Replies: 16
    Last Post: 01-11-2011, 10:24 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