+ Reply to Thread
Results 1 to 6 of 6

Find Unique ID - then find last occurrence of a value

  1. #1
    Registered User
    Join Date
    03-07-2018
    Location
    Belfast
    MS-Off Ver
    2017
    Posts
    13

    Find Unique ID - then find last occurrence of a value

    Hi all,
    I have an excel file which pulls in .CSV files from the web. The data looks as below;

    Image1.PNG


    As you can see, there is the unique ID (Column Document.Column3), then in Column (Document.Column4) there are two occurrences of the word "Execution" - different ID's can have different no's of occurrences of this row containing "Execution". What I am trying to do is find the Unique ID (e.g. DanK01) and then from that find the position of the last occurrence of the word Execution.


    So far I have the following;

    Please Login or Register  to view this content.
    This is not returning an error- but is just returning a blank cell.

    Any advice appreciated as always.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Find Unique ID - then find last occurrence of a value

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    03-07-2018
    Location
    Belfast
    MS-Off Ver
    2017
    Posts
    13

    Re: Find Unique ID - then find last occurrence of a value

    Hi all,
    Sample excel file with Data, Before and mocked up After sheet attached.

    Thanks
    Daniel
    Attached Files Attached Files

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

    Re: Find Unique ID - then find last occurrence of a value

    Try pasting the following into cell D3: =AGGREGATE(14,6,ROW(Data1!E:E)/(Data1!E:E=C4),1)-MATCH(C3,Data1!D:D,0)
    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
    03-07-2018
    Location
    Belfast
    MS-Off Ver
    2017
    Posts
    13

    Re: Find Unique ID - then find last occurrence of a value

    Hi JeteMc,
    Thanks for the response, what I actually ended up with was a helper column in Column OO of the Data tab. On the summary sheet, I then used the following formula;

    Please Login or Register  to view this content.
    The cell H4 contained the UniqueID and the word "Execution" which could be found within column OO of the data tab. Worked as expected.


    Thanks
    Daniel

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

    Re: Find Unique ID - then find last occurrence of a value

    Glad that you resolved the issue. Thank You for taking the time to provide feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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 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
  2. [SOLVED] Find unique occurrence of names across a number of columns
    By DPJW in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-21-2016, 09:28 AM
  3. 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
  4. Need help on a UDF (Find n occurrence)
    By vietdieu in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-12-2014, 08:42 PM
  5. [SOLVED] Help With a Formula to Find the Nth Occurrence
    By artiststevens in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-16-2013, 02:13 AM
  6. Find first occurrence of a 0
    By HSL9999 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-01-2010, 05:25 PM
  7. [SOLVED] find last occurrence
    By REMnLYN in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-29-2005, 06:06 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