+ Reply to Thread
Results 1 to 8 of 8

Inserting data from one sheet to another based on same ID

  1. #1
    Registered User
    Join Date
    10-17-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    4

    Lightbulb Inserting data from one sheet to another based on same ID

    Hi!

    I would be glad to get help on this isse-googeling has so far not solved it for me.

    I have two Excelsheets-which both contain multiple columns. The leftmost column (A-column) in both sheets contains "ID", and this is the basis for the operation I want to carry out.


    I want to insert data in column B (sheet 1) based on column B (sheet 2). What rows to pick data from should depend upon the matching of the ID between column A in sheet 1 and 2.

    In other words- if the ID is 100002 I need to return corresponding values for that ID into the other sheet. All IDs exist in both sheets-but sheet 1 contain duplicates.


    Help is greatly appreciated!


    Regards,
    Maria

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Inserting data from one sheet to another based on same ID

    Welcome to the forum!

    So if sheet 1 contains duplicates, how do you want to handle this?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-17-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    4

    Re: Inserting data from one sheet to another based on same ID

    Thank you!

    I want the duplicates to stay just as they are. In other words-no other formatting than inserting values corresponding to the same ID in another sheet.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Inserting data from one sheet to another based on same ID

    This doesn't answer my question - sorry!

    You had better attach a sample workbook showing what you want (mock up a few lines of data manually showing how you want the duplicate IDs to show on the second sheet).

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

  5. #5
    Registered User
    Join Date
    10-17-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    4

    Re: Inserting data from one sheet to another based on same ID

    I will try to insert the two sheets as images below. So the columns (B,C) in red in sheet2 I want to be filled in automatically based on data in sheet 1.
    I wrote the red entries manually just to clarify how I want the outcome to look.
    Attached Images Attached Images
    Last edited by MaraF; 10-17-2018 at 06:34 AM.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Inserting data from one sheet to another based on same ID

    No, I asked you to attach the workbook - NOT a picture of it. Instructions are in my previous post. Please provide what we ask you for - it will speed things up.

  7. #7
    Registered User
    Join Date
    10-17-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    4

    Re: Inserting data from one sheet to another based on same ID

    I worked it out now, using VLOOKUP. Yay! Thanks anyway!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Inserting data from one sheet to another based on same ID

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Inserting Rows Based on Values in Different Sheet
    By le.gibson13 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-25-2017, 01:06 PM
  2. [SOLVED] Inserting a sheet row based on condition
    By TMNuclear in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2015, 11:11 AM
  3. Replies: 0
    Last Post: 05-20-2014, 11:58 AM
  4. [SOLVED] [Urgent] Inserting Time sheet Data in to Master sheet Based On the Condition Using Macros.
    By kkcmania in forum Excel Programming / VBA / Macros
    Replies: 42
    Last Post: 05-17-2013, 07:56 AM
  5. Replies: 1
    Last Post: 08-19-2009, 05:22 AM
  6. Inserting image in Excel sheet based on EMP ID
    By viswanadh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-10-2008, 12:03 PM
  7. Inserting Data from another sheet based on Listbox Selection
    By Borg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2006, 12:52 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