+ Reply to Thread
Results 1 to 6 of 6

How to find latest date result from filtered data

  1. #1
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    How to find latest date result from filtered data

    Dear all,

    I have data in which customer wise,date wise product sale price is mentioned. When I filter it with particular party for a particular product for example in my sheet 79-017901, and use find function it shows result from starting date,then after pressing enter it moves to latest dates.

    So my question is how to find sales price for a particular customer for particular product with most recent date sale price easily.

    Thanks in advance.

    Dev.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: How to find latest date result from filtered data

    It depends how you wish to do it, if it is by the filters so you filter for customer name and Item name, you can sort by igpdt descending, the top line will be the most recent date

    The problem is that you have more than 1 sale to the same customer on the same date, so which value would you wish to take eg if the 29th mar was the most recent date in the example, what would you wish to return?

  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
    43,984

    Re: How to find latest date result from filtered data

    I'd do this totally differently. This is a very basic version of what can be done. Take a look and see if it's what you need. It returns a blank if a product line has never been ordered by a customer before. Otherwise, it returns the latest value.

    It can be tidied up a lot to make it much more adaptable, but I'm not going to spend any time on it, if it's not what you're after.

    Use the drop-down boxes in G & H to get a result in I.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    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
    43,984

    Re: How to find latest date result from filtered data

    Apols. It returns a #N/A if there's no match. I can make it return a blank if/when I make the whole thing more robust.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to find latest date result from filtered data

    If you convert your dates to numbers instead of text,

    =SUBTOTAL(4, B:B) will give you the greatest date after filtering.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: How to find latest date result from filtered data

    Thank you all,

    I will try your solutions and will let you know.

    Dev.

+ 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. Find data with latest date
    By teco in forum Excel General
    Replies: 6
    Last Post: 01-05-2017, 03:43 PM
  2. Replies: 9
    Last Post: 12-21-2014, 06:29 PM
  3. [SOLVED] Find the latest date matching known data
    By tb100 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2013, 03:06 PM
  4. [SOLVED] Find the latest date
    By fitzt70 in forum Excel General
    Replies: 5
    Last Post: 07-16-2013, 03:36 AM
  5. Find the Latest Date
    By davidhale87 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2013, 05:20 PM
  6. Replies: 1
    Last Post: 04-04-2012, 08:21 AM
  7. Find Latest Date
    By Loisw in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-22-2011, 06:09 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