+ Reply to Thread
Results 1 to 3 of 3

Number of times different names show up in Excel

  1. #1
    Registered User
    Join Date
    12-25-2016
    Location
    New Orleans, LA
    MS-Off Ver
    365 ProPlus
    Posts
    2

    Angry Number of times different names show up in Excel

    I'm new to Excel macros, and I've been googling around to try to figure out a solution to my problem and it's been driving me crazy.

    I would like to make an Excel file with two sheets:
    In one sheet, a list of names would be located in a column, e.g. Column A. The list of names will be populated by something else so I have no control over what names will show up.
    In the second sheet, I would like to set up a macro that scans the column of names in sheet one and populates Column A with all unique names and Column B with the number of times that name pops up in sheet two.
    Then in future iterations, I would like for the macro to be able to scan a whole new list of names and populate Column A with any new unique names and add the number of instances of all the names to the number of instances already present from before in Column B.

    Is this at all possible?! I'm going crazy. Any sort of direction or hint would be massively helpful. Thank you!

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Number of times different names show up in Excel

    Hi fitakyre and welcome to ExcelForum,

    See post %2 in the following thread which answers a question that is similar to yours: http://www.excelforum.com/excel-prog...nd-sheets.html

    When looking for unique items in Excel, there is a VBA tool called the 'Scripting Dictionary' which is very useful. For more information see:
    http://www.snb-vba.eu/VBA_Dictionary_en.html
    http://www.experts-exchange.com/Soft...ss-in-VBA.html

    I hope this helps.

    Lewis
    Last edited by LJMetzger; 12-25-2016 at 12:15 PM.

  3. #3
    Registered User
    Join Date
    12-25-2016
    Location
    New Orleans, LA
    MS-Off Ver
    365 ProPlus
    Posts
    2

    Re: Number of times different names show up in Excel

    This is perfect, thank you so much!

+ 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] How to start count after 4 times the number show up
    By davi65 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 11-05-2016, 03:12 PM
  2. Can I have a message box show a specified number of times and then not show again?
    By gmr4evr1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-17-2016, 07:50 PM
  3. [SOLVED] Repeat a list of names X number of times
    By jonpaulson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-10-2014, 04:24 PM
  4. [SOLVED] Count number of times names appear in a column
    By jeremysayshi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-06-2014, 01:24 PM
  5. [SOLVED] Macro to show how many times one number appears with another number
    By Omega71 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2012, 10:53 AM
  6. How many times a number show up
    By codyaaron2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-16-2009, 09:58 PM
  7. Counting number of times names show up in column?
    By danny2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-28-2007, 09:30 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