+ Reply to Thread
Results 1 to 3 of 3

Generate list based on value & frequency

  1. #1
    Registered User
    Join Date
    08-31-2021
    Location
    UK
    MS-Off Ver
    2007
    Posts
    1

    Generate list based on value & frequency

    Hi there,

    I have a list of names in one column and a frequency value in the other column.

    E.g.

    Name. Frequency

    Dave. 2
    Pete. 1
    Tony. 4


    Is there a formula that will generate a new list with all individual entries.

    I.e.

    Dave
    Dave
    Pete
    Tony
    Tony
    Tony
    Tony

    Thanks in advance,

  2. #2
    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,408

    Re: Generate list based on value & frequency

    With Name/Frequency in A2/B2 and down

    in C2 put 0 (zero)

    in C3

    =C2+B2

    Copy down to last name

    in E2

    =IF(ROWS($1:1)<=SUM($B$2:$B$50),INDEX($A$2:$A$50,MATCH(ROWS($1:1)-1,$C$2:$C$50,1)),"")

    Drag down until you get a blank
    Last edited by JohnTopley; 08-31-2021 at 01:53 PM.

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

    Re: Generate list based on value & frequency

    Similarly with names/frequencies in A2/B2 and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In Office 2007 if that does not return what you expect you make have to commit this formula as an array formula.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Dave

+ 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. Generate list of invoice dates based on start date and invoice frequency
    By yasmin89 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-14-2020, 02:31 PM
  2. Replies: 5
    Last Post: 05-30-2018, 08:34 AM
  3. Auto-Generate List from reference cells based on data validation list selection
    By BoundCustomDesign in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-13-2014, 11:06 AM
  4. List selection based on frequency table
    By pepijn in forum Excel General
    Replies: 1
    Last Post: 03-22-2012, 07:11 AM
  5. Macro required to generate recurring list using frequency and calendar inputs
    By rowlandrat in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2011, 05:28 AM
  6. generate random numbers from a frequency list
    By adeina in forum Excel General
    Replies: 11
    Last Post: 06-21-2007, 11:34 AM
  7. Sorting Numbers Based on Their Frequency within a List
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-28-2005, 11:25 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