+ Reply to Thread
Results 1 to 5 of 5

Need to sort by latest or last value

  1. #1
    Registered User
    Join Date
    10-18-2015
    Location
    SF Bay Area
    MS-Off Ver
    2013
    Posts
    3

    Need to sort by latest or last value

    testing.png

    Please review attachment. I would like to organize my data to show only the latest product version first and also pair it up with latest test version. I would like to hide the older versions. Is this doable? Many thanks!

  2. #2
    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: Need to sort by latest or last value

    Hi, welcome to the forum

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    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

  3. #3
    Registered User
    Join Date
    10-18-2015
    Location
    SF Bay Area
    MS-Off Ver
    2013
    Posts
    3

    Re: Need to sort by latest or last value

    The spreadsheet is attached.Testing.xlsx

  4. #4
    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: Need to sort by latest or last value

    See if this is what you want?

    Your table...
    A
    B
    C
    D
    1
    Product Test Product Version Test Version
    2
    A spark plugs
    3
    74
    3
    A spark plugs
    3
    73
    4
    A spark plugs
    2
    72
    5
    A spark plugs
    2
    71
    6
    A spark plugs
    2
    70
    7
    A spark plugs
    2
    69
    8
    A oil level
    3
    68
    9
    A oil level
    3
    67
    10
    A oil level
    2
    66
    11
    A oil level
    1
    65


    My summary table...
    F
    G
    H
    I
    1
    Product Test Product Version Test Version
    2
    A spark plugs
    3
    74
    3
    A oil level
    3
    68
    4
    5
    6
    7
    8
    9
    10
    11
    12

    F2=IF(G2="","",INDEX($A$2:$D$11,MATCH($G2,$B$2:$B$11,0),MATCH(F$1,$A$1:$D$1,0)))
    G2=IFERROR(INDEX(B$2:B$11,MATCH(0,INDEX(COUNTIF(G$1:G1,B$2:B$11),),0)),"")
    H2=IF(I2="","",INDEX($A$2:$D$11,MATCH($G2,$B$2:$B$11,0),MATCH(H$1,$A$1:$D$1,0)))
    I2=IF(G2="","",MAX(IF($B$2:$B$11=G2,$D$2:$D$11,0)))
    I2 is an ARRY formula, entered using CTRL SHIFT ENTER, not just enter
    Then copy them all down

  5. #5
    Registered User
    Join Date
    10-18-2015
    Location
    SF Bay Area
    MS-Off Ver
    2013
    Posts
    3

    Re: Need to sort by latest or last value

    That's what I was looking for Many thanks!

    I did notice that if I change Product to "B" in one of the cells, the formula will not reflect that.
    Is there a way to tweak that?

+ 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. Replies: 4
    Last Post: 05-23-2015, 12:08 PM
  2. [SOLVED] Macro to Sort earliest shift to latest shift
    By Shellybelly in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-05-2014, 09:00 AM
  3. [SOLVED] How can I sort the latest dates in a lot of data?
    By Hin135 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-04-2014, 06:57 AM
  4. Replies: 9
    Last Post: 11-28-2013, 05:20 PM
  5. 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
  6. Sort Data According to latest date and lowest balance. Excel 2007
    By Bruce2000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2012, 12:46 PM
  7. Open Latest TextFile with latest TimeStamp
    By pr4t3ek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2009, 10:03 AM

Tags for this Thread

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