+ Reply to Thread
Results 1 to 6 of 6

Pull info from 1 worksheet into another - not a one-to-one relationship

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2003
    Posts
    3

    Pull info from 1 worksheet into another - not a one-to-one relationship

    So, I have one worksheet with 238 rows and another with 163 rows. I want to pull information into the sheet with 238 rows whenever there is a match to a record in the 163 rows. I tried VLookup, but as soon as it gets to a record in the 238 that doesn't exist in the 163 it gives errrors and stops. I've looked at =offset and =offset(match) but I'm not finding anything that deals with the situation of not always being a one-to-one (or even one-to many) relationship. Ultimately I want to pull the Category & Project fields into the records matching on IDNumb in Sheet 1 but Sheet 1 has more records than Sheet2

    example
    Sheet 1 Sheet 2
    IDNumb Descrip IDNumb Category Project
    Last edited by VBA Noob; 03-06-2009 at 02:00 PM. Reason: Solved !!!!!!!

  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: Pull info from 1 worksheet into another - not a one-to-one relationship

    Go ahead and mock up a full example of what you're trying to do, and don't simplify down too far. Make sure enough data and enough "sample results" are shown to clearly demonstrate your need. This sound pretty straightforward, but people frequently leave out things until they put together a good visual example, so post it up here for us to look at.

    GO ADVANCED on your next post and click on the paperclip to attach your workbook.
    _________________
    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
    Registered User
    Join Date
    03-05-2009
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2003
    Posts
    3

    Red face Re: Pull info from 1 worksheet into another - not a one-to-one relationship

    Thanks for the help. I'm new to this forum (in case you couldn't tell). I've cut down my worksheets to a smaller data set but you'll see what I'm trying to do. I'm trying to get the category and overall project codes into Sheet1. Any suggestions would be greatly appreciated. I figure there has to be a way. Ultimately, the records in Sheet 1 that don't have a match, I'll need to add to the sheet 2 Master list and add a category and overall project to them
    Attached Files Attached Files

  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: Pull info from 1 worksheet into another - not a one-to-one relationship

    I shaded the cells I added the 3 formulas into. Does this work for you?

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]
    Last edited by JBeaucaire; 03-06-2009 at 01:11 PM. Reason: Removed book, use one further down.

  5. #5
    Registered User
    Join Date
    03-05-2009
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2003
    Posts
    3

    Smile Re: Pull info from 1 worksheet into another - not a one-to-one relationship

    THANK YOU, THANK YOU, THANK YOU -- you have no idea how much time I have spent on trying to figure this out. Others in the office told me it couldn't be done and that didn't make sense to me. I just happened on this forum yesterday afternoon and have marked it as a favorite now.

    I don't know if you are a rocket scientist but you definitely ROCK!

  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: Pull info from 1 worksheet into another - not a one-to-one relationship

    Hey, here's a followup. I remembered you said you needed to gather the ERROR items together, so here's the sheet again, this time with a second section that will gather the error items together in a single table.

    You can copy the new items as a group, EDIT > PASTE SPECIAL > VALUES at the bottom of your MasterSPRList and fill in the missing data. This would also instantly remove them from the "new items" list.

    Just to show them that it could be done. Check out this version and see how I did it.
    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)

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