+ Reply to Thread
Results 1 to 5 of 5

Fill a list of names from a formula

  1. #1
    Registered User
    Join Date
    06-29-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Smile Fill a list of names from a formula

    Using a formula I want to fill column C with a list of names from column A and the number of times a name appears based on number next to name in column B. See sample below.

    A B C
    1 Alan 2 Alan
    2 Bob 3 Alan
    3 Chuck 1 Bob
    4 Bob
    5 Bob
    6 Chuck

    or see attachment.

    Thanks,
    Ken
    Attached Files Attached Files
    Last edited by kking77; 01-21-2021 at 11:15 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Fill a list of names from a formula

    It is called COUNTIF:
    With list is in D2:D7
    Name is in A2
    Counting in B2:
    =COUNTIF($D$2:$D$7,A2)
    Quang PT

  3. #3
    Registered User
    Join Date
    06-29-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Fill a list of names from a formula

    Thanks but not looking for a count. Looking for something like REPT function down rows instead of same cell. As you add more name in column A with the number of time you want it listed in column B, then Column C is a concatenation of A times B down column C. See attachment.
    Thanks,
    Ken

  4. #4
    Registered User
    Join Date
    06-29-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Fill a list of names from a formula

    Excel attachment might explain it better.
    Ken
    Attached Files Attached Files

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Fill a list of names from a formula

    OK

    C2=A2
    C3:
    Please Login or Register  to view this content.
    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

    or C3: (non array formula, Enter only):
    Please Login or Register  to view this content.

+ 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: 07-18-2016, 02:34 PM
  2. [SOLVED] fill userform combobox list with subfolders names
    By hassan khansa in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-06-2016, 05:38 AM
  3. Replies: 2
    Last Post: 01-07-2015, 07:15 PM
  4. [SOLVED] Draw random names from list and then remove, carry on till no names left in list
    By dave1983 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-26-2014, 12:14 PM
  5. [SOLVED] Formula to Flag names in list 1 that do not exist in list 2.
    By shepherdc2814 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2013, 11:28 AM
  6. Auto-Fill from list of names
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-15-2012, 04:16 PM
  7. Finding and deleting a small list of names from a really big list of names
    By vitalstatistix in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-07-2011, 01:31 PM

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