+ Reply to Thread
Results 1 to 10 of 10

First Occurrence

  1. #1
    Forum Contributor
    Join Date
    01-25-2021
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    144

    First Occurrence

    I am creating a report which needs to ID only new employees. Therefore people who have never been one the list before needs to be IDed. Is there a formula to ID only values (people) that appear the first time based on date criteria on adjacent column?

    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: First Occurrence

    Use this formula

    =COUNTIF($A$2:$A$12,A2)=1

    that will return "TRUE" if there is only 1 instance and indicate new person.
    If you find the suggestion or solution helpful, please consider adding reputation to the post.

  3. #3
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: First Occurrence

    You need to sort by ascending date first.
    Then use this formula in cell D2 and drag down;

    =IF(COUNTIF($A$2:$A2,A2)=1,TRUE,"")

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: First Occurrence

    You need countifs, with 2 condition: Name in column A and Date in column B is oldest:

    =IF(COUNTIFS($A$2:$A$12,A2,$B$2:$B$12,"<="&B2)=1,"TRUE","")
    Quang PT

  5. #5
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: First Occurrence

    If you don't want to sort first, you can try this formula in D2 and copy down

    =IF(MIN(IF($A$2:$A$12=$A2,$B$2:$B$12))=$B2,TRUE,"")

    Note: you need to enter this formula with a Ctrl+Shift+Enter (CSE)

  6. #6
    Forum Contributor
    Join Date
    01-25-2021
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    144

    Re: First Occurrence

    Thanks cubangt but this formula does not address what I am looking for which is to ID the first occurrences.

  7. #7
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: First Occurrence

    Quote Originally Posted by JyothiGrace View Post
    I am creating a report which needs to ID only new employees. Therefore people who have never been one the list before needs to be IDed. Is there a formula to ID only values (people) that appear the first time based on date criteria on adjacent column?

    Thanks
    So question then, you say you want to identify only new employees that have never been on the list.. so how does the date help? If they have never been on the list, then they would only have 1 record on the list regardless of the date correct?

    Now if you are wanting to find an employee that has been on the list say 3 times and you want the most recent, then you are correct, the formula i provided wont do without some additional logic.

    Just trying to better understand the request.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,395

    Re: First Occurrence

    Cell D2 formula , drag down

    HTML Code: 
    OR array formula , drag down

    HTML Code: 

  9. #9
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,054

    Re: First Occurrence

    Using SUMPRODUCT = IF(SUMPRODUCT(($A$2:$A$12=A2)*($B$2:$B$12<=B2))=1,"TRUE","")

  10. #10
    Forum Contributor
    Join Date
    01-25-2021
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    144

    Re: First Occurrence

    Thanks...worked!

+ 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. [SOLVED] Second to Last Value/Last Occurrence before last row
    By Excl3454 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-10-2021, 01:58 PM
  2. Replies: 2
    Last Post: 08-18-2020, 01:49 AM
  3. Replies: 16
    Last Post: 08-19-2019, 08:00 AM
  4. Find the Occurrence and Result of each occurrence
    By suriya0702 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2019, 01:43 PM
  5. [SOLVED] First And Last Occurrence
    By jquintana83 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-31-2015, 05:56 PM
  6. Find each occurrence in a column and do for each occurrence
    By jfoerch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2014, 12:29 PM
  7. Multiple occurrence => 1 occurrence
    By exhortae in forum Excel General
    Replies: 4
    Last Post: 09-08-2010, 05:00 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