+ Reply to Thread
Results 1 to 4 of 4

Assigning instance number

  1. #1
    Registered User
    Join Date
    04-30-2012
    Location
    Missouri
    MS-Off Ver
    Excel 2013
    Posts
    59

    Assigning instance number

    I have 129,799 rows of data and A-O columns. The data is essentially a call log and in Column 'K' I have a phone number. I have sorted all of my data by Column 'A', time of call, from oldest to newest.

    I have created a column to the right of my data, column P, which I would like to assign a phone number instance. I have tried doing: =countif($K$2:K2,K2) and dragging it down but it takes hours to calculate.

    Ideally, VBA would be able to accomplish the following in column P


    Column K Colulmn P
    888-888-8888 1
    888-885-8888 1
    888-888-8888 2
    888-880-0000 1
    888-880-0000 2


    Thanks for any help.
    Last edited by jph89; 05-21-2014 at 12:09 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Assigning instance number

    This takes less than a second on 100,000 cells:

    Please Login or Register  to view this content.
    Last edited by shg; 05-22-2014 at 12:43 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-30-2012
    Location
    Missouri
    MS-Off Ver
    Excel 2013
    Posts
    59

    Re: Assigning instance number

    Oh my. You are are my savior.

    Thank you 1,000,000 times.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Assigning instance number

    You're welcome.

+ 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. Number Each Instance in Corresponding Column
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2013, 02:21 PM
  2. [SOLVED] Display first instance of number on alt worksheet
    By dgits in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2012, 07:00 AM
  3. Find first instance of a number after a value
    By jhayes in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-27-2008, 02:59 PM
  4. The first instance of a number in a string
    By Tracer123 in forum Excel General
    Replies: 2
    Last Post: 05-21-2008, 11:39 AM
  5. Find the First Instance of a Number
    By Phillycheese5 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-18-2008, 10:59 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