+ Reply to Thread
Results 1 to 6 of 6

Finding the first appearance of the latest item

  1. #1
    Registered User
    Join Date
    10-09-2019
    Location
    Houston
    MS-Off Ver
    2016
    Posts
    3

    Exclamation Finding the first appearance of the latest item

    Hello All,

    I am trying to figure out how to mark the first time the latest Job Code appeared for all of my employees.

    The data looks somewhat like this:

    Employee ID Job code Effective Date
    123456 100003 4/30/2019
    123456 100003 6/30/2018
    123456 100003 1/2/2018
    123456 256328 10/31/2017
    123456 256328 9/1/2015
    123456 450378 7/8/2015


    I am trying to mark the value of 01/02/2018 as this is the first time the latest job code appears.

    Can anyone assist?

    Thank you!!!!

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

    Re: Finding the first appearance of the latest item

    Based on your data, try
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you're going to be inserting rows, maybe
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Assumption: Data is in reverse chronological order with newest orders appearing in row 2
    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

  3. #3
    Registered User
    Join Date
    10-09-2019
    Location
    Houston
    MS-Off Ver
    2016
    Posts
    3

    Re: Finding the first appearance of the latest item

    Thank you ChemistB!

    This works if I only have one employee ID but not if I have many (which is my case). Is there a way to incorporate that?

    Thank you so much!

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

    Re: Finding the first appearance of the latest item

    Hello gvillanueva1009 and Welcome to Excel Forum.

    "This works if I only have one employee ID but not if I have many (which is my case). Is there a way to incorporate that?"

    It might help if you could upload a spreadsheet that demonstrates the issue. To upload a sample workbook/spreadsheet (not a picture or pasted copy) click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    10-09-2019
    Location
    Houston
    MS-Off Ver
    2016
    Posts
    3

    Re: Finding the first appearance of the latest item

    Thank you JeteMc.

    I am attaching a sample spreadsheet. Thank you all for your help.
    Attached Files Attached Files

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

    Re: Finding the first appearance of the latest item

    This proposal employs two helper columns (F:G) which may be moved and or hidden for aesthetic purposes.
    Column F is populated using: =IF(OR(A2=A1,A2=""),"",AGGREGATE(15,6,C$2:C$50/(A$2:A$50=A2)/(B$2:B$50=B2),1))
    Column G is populated using: =IF(F2="","",AGGREGATE(15,6,ROW(A$2:A$50)/(A$2:A$50=A2)/(B$2:B$50=B2)/(C$2:C$50=F2),1))
    The conditional formatting rule is: =COUNTIFS($G$2:$G$50,ROW())>0
    Let us know if you have any questions.

+ 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. Need to get the latest date in a column for each item number
    By gosforth in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-12-2014, 09:42 AM
  2. Need help showing the latest value on balance column for a particular item.
    By kittle08 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-31-2014, 10:17 AM
  3. Replies: 9
    Last Post: 11-28-2013, 05:20 PM
  4. Finding latest date
    By tbaskar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2013, 02:36 AM
  5. Finding Latest Available Data
    By the.ronin in forum Excel General
    Replies: 3
    Last Post: 10-25-2011, 12:43 PM
  6. finding latest price
    By wahib in forum Excel General
    Replies: 2
    Last Post: 07-12-2010, 11:20 AM
  7. Finding latest date
    By SilverHeli2000 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-22-2009, 02:13 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