+ Reply to Thread
Results 1 to 4 of 4

AutoFill Cell w/ data from different sheet after action

  1. #1
    Registered User
    Join Date
    06-22-2009
    Location
    OP,KS
    MS-Off Ver
    Excel 2003
    Posts
    17

    Post AutoFill Cell w/ data from different sheet after action

    I have an excel file that contains two sheets. Sheet2 contains rows of different types of products with each of the columns containing details about the product.

    On Sheet1, I have setup a data validation list in which a certain cell contains a drop down box that selects a product from the first column of all the rows on t from Sheet2. I used
    Please Login or Register  to view this content.
    When a list item is selected, I would like a function to be ran in which it autofills the columns to the right on this Sheet1 with the data from Sheet2 of the detailed information. I believe this can be done with vlookup but am having some difficulties with it returning N/A no matter what I choose.

    Thanks
    Last edited by ngay528; 06-23-2009 at 11:04 AM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: AutoFill Cell w/ data from different sheet after action

    I don't know for certain but I could probably help you figure this out. If you could attach a "dummied up" file (remove all personal info) with your current code, I'd be glad to look at it.

    J

  3. #3
    Registered User
    Join Date
    06-22-2009
    Location
    OP,KS
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: AutoFill Cell w/ data from different sheet after action

    Attached is a dummy file. Also would like to know how to make the list dynamic so as items on sheet 2 are added, the drop down will include these new items, and not any blank spaces (as there are now).

    Thanks
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-22-2009
    Location
    OP,KS
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: AutoFill Cell w/ data from different sheet after action

    I have figured out my initial problem by using a vlookup. My problem was with misunderstanding vlookup properties and not knowing that they update after an action takes place. The code solved is in my dummy file.

    And as long as 'ignore blanks' is checked under the function page, it will ignore all blanks after; so I just set my list array to go to a 1000 since my list won't get that big. (I thought it wasn't working when I changed it but after closing and re-opening the file, only the filled cells showed up in my drop down list.)
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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