+ Reply to Thread
Results 1 to 3 of 3

If INDEX,MATCH function returns 0, can I change it to use value from adjacent cell?

  1. #1
    Registered User
    Join Date
    03-03-2009
    Location
    Gainesville, FL
    MS-Off Ver
    Excel 2002 SP3
    Posts
    39

    If INDEX,MATCH function returns 0, can I change it to use value from adjacent cell?

    Hi,

    If a INDEX,MATCH function returns a zero, how do I get it to use the value in the adjacent cell which is a unique number?

    =INDEX(Sheet2!A:C,MATCH(A2,Sheet2!A:A,0),3)

    Example:
    Please Login or Register  to view this content.
    To change the 0 in B3 to whatever is in A3.

    Thanks,
    Chris
    Last edited by giallofever; 03-16-2009 at 01:09 PM.

  2. #2
    Registered User
    Join Date
    02-19-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    37

    Re: If INDEX,MATCH function returns 0, can I change it to use value from adjacent cel

    How about an If statement?

    =if(INDEX(Sheet2!A:C,MATCH(A2,Sheet2!A:A,0),3)=0,A1,INDEX(Sheet2!A:C,MATCH(A2,Sheet2!A:A,0),3))

  3. #3
    Registered User
    Join Date
    03-03-2009
    Location
    Gainesville, FL
    MS-Off Ver
    Excel 2002 SP3
    Posts
    39

    Re: If INDEX,MATCH function returns 0, can I change it to use value from adjacent cel

    Thank you for the formula. I was looking between IF, ISERROR, etc.

    =IF(INDEX(Sheet2!A:C,MATCH(A2,Sheet2!A:A,0),3)=0,A2,INDEX(Sheet2!A:C,MATCH(A2,Sheet2!A:A,0),3))

    Problem is SOLVED!

    Thanks,
    Chris

+ 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