+ Reply to Thread
Results 1 to 3 of 3

Match function

  1. #1
    Registered User
    Join Date
    11-11-2004
    Posts
    1

    Match function

    I am using the match function to look up a list of names in a tab on my spreadsheet. Next I want to return the project number in the same row, but 15 columns to the left in another tab in my workbook. The relative reference part is not working. If I ask the a number is put in the cell it works just fine, but I want to use the value to the far left of the same row.

    =IF(ISNUMBER(MATCH("*"&C4&"*",MPL!Q1:Q32,0)),RC[-15],"")

    Thank you,

    Robin

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Match function

    Robin,

    Welcome to the forum!
    Attached is an example workbook based on the criteria you described.
    In cell D4 is uses this formula:
    Please Login or Register  to view this content.

    Does that work for you?
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Match function

    Use INDEX with MATCH, like this:

    =IF(ISNA(MATCH("*"&C4&"*",MPL!Q1:Q32,0)),"",INDEX(MPL!A1:A32,MATCH("*"&C4&"*",MPL!Q1:Q32,0)))

    or:

    =IF(COUNTIF(MPL!Q1:Q32,"*"&C4&"*")=0,"",INDEX(MPL!A1:A32,MATCH("*"&C4&"*",MPL!Q1:Q32,0)))

    or, if you are using XL2007 or later:

    =IFERROR(INDEX(MPL!A1:A32,MATCH("*"&C4&"*",MPL!Q1:Q32,0)),"")

    Hope this helps.

    Pete
    Last edited by Pete_UK; 04-29-2013 at 01:19 PM.

+ 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