+ Reply to Thread
Results 1 to 2 of 2

Need to compare columns in different worksheets. Help!

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Springfield
    MS-Off Ver
    Excel 2003
    Posts
    1

    Need to compare columns in different worksheets. Help!

    Help! I have only rudimentary knowledge of excel, but I know there must be a way to do this. I have two worksheets: GRANTS and UPDATES. GRANTS is my total project list. UPDATES lists SOME of projects as GRANTS, but with an additional column that includes a status update. Not every project from GRANTS is on UPDATE. Each worksheet has an ID# column. I would like to compare the ID# column in GRANTS & UPDATES and if they have the same #, have the status from UPDATES put in a new column with the corresponding ID# in GRANTS worksheet. Help!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Need to compare columns in different worksheets. Help!

    Hi and welcome to the forum

    From the sounds of it, you can probably do this with a vlookup(). the syntax is...
    =VLOOKUP(what-you-want-to-find,range-to-search-in,column-that-contains-the-match,FALSE) FALSE is for finding an exact match

    so, assuming ID is in column A on each sheet and "status update" is in column E...
    =VLOOKUP(A2,'Sheet2'!$A$2:$E$12,5,FALSE)
    If you want to error trap (ie, hide the errors for a "not found") then use this.
    for 2003...
    =iferror(VLOOKUP(A2,'Sheet2'!$A$2:$E$12,5,FALSE),"",VLOOKUP(A2,'Sheet2'!$A$2:$E$12,5,FALSE))
    for 2007 onwards...
    =iferror(VLOOKUP(A2,'Sheet2'!$A$2:$E$12,5,FALSE),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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