+ Reply to Thread
Results 1 to 11 of 11

transfer data from sheet two into sheet 1

  1. #1
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    transfer data from sheet two into sheet 1

    I have two sheets in excel workbook. Sheet2 has a list of number in col A and the corresponding data in col B C D E F. In sheet one, I want to type a number that exist in col A of sheet 2 and it automatically populate the correspond data in col B C D E F from sheet2 into sheet1.

    Thanks

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: transfer data from sheet two into sheet 1

    This is a standard need, I use INDEX/MATCH for it, you can also use VLOOKUP() or LOOKUP() (if your data is ordered).

    Here's a sample
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    Re: transfer data from sheet two into sheet 1

    Thank you so very much

    -LN

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: transfer data from sheet two into sheet 1

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

  5. #5
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    Re: transfer data from sheet two into sheet 1

    What happen when a number appear twice in column A and it has two corresponding row of data?

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: transfer data from sheet two into sheet 1

    The whole point of an INDEX/MATCH is to find the one row of matching data to bring across needed info, like an address book or similar.

    If you're needing to enter a single item and have it return a list of matching rows, this is different. INDEX/MATCH will need more instructions.

    So mockup a sample workbook showing the dilemma and your desired results, point out where the results came from if not obvious in your sample data. Your example should properly demonstrate your needs in regard to multiple matches.

    Click GO ADVANCED and use the paperclip icon to post up your workbook.

  7. #7
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    Re: transfer data from sheet two into sheet 1

    Hi,

    As you can see in the attached workbook, there are two matches for number 139 in the "Codes" sheet. I want it to list all matches in "main" sheet when I type 139 there.

    IndexMatch-Simple.xls

    Thanks
    VB

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: transfer data from sheet two into sheet 1

    So, we need to add another column to your "data" sheet (CODES in this sample) that watches for your currently wanted code and indexes all the matching rows on the data sheet.

    With a unique sequential index, we can pull all the matching rows over with those values.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    Re: transfer data from sheet two into sheet 1

    How come I could only enter the number once? Can you fix it so I can enter the next number on the list too?

    Thanks

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: transfer data from sheet two into sheet 1

    EDIT:

    This isn't a macro, it's been keyed to watch the one value you enter and index the DATA sheet by that entry.

    If you're going to want to enter a number anywhere in column A and get a list of any length next to it, then enter another value and get another list, then this example goes out the door. That would most likely have to be a macro.
    Last edited by JBeaucaire; 09-03-2009 at 01:50 PM.

  11. #11
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    Re: transfer data from sheet two into sheet 1

    Thank you very much sir

+ 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