+ Reply to Thread
Results 1 to 9 of 9

2 workbooks and matching data

  1. #1
    Registered User
    Join Date
    04-10-2012
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    5

    2 workbooks and matching data

    Hello,

    I have an excel file that has 6 Worksheets which have various other formuals already built into them.
    I am working with 2 of the worksheets to try and create another formula.
    What I want is to be in worksheet 2 and have excel match in worksheet 1 and 2 the SIN numbers of our employees.
    Then I want excel to find the corresponding department that goes with that specific SIN number in sheet 1 and put it in sheet 2 under the department tab

    Sheet 1
    A - Departments
    G- SIN's

    Sheet 2
    A - Departments
    G - SIN's

    I have this formula but it does not give me the exact department that corresponds to the SIN number, it just gives me the next department code in the list from Sheet 1, because in Sheet 1 the person is listed twice in a row but not in sheet 2.
    =IF(MATCH($G8,'Detail Report'!$G$7:$G$209,0),'Detail Report'!$A7,0)

    Please help

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: 2 workbooks and matching data

    in Sheet 1 the person is listed twice in a row but not in sheet 2.
    Do both the entries for a person in Sheet1 have 2 different departments?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    04-10-2012
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: 2 workbooks and matching data

    no the same departments

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: 2 workbooks and matching data

    You should use vlookup. Have you tried it? If you are still having issues, maybe try uploading a sample file and we can identify the problem and help you out.

  5. #5
    Registered User
    Join Date
    04-10-2012
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: 2 workbooks and matching data

    okay so i would just use vlookup or I would combine with a match formual?

    Thanks for your help Arlette

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: 2 workbooks and matching data

    Just try with a simple vlookup.

  7. #7
    Registered User
    Join Date
    04-10-2012
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: 2 workbooks and matching data

    okay thanks

  8. #8
    Registered User
    Join Date
    04-10-2012
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: 2 workbooks and matching data

    It is still not giving me the excat department that corresponds to the persons sin number, it is just giving me the next department in the row.

    =VLOOKUP('Detail Report'!A8,'Detail Report'!A7:G208,1,FALSE)
    is the formula incorrect. I can not move the columns around because there are other formulas built into those columns.

    also the 1st sheet is called Detail Report, 2nd sheet is called per preson detail report.

    thanks again for all your help

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: 2 workbooks and matching data

    It would be better if you attach a sample of your file.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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