+ Reply to Thread
Results 1 to 7 of 7

Last occurrence of number in column

  1. #1
    Registered User
    Join Date
    01-04-2016
    Location
    uk
    MS-Off Ver
    10
    Posts
    49

    Last occurrence of number in column

    Hi All,

    Is there a formula to show the last occurrence of a number.

    Id like to see the number of cells since the number was shown.

    Please see attached example with manually searched answers.

    Thank you for any help or advice you can offer.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Last occurrence of number in column

    Please explain your suggested answers. The first two numbers do not exist in the list and the last two do not appear at the cell reference you've given.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-04-2016
    Location
    uk
    MS-Off Ver
    10
    Posts
    49

    Re: Last occurrence of number in column

    Sorry to explain i'm looking at the last occurrence of the numbers in column A, so the first number 3, last occurred 12 cells ago in cell A14. I'm just looking for a formula to fill in the results in column B.
    Last edited by AliGW; 07-21-2017 at 07:10 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Last occurrence of number in column

    12 cells ago from what???

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,300

    Re: Last occurrence of number in column

    In B2

    =(MATCH($A2,$A3:$A$30,0))

    copy down

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Last occurrence of number in column

    Got it!

    =MATCH(A2,A3:A$30,0)

    Ooops! John beat me to it ...

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Last occurrence of number in column

    Thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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: 7
    Last Post: 12-08-2016, 04:35 PM
  2. [SOLVED] Find 1st Occurrence of Number and Return Value In nth Column
    By esiegal in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-27-2015, 11:06 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. [SOLVED] Count number of occurrence in column and print to array
    By ggilzow in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-10-2013, 12:44 PM
  5. [SOLVED] Counting digit occurrence in number/column
    By tazdingomon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2012, 02:35 AM
  6. search column "A" for every occurrence of the current part number cont.
    By Zombie79 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2007, 09:38 AM
  7. search column "A" for every occurrence of the current part number
    By Zombie79 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-15-2007, 01:44 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