+ Reply to Thread
Results 1 to 10 of 10

Combining two sets of data

  1. #1
    Registered User
    Join Date
    08-27-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Combining two sets of data

    Hi this is my first time posting in these forums, I'm helping a non-profit organization enter their kids into a database.. I'm trying to combine two sets of data. I have already entered the first set which is students first and last names. I have another excel document that has their id numbers (as well as their first and last names). Is it possible to create a function that will search the entire second document and if the students first and last names match copy the id number to a column in the first document? I appreciate the help, this would really be beneficial if this is indeed possible.

    Also if it's easier I can copy the second document into separate columns in the first document.

    I'm using excel 2007.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    re: Combining two sets of data

    Is the ID an actual number or is it alphanumeric?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-27-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Combining two sets of data

    An actual number. Does excel have a search function where I could search through a selected area and perform an action if the search is successful?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Combining two sets of data

    There are several functions that could be used.. but since you are returning a number and assuming there are unique records in the search database, then Sumproduct() would be the easiest to apply...

    e.g

    =Sumproduct(--('[Database.xls]Sheet1'!$A$2:$A$100=A2),--('[Database.xls]Sheet1'!$B$2:$B$100=B2),'[Database.xls]Sheet1'!$C$2:$C$100)

    this looks for matches the Database.xls book within columnns A and B for matches to A2 and B2 first/last names and then returns value (ID) from column C.

  5. #5
    Registered User
    Join Date
    08-27-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Combining two sets of data

    Thank you so much for the help. I didn't realize excel was capable of such things. Is it possible to to have the row number automatically update depending on which row the formula was in? So that I could assign it to a column rather than an individual cell?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Combining two sets of data

    Not quite sure what you mean? Can you elaborate?

    You know you can copy/fill the formula down a column and the cell references will automatically change to corresponding row, right? Is that what you mean?

  7. #7
    Registered User
    Join Date
    08-27-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Combining two sets of data

    Quote Originally Posted by NBVC View Post
    Not quite sure what you mean? Can you elaborate?

    You know you can copy/fill the formula down a column and the cell references will automatically change to corresponding row, right? Is that what you mean?
    That is what I meant, thank you so much for all your help.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Combining two sets of data

    You're welcome,

    Please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  9. #9
    Registered User
    Join Date
    08-27-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Combining two sets of data

    The formula worked perfectly, I have a quick question. If I want to copy a word rather than a number for the id, what needs to be changed?

    Also, if I email the excel document with the formulas, will the recipient need the second excel document the formulas refer to, or is there a way to finalize the formula results so that they cannot change?
    Last edited by chrmlr2; 08-28-2009 at 02:03 PM.

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Combining two sets of data

    It would be a different formula entirely...

    Using same parameters as before...

    Please Login or Register  to view this content.
    Note: This formula will work to pull numbers or text from C2:C100...

    If you email the doc., the receiver must choose not to update links when asked...

    Or you can copy the sheet and paste special over itself selecting Values and formats... this will keep the formats and change the formula results to hard coded numbers.

+ 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