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
*correction "I do NOT want it to generate a table..."
What's the formula you're using now?
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
{=IFERROR(INDEX('Sheet2'!$A$2:A$401,MATCH("YES",IF('Sheet2'!$J$2:$J$401='Sheet1'!$A11,'Sheet1'!Q$2:Q $401,""),0)),"")}
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
It half worked... it displays "oops" when there ii more than one, but now it also displays oops when there is less than one....
And you would prefer that it show ...?
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks