Return latest price based on exact match of Product and latest date

Patricia Stephenson 0 Reputation points
2025-07-28T16:21:46.79+00:00

I want to return the latest Price based on an exact match of product and the latest date.

The latest price should be Apple = $1.00

User's image

Microsoft 365 and Office | Excel | For business | Other
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Hendrix-C 8,565 Reputation points Microsoft External Staff Moderator
    2025-07-28T16:35:37.9033333+00:00

    Hello @Patricia Stephenson

    Thank you for reaching out to Microsoft Q&A Community. We're happy to support you with your concern. 

    Based on your request, you want to get the latest price for "Apple" based on the latest date in your data. We highly suggest you should use the combination formula of INDEX and MATCH like below:  

     

    =INDEX(Price column, MATCH(MAXIFS(Date column, Product column, "Apple"), Date column, 0)) 

     

    You can try workaround and update us the news. Please feel free to reach out again if you need any further assistance and we will keep assisting you. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. IlirU 1,436 Reputation points Volunteer Moderator
    2025-07-28T17:08:21.8566667+00:00

    User's image

    Hi,

    Try this formula in cell F2 (see the screenshot):

    =LET(f, FILTER(A2:C10, A2:A10 = E2), c, CHOOSECOLS(f, 2), 1 / LOOKUP(2, 1 / FILTER(TAKE(f,, -1), c = TAKE(SORT(c,, -1), 1))))

    Hope this helps.

    0 comments No comments

  3. Hendrix-C 8,565 Reputation points Microsoft External Staff Moderator
    2025-07-30T22:27:00.36+00:00

    Hello @Patricia Stephenson

    It has been a while and we just follow up to see how you are doing. Do you have any more concerns about this issue? Any updates would be greatly appreciated.

    Please don't hesitate to reach out again if you need any further assistance.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. Hendrix-C 8,565 Reputation points Microsoft External Staff Moderator
    2025-07-31T23:07:31.81+00:00

    Hello @Patricia Stephenson

    We're reaching out again to follow up on your issue and to ensure that it has been resolved to your satisfaction. If you are still experiencing difficulties or have encountered any new challenges, kindly provide additional details regarding the specific steps where you are facing obstacles. We will remain at your disposal to offer any further assistance you may require.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  5. Ashish Mathur 100.8K Reputation points Volunteer Moderator
    2025-08-13T23:11:07.4433333+00:00

    Hi,

    In cell F2, enter this formula

    =GROUPBY(A2:A10,C2:C10,MIN,0,0,,B2:B10=MAX(B2:B10))

    Hope this helps.

    User's image

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.