+ Reply to Thread
Results 1 to 7 of 7

Thread: Index and Match: I dont HAVE an error message, I WANT one.

  1. #1
    Registered User
    Join Date
    12-10-2011
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    5

    Question Index and Match: I dont HAVE an error message, I WANT one.

    Hello everyone,

    First post.

    I want my Index and Match formula to give me an error if it returns more than one result. I do not want it to generate a table with the extra results or anything that keeps the extra data. I want one result. I understand the 0 or 1 at the end of the Match criteria, do not want it. I want an error. I am sure that is not said too much around here.

    The next best thing would be for the multiple data to be listed in a single sell, not a table.

    Is there a fix or can anyone point me in the direction of a function that I can use. IT HAS TO BE PART of the existing formula because I am running about 50 individual index and match functions that are in need of the same error checking.

    Thank you in advance.
    Last edited by dasafacjack; 12-10-2011 at 01:41 PM. Reason: forgot word

  2. #2
    Registered User
    Join Date
    12-10-2011
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    5

    Re: Index and Match: I dont HAVE an error message, I WANT one.

    *correction "I do NOT want it to generate a table..."

  3. #3
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,772

    Re: Index and Match: I dont HAVE an error message, I WANT one.

    What's the formula you're using now?
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    12-10-2011
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    5

    Re: Index and Match: I dont HAVE an error message, I WANT one.

    {=IFERROR(INDEX('Sheet2'!$A$2:A$401,MATCH("YES",IF('Sheet2'!$J$2:$J$401='Sheet1'!$A11,'Sheet1'!Q$2:Q $401,""),0)),"")}

  5. #5
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,772

    Re: Index and Match: I dont HAVE an error message, I WANT one.

    Maybe ...

    =IF(COUNTIFS(Sheet2!$J$2:$J$401, Sheet1!$A11, Sheet1!Q$2:Q$401, "YES") <> 1, "Oops",
    INDEX(Sheet2!$A$2:A$401, MATCH("YES", IF(Sheet2!$J$2:$J$401=Sheet1!$A11, Sheet1!Q$2:Q$401), 0)))
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    12-10-2011
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    5

    Re: Index and Match: I dont HAVE an error message, I WANT one.

    It half worked... it displays "oops" when there ii more than one, but now it also displays oops when there is less than one....

  7. #7
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,772

    Re: Index and Match: I dont HAVE an error message, I WANT one.

    And you would prefer that it show ...?
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0