+ Reply to Thread
Results 1 to 12 of 12

Add rows to a list based on cell value and key data

  1. #1
    Registered User
    Join Date
    09-06-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Add rows to a list based on cell value and key data

    I'm looking for some help from all you Excel/VBA experts out there... This is above my excel knowledge...
    I have attached my file and a screenshot to help facilitate the explanation of what I am trying to acomplish.

    Excel Screenshot.jpg

    The data in the list is a manually entered example of how I would like it to end up, automatically.

    The pale yellow shaded cells are the only ones where data will be changed manually.

    Cell B:4 is the key data for Column B

    Cell C:4 is the key data for Column C

    Cell E:4 is the key data for Column E

    The pale yellow shaded cells in Column J should determine how many rows of that dataset type will be created in the list which would include the text of Column H of the same row being added to the D cell of each of the rows created.

    Looking at the example you can see what I mean....

    Thank you...... and I really mean that.... thank you for any help you can give me.
    Attached Files Attached Files
    Last edited by minijunkie; 09-06-2012 at 04:43 PM.

  2. #2
    Registered User
    Join Date
    08-23-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Add rows to a list based on cell value and key data

    Will you be manually entering the information in Column D?
    A macro does what you tell it, not what you want.

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Add rows to a list based on cell value and key data

    hi minijunkie, welcome to Excelforum, please check attachment, press "Fill data" button or run code "test"
    Attached Files Attached Files
    Last edited by watersev; 09-06-2012 at 05:20 PM.

  4. #4
    Registered User
    Join Date
    09-06-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Add rows to a list based on cell value and key data

    that is PERFECT..... Thank you soooooo much.

    Ooops... I spoke too soon.... the only problem is the values for Column J are restricted to 1 or above.... I would like to be able to enter 0 for some.
    Last edited by minijunkie; 09-06-2012 at 05:36 PM.

  5. #5
    Registered User
    Join Date
    09-06-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Add rows to a list based on cell value and key data

    Arghhhh..... help please. Somehow I broke the macro... Meaning it does not respond to a click anymore and populate the data...."test" is still assigned to the button and I have not edited the macro.... Must be the formatting that messed it up...

    I am including the file...

    Thanks so much, you folks are a lifesaver.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-06-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Add rows to a list based on cell value and key data

    unlocked... (hopefully)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-06-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Add rows to a list based on cell value and key data

    fixed the formatting/macro problem.... but I still cannot enter 0 into any of the j column cells.

    latest revision
    Attached Files Attached Files
    Last edited by minijunkie; 09-06-2012 at 09:16 PM.

  8. #8
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Add rows to a list based on cell value and key data

    If zero is an option (seems odd to be?) you need to change the minimum value to 0 from the Settings tab within the Data Validation dialog for cell J7 and copy it to the other 11 cells.
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  9. #9
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Add rows to a list based on cell value and key data

    just in case I have amended validation rule for you (on how to questions see post #8 by Trebor76)
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    09-06-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Add rows to a list based on cell value and key data

    Thank You, everyone.... Especially you watersev! You have been invaluable help. I much appreciate your expert assistance...

  11. #11
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Add rows to a list based on cell value and key data

    @ minijunkie

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  12. #12
    Registered User
    Join Date
    09-06-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Add rows to a list based on cell value and key data

    Thank you... I'll do that

+ 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