+ Reply to Thread
Results 1 to 9 of 9

Help matching one cell to another in a range

  1. #1
    Registered User
    Join Date
    04-30-2007
    Posts
    31

    Help matching one cell to another in a range

    Hello,

    I have two worksheets that I am working with. Worksheet A and Worksheet B both have common IDs that I am trying to match against each other. My goal is for WkstA to look at the cell on that wkst (A9, for example), look to see if it is contained within a range on WkstB (B4:B90), and if there is a match just return something simple back on WkstA like "Yes" or 1 works, I dont really care.

    I tried an IF statement, but had no success. Any help?

    Thanks.
    Last edited by oxyron; 11-01-2011 at 10:54 AM.

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

    Re: Help matching one cell to another in a range

    Try

    =--ISNUMBER(MATCH(A2,'WkstB'!$B$4:$B$90,0))

    copied down

    adjust sheetname if necessary.

    this will return 1 if found, and 0 if not found.
    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
    04-30-2007
    Posts
    31

    Re: Help matching one cell to another in a range

    Didnt work. Maybe I should have been more clear, these IDs are words and not numbers ie. WilsonTrust or SmithRFam.

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

    Re: Help matching one cell to another in a range

    It should not matter if you are checking numbers or text.. the ISNUMBER() function is checking the result of the MATCH() function, not the cell content.

    Are you sure the sheetname matches exactly? Are you sure the matches are exact in both sheets? Have you double-checked the references and ranges?

  5. #5
    Registered User
    Join Date
    04-30-2007
    Posts
    31

    Re: Help matching one cell to another in a range

    Heres exactly what I am using:

    Please Login or Register  to view this content.
    And I am 100% sure the IDs are identical. Its returning all 0's, no 1's. I even double-checked by replacing a cell on each sheet with something simple like "AA" to see if it would work.

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

    Re: Help matching one cell to another in a range

    AcrFA52.xlsx is a workbook name, not a sheetname.... that is the problem

    Maybe:

    =--ISNUMBER(MATCH(C9,'[AcrFA52.xlsx]Sheet1'!$B$4:$B$82,0))

    adjusting the sheetname to match the lookup workbook's sheet.

  7. #7
    Registered User
    Join Date
    04-30-2007
    Posts
    31

    Re: Help matching one cell to another in a range

    To try and eliminate potential causes of the problem, I merged the two into one workbook, two different sheets. Sorry for the confusion. Here is where I am at now:

    Please Login or Register  to view this content.
    Still having issues though.

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

    Re: Help matching one cell to another in a range

    What exactly is the issue? I.E. what result are you getting?

  9. #9
    Registered User
    Join Date
    04-30-2007
    Posts
    31

    Re: Help matching one cell to another in a range

    Sigh. Don't worry about it, you were right. My ID's were correct, however the file I had exported from a PDF and needed to trim the cells as they had extra spaces in them. Thanks for the help NBVC, you were spot on.

+ 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