+ Reply to Thread
Results 1 to 5 of 5

Vlookup and insert new data into existing row

  1. #1
    Registered User
    Join Date
    04-13-2013
    Location
    Wellington
    MS-Off Ver
    Excel 2003
    Posts
    5

    Question Vlookup and insert new data into existing row

    Hey Guys,

    I have been through multiple forums and cant find what I am looking for. I have tried my best at userforms/input forms and straight Excel sheets.

    Information layout:
    sheet1
    -- list lookup on a defined name in sheet 2
    -- some vlookups in cells to allow the user to confirm they are looking at the right item
    -- 3 x input cells that will be updated in sheet2 based on an action (submit button)

    sheet2
    --raw data

    -- the user will essentially use the list lookup cell to select a item
    -- confirm they selected the right item (vlookups)
    -- then enter some data into the 3 input cells
    -- press a submit button
    --## EXCEL - funky VBA then uses the selected list item in sheet1, takes the new data in the input cells (sheet1) and copies these into the sheet2 into the appropriate columns based on the selection in the list lookup on sheet1

    This is now green fields as I have gone through too many other peoples code and try to make it work - so I have given up and asking for help now :-(

    I am happy to host a form on the sheet2 if that makes it easier, or have it as standard fields on another sheet...

    TIA
    Lee

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Vlookup and insert new data into existing row

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    04-13-2013
    Location
    Wellington
    MS-Off Ver
    Excel 2003
    Posts
    5

    Arrow Re: Vlookup and insert new data into existing row

    Thanks davesexcel for your fast responce!

    my bad! Please find attached an example.

    I have coloured the cells in red on sheet1 that I want to insert data into.
    These red cells will then be "copied" to the corresponding cells in sheet2 based on the selection made in cell A2 in sheet1 (list drop down)
    So if I select "C" in cell A2 on sheet 1 it populates B2 and C2, then I want to enter the data into circuit and logical1 and logical 2.

    Press a button of some form (I can create that easy enough). its the coding on the button to select cells D2:F2 and paste them into sheet2 D:F based on the matching "device"

    I hope that makes sence?

    Cheers

    Lee

    Book1.xls

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Vlookup and insert new data into existing row

    Check it out.

    Hit Alt & F11 to open the VBA editor, you will find the code there.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-13-2013
    Location
    Wellington
    MS-Off Ver
    Excel 2003
    Posts
    5

    Talking Re: Vlookup and insert new data into existing row

    You're a scholar and a gent!

    Thank you so much my hair can start to grow back now! :-D

    Problem solved.

+ 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. Insert row to existing table from userform data macro
    By akhalifa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-11-2013, 12:23 AM
  2. Replies: 3
    Last Post: 08-16-2012, 01:31 AM
  3. Insert Number After Existing Data?
    By Mick2011 in forum Excel General
    Replies: 3
    Last Post: 11-30-2011, 03:30 AM
  4. Insert rows between existing data
    By Tickla in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-20-2010, 03:30 AM
  5. Use excel to insert data at the bottom of existing data
    By Mike Lines in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2005, 11:05 AM

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