+ Reply to Thread
Results 1 to 8 of 8

Matching data between two sheets

  1. #1
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89

    Matching data between two sheets

    Hi


    I have som problem matching data between two sheets.

    Sheet A is where the data should be filled out based on raw data in sheet B. The only match I have is the JobID number. So If JobID in Sheet A and Sheet B match, copy the values in selected columns from sheet B to A

    In some cases it is possible that the raw data (sheet B) has more JobID`s than in sheet B, and if that is true, I would like to add it as a new job in Sheet A (after last row). I have made an example in uploaded sheet that explains it more in details.

    Thanks for any help!

    Elad
    Attached Files Attached Files

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    You need Vlookup, here is a link to explain more

    http://www.contextures.com/xlFunctions02.html

    See also attached
    Attached Files Attached Files
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89
    Thanks a lot, I shall try that. But what about that problem IF not the JobID does not exist? Any solution to that?

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    I've adjusted the formula where no match is found
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89
    Hi and thanks again.

    Its almost right, but the JobID is "unknown" for sheet A. Sheet B is always the sheet where the Job is placed first. So it never happens that a jobID in Sheet A not is in Sheet B.

    So if the jobID in Sheet B does not find the matching JobID in Sheet A, it shal copy it in to Sheet A (selected collumns, JobID, Customer, Employee...etc. ) as a new row (after the last used row)

    Elad

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi Elad,

    The easiest way to see whether the ID is on SheetB, but not on SheetA, is to put this in M8 in your example

    =IF(ISERROR(VLOOKUP(G8,$A$8:$A$12,1,FALSE)),"Not on SheetA","")

    This will flag up any ID's that are missing in SheetA, then you can go to SheetA and put the ID's in.

  7. #7
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89
    Hi

    I think i will go for that solution. The only thing I have to do manually is to enter the JobID in sheet A, and then the rest will be autofilled.

    Thanks again for great help.

    Elad

  8. #8
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    No problem - thanks for the feedback

+ 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