+ Reply to Thread
Results 1 to 6 of 6

Formula to find first and last occurnce

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Formula to find first and last occurnce

    Hello:

    Please refer to attached file.

    I need formula in I2 to give 1st occurence of text I1 in column G.
    I need formula in I3 to give last occurence of text I1 in column G.

    Let me know if you have any questions.
    Thanks.
    R
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: Formula to find first and last occurnce

    1st Occurrence =MATCH(I1,G:G,0)

    Last Occurrence =AGGREGATE(14,6,ROW(G:G)/(G:G=I1),1)

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to find first and last occurnce

    Hello Phuocam:

    Thanks a lot

    Works for me

    Riz

  4. #4
    Forum Contributor
    Join Date
    03-10-2017
    Location
    USA
    MS-Off Ver
    office 2016
    Posts
    393

    Re: Formula to find first and last occurnce

    Phuocam, why do you use the function 14? I see its "large" what does large do? I'm trying to understand the formula. I see that aggregate ignores errors which is nice so I want to be able to use it myself later.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Formula to find first and last occurnce

    Another way. In I2 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  6. #6
    Forum Contributor
    Join Date
    03-10-2017
    Location
    USA
    MS-Off Ver
    office 2016
    Posts
    393

    Re: Formula to find first and last occurnce

    Found this way with sumproduct and found it interesting.



    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by kevinu; 02-01-2018 at 01:03 PM.

+ 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: 1
    Last Post: 04-10-2017, 03:33 PM
  2. Replies: 3
    Last Post: 09-12-2016, 01:44 PM
  3. Replies: 5
    Last Post: 06-07-2014, 09:54 AM
  4. [SOLVED] Trying to find a formula to find a random $ amount in a text in a cell
    By Miki1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2013, 10:13 PM
  5. [SOLVED] Find formula with multiple find (array)
    By dluhut in forum Excel General
    Replies: 3
    Last Post: 05-04-2012, 10:48 AM
  6. IF formula to find a word but Not find a certain phrase
    By byrdjulie in forum Excel General
    Replies: 2
    Last Post: 02-03-2011, 05:18 AM
  7. Find Formula needs to find jobs with split names
    By 3smees23 in forum Excel General
    Replies: 5
    Last Post: 08-06-2009, 08:18 AM

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