+ Reply to Thread
Results 1 to 5 of 5

Match cell content with another file, and return the value from the next column over

  1. #1
    Registered User
    Join Date
    07-24-2012
    Location
    Baltimore
    MS-Off Ver
    Excel for Mac 2011
    Posts
    45

    Match cell content with another file, and return the value from the next column over

    Hi there.

    I have two files. They both have US census tract numbers in a column GEOID2010. One also has a CSA2010 text description associated with each census tract.

    I need to match the cell with a census tract in the first file (example1).xlsx with the census tracts in the second file (example2.xlsx), and then return the CSA2010 text from the next column over to the first file.

    I've attached two example files.

    Thanks for any help you might have!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Match cell content with another file, and return the value from the next column over

    Try this =INDEX([example2.xlsx]Sheet1!$C$2:$C$21,MATCH(B2,[example2.xlsx]Sheet1!$B$2:$B$21,0))

    change the references according to your requirement.
    If this solves your query then click" * " in the bottom left corner of my post and mark thread as solved

  3. #3
    Registered User
    Join Date
    07-24-2012
    Location
    Baltimore
    MS-Off Ver
    Excel for Mac 2011
    Posts
    45

    Re: Match cell content with another file, and return the value from the next column over

    Thanks for the reply. It works great in the example files I provided, but when I put it into the actual files it returns #NA. I have gone over and over the formula and have now idea where the error is. Any thoughts on a likely suspect?

  4. #4
    Registered User
    Join Date
    07-24-2012
    Location
    Baltimore
    MS-Off Ver
    Excel for Mac 2011
    Posts
    45

    Re: Match cell content with another file, and return the value from the next column over

    Here's what the formula looks like transferred to the actual file:
    =INDEX([CensustoCSA.xlsx]CensusCSA!$C$2:$C$201,MATCH(B2,[CensustoCSA.xlsx]CensusCSA!$B$2:$B$201,0))
    and I'm just getting #NA

  5. #5
    Registered User
    Join Date
    07-24-2012
    Location
    Baltimore
    MS-Off Ver
    Excel for Mac 2011
    Posts
    45

    Re: Match cell content with another file, and return the value from the next column over

    Figured it out: missing data! Thanks! Solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Match Cell Content and Delete Cell Content If a Match is Found
    By aviatecar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2013, 01:29 PM
  2. [SOLVED] Match cell value and return another column value
    By thinkspac in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-21-2012, 01:15 PM
  3. Replies: 10
    Last Post: 06-10-2012, 03:55 PM
  4. [SOLVED] Return a specific column of data depending on the content of a cell
    By Herr Rommel in forum Excel General
    Replies: 2
    Last Post: 05-07-2012, 02:21 PM
  5. [SOLVED] Highlight a cell if its content doesn't match another cells content
    By noxygen in forum Excel General
    Replies: 4
    Last Post: 04-12-2012, 04:36 AM

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