Excel Matching problem with logic expression

Posted by abelenky on Stack Overflow See other posts from Stack Overflow or by abelenky
Published on 2010-04-09T22:18:11Z Indexed on 2010/04/09 22:23 UTC
Read the original article Hit count: 296

Filed under:
|
|

(I understand Excel is only borderline programming)

I have a block of data that represents the steps in a process and the possible errors:

ProcessStep   Status
FeesPaid      OK
FormRecvd     OK
RoleAssigned  OK
CheckedIn     Not Checked In.
ReadyToStart  Not Ready for Start

I want to find the first Status that is not "OK".

I have attempted this:

=Match("<>""OK""", StatusRange, 0)
which is supposed to return the index of the first element in the range that is NOT-EQUAL (<>) to "OK"
But this doesn't work, instead returning #N/A.

I expect it to return 4 (index #4, in a 1-based index, representing that CheckedIn is the first non-OK element)

Any ideas how to do this?

© Stack Overflow or respective owner

Excel Matching problem with logic expression

Posted by abelenky on Super User See other posts from Super User or by abelenky
Published on 2010-04-09T22:24:49Z Indexed on 2010/04/09 22:33 UTC
Read the original article Hit count: 296

Filed under:
|
|
|

I have a block of data that represents the steps in a process and the possible errors:

ProcessStep   Status
FeesPaid      OK
FormRecvd     OK
RoleAssigned  OK
CheckedIn     Not Checked In.
ReadyToStart  Not Ready for Start

I want to find the first Status that is not "OK".

I have attempted this:

=Match("<>""OK""", StatusRange, 0)
which is supposed to return the index of the first element in the range that is NOT-EQUAL (<>) to "OK"
But this doesn't work, instead returning #N/A.

I expect it to return 4 (index #4, in a 1-based index, representing that CheckedIn is the first non-OK element)

Any ideas how to do this?

© Super User or respective owner

Related posts about excel

Related posts about function