+ Reply to Thread
Results 1 to 3 of 3

Use field value to populate list on seperate worksheet

  1. #1
    Registered User
    Join Date
    10-30-2007
    Posts
    13

    Use field value to populate list on seperate worksheet

    I have a list of names with a second column listing a desired quantity.

    I.E. Bob Smith 1
    Lisa Smith 5

    I need to return a list of values showing "Lisa Smith" 5x and Bob Smith 1x

    Bob Smith
    Lisa Smith
    Lisa Smith
    Lisa Smith
    Lisa Smith
    Lisa Smith.

    I used an IF function to subtract column b and use "Lisa" again if B1-b2>0. This works but it skips the next 4 entries in the list until it reaches 0. Doesn't matter how it's sorted in the final. I just need a list for a variable data print run having each name occur however many times are shown in column b.
    Attached Files Attached Files
    Last edited by NBVC; 01-17-2011 at 11:32 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Use field value to populate list on seperate worksheet

    Hi,

    This code should do as you ask. Insert a new sheet named "New Sheet" and run.

    You can change ranges and sheet names as required.

    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    10-30-2007
    Posts
    13

    Re: Use field value to populate list on seperate worksheet

    Quote Originally Posted by sweep View Post
    Hi,

    This code should do as you ask. Insert a new sheet named "New Sheet" and run.

    You can change ranges and sheet names as required.

    Please Login or Register  to view this content.
    That worked! Thank you. You just saved me a a ton of time!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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