+ Reply to Thread
Results 1 to 17 of 17

Need to merge data from two worksheets automatically

  1. #1
    Registered User
    Join Date
    01-12-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    7

    Need to merge data from two worksheets automatically

    Hey all,

    First off, I would appreciate it if I could be directed to the right forum and place to ask my question:

    I would like to combine two data from two worksheets. Because I have so much data I need excel to:
    1)find the text that matches from column A of both worksheets (1 & 2)
    2)import columns B through E from the corresponding matched text from worksheet 2 into columns F through I in worksheet 1.

    In the attachment the goal of this representative sample is to place from worksheet 2
    76076 19900216 1984 .
    into columns F through I in worksheet 1, so that the completed column looks like this
    Cisco Systems 19900216 3577 No 18.000 76076 19900216 1984 .



    Thanks way in advance for you help and I will try my best to follow instructions as they are politely presented,

    Zach
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need to merge data from two worksheets automatically

    In F2 cell of Sheet 1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag it down and right.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Need to merge data from two worksheets automatically

    Hi Zachzach and welcome to the forum - the forum you selected is just fine

    based on the data you supplied, you can use this formula, copied down. copy it across, but change the 3 (bolded) to match the column you want to use. If you had headings in each of the tables, you could have used index/match/match, and copied it down and across without the need for manually adjusting the column number

    =IFERROR(VLOOKUP($A2,'2'!$A$1:$I$8,B,FALSE),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Need to merge data from two worksheets automatically

    Hi zachzach,
    You can try this solution:

    Put this formula into cell F2 of sheet 1 then fill down and fill right
    Please Login or Register  to view this content.
    Regards
    huuthang

  5. #5
    Registered User
    Join Date
    01-12-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need to merge data from two worksheets automatically

    Sixth Sense
    "In F2 cell of Sheet 1

    Formula:
    =IFERROR(VLOOKUP($A2,'2'!$A:$D,COLUMN(B$1),FALSE),"")
    Drag it down and right."

    This works but now I need to use this formula on my actual file and not the sample. What values do I need to change or update?

    FDibbins
    When I try your formula I am prompted to open a file. How should I proceed?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Need to merge data from two worksheets automatically

    impossible to say without seeing what data/layout you are working with. the vlookup syntax is...
    =VLOOKUP(what-you-want-to-find,range-to-search-in,column-that-contains-the-match,FALSE) FALSE is for finding an exact match

  7. #7
    Registered User
    Join Date
    01-12-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need to merge data from two worksheets automatically

    FDibbins et al,
    Because this is publically available info, and the quick response and professionalism, I've attached the workbooks that I'm trying to merge.

    Thanks again for your help.
    https://www.dropbox.com/s/t1qpme2zul...kbook%201.xlsm

  8. #8
    Registered User
    Join Date
    01-12-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need to merge data from two worksheets automatically

    I need to be able to automatically search for the name and then input the three fields Perm, Founding Date, and Rollup Dummy. The sheet entitled jaypost(sorry forgot to change it) is the one that I want to keep.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Need to merge data from two worksheets automatically

    try this, copied down and across...
    =INDEX(Sheet1!Copy_of_age7511020612,MATCH(jaypost!$A2,Sheet1!$C$1:$C$9397,0),MATCH(jaypost!F$1,Sheet1!$A$1:$E$1,0))

    edit: for future reference, please upload your files on the forum, not on another web-site. not every-one can access websites like drop-box (for instance, i can access it at home - now, but not from work)

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Last edited by FDibbins; 01-12-2013 at 03:37 AM.

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need to merge data from two worksheets automatically

    In Jaypost Sheet

    In F2 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In G2 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In H2 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The above formula's are same, just change in output Column #

  11. #11
    Registered User
    Join Date
    01-12-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need to merge data from two worksheets automatically

    FDibbins
    Is there any way to remove the N/A error? or make it so that I don't see it?

    SixthSense
    Still trying yours...hold on.

    You guys are pro.

  12. #12
    Registered User
    Join Date
    01-12-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need to merge data from two worksheets automatically

    FDibbins
    Thanks for the heads up about the attachment.

    Sixth Sense
    I suppose I have the same question. Is there a way for me to hide a small script symbol that I get?

    Other than that both of these formulas work perfectly. I will definitely be promoting this forum as much as possible and also if there is a way to rate each of you let me know. Thanks

  13. #13
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need to merge data from two worksheets automatically

    It's better you should stick with FDibbins Formula

    To Mask Error of the FDibbin Formula
    =IFERROR(FDibbinsFormula,"")

  14. #14
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need to merge data from two worksheets automatically

    Quote Originally Posted by zachzach View Post
    Is there a way for me to hide a small script symbol that I get?
    Don’t know what do you mean by this word small script symbol

  15. #15
    Registered User
    Join Date
    01-12-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need to merge data from two worksheets automatically

    It was a small picture that appeared in each cell. It might have been related to some excel notification setting that's turned on. I don't really know. That's ok though. I am going with FDibbins formula. Thank you both very very much.

  16. #16
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need to merge data from two worksheets automatically

    It might have been related to some excel notification setting that's turned on
    If possible please attach a screenshot to fix it...

  17. #17
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Need to merge data from two worksheets automatically

    Thanks for the back-up Six

    zach, I have seen those little "icon" things before too. I think they get pulled across sometimes if you copy/paste things from here - but only on a very few occasions. I dont know what triggers it, and I just tried to copy both Six's and my formulas, and did get it this time. I just delete it when I get it.

    Happy to help and thanks for the rep and kind words - always appreciated

+ 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