+ Reply to Thread
Results 1 to 5 of 5

Get data with latest date only

  1. #1
    Registered User
    Join Date
    03-29-2018
    Location
    Abu dhabi
    MS-Off Ver
    MS365
    Posts
    43

    Get data with latest date only

    My data is below in excel
    I need that there are three are three articles of shoes with different prices along with transaction date, i need these three articles with latest price with latest transaction date . I need result also mentioned in second table

    Item id Item name New price Transaction date
    000600839 Shoes 0.00 5-Dec-18
    000600839 Shoes 1,050.00 5-Dec-18
    000600839 Shoes 1,150.00 10-Jan-19
    000600839 Shoes 1,299.00 15-Jul-19
    000600839 Shoes 1,300.00 15-Jul-19
    003100131 Shoes 0.00 25-Oct-18
    003100131 Shoes 1,990.00 25-Oct-18
    003100131 Shoes 2,150.00 12-Jan-19
    003100131 Shoes 2,399.00 15-Jul-19
    003100131 Shoes 2,400.00 15-Jul-19
    003200040 Shoes 0.00 25-Oct-18
    003200040 Shoes 2,150.00 25-Oct-18
    003200040 Shoes 2,390.00 12-Jan-19
    003200040 Shoes 3,490.00 1-Mar-19
    003200040 Shoes 3,450.00 1-Mar-19
    003200040 Shoes 3,799.00 15-Jul-19
    003200040 Shoes 3,800.00 15-Jul-19


    Required result is

    Item id Item name New price Transaction date
    000600839 Shoes 1,300.00 15-Jul-19
    003100131 Shoes 2,400.00 15-Jul-19
    003200040 Shoes 3,800.00 15-Jul-19

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

    Re: Get data with latest date only

    you need to provide more information.
    Do you always know the item ID?
    Are there always 3 items?
    Is the list always sorted item, then date?

    why not attach a sample file as per the banner to save people having to retype your data?

  3. #3
    Registered User
    Join Date
    03-29-2018
    Location
    Abu dhabi
    MS-Off Ver
    MS365
    Posts
    43

    Re: Get data with latest date only

    Do you always know the item ID?
    Yes

    Are there always 3 items?
    No, it will be exceeded


    Is the list always sorted item, then date?
    No, not always

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,647

    Re: Get data with latest date only

    I agree with davsth's suggestion about attaching a file however I didn't mind producing a file this time as the data could be copy and pasted (with a little help from the text to columns).
    Assuming that the price will increase then a pivot table will yield the results listed in post #1.
    Item ID in the Rows area.
    New Price and Transaction date in the Values to area both summarized as Max.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

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

    Re: Get data with latest date only

    Since there has been no reply it is hard to say, but I am not convinced about the max of new price. In the file shoe 3 on the 1st of mar shows 2 values and the last value is smaller than the previous value.


    All be it that the current last values are the largest so it may be ok. there is no criteria to get the latest value if dates are tied, unless it is the value nearest th bottom of the list.

    All we can do is guess Jete!

+ 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. delete data by latest date
    By okl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2017, 02:58 AM
  2. Find data with latest date
    By teco in forum Excel General
    Replies: 6
    Last Post: 01-05-2017, 03:43 PM
  3. VBA- Filter Pivot table based on latest and 2nd latest date in column
    By ziyan89 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 12-29-2015, 11:18 AM
  4. Data Analysis: Compare initial date with final date by looking up the latest revision
    By White_Glint in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2015, 02:31 PM
  5. Replies: 8
    Last Post: 04-08-2015, 10:10 PM
  6. Powerpivot - Returning latest update based on latest date
    By Kehjz in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 08-22-2013, 02:45 PM
  7. Finding Latest Date and corresponding data
    By Kolacube in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-01-2008, 03:30 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