Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Match first instance that does not equal specified string

Tags:

excel

How can I get the position of the first instance in a range that does not equal a specified string?

With the following content in cells A1:A5:

Yes
Yes
Hrmpf
Yes
No

I would like to get the value 3.

My best (failed) attempt at solution was:

=MATCH("<>"&"YES",D8:D32,0)

which produces:

#N/A
like image 591
user1283776 Avatar asked Dec 03 '25 15:12

user1283776


1 Answers

I have done this before using an array formula (which requires you to confirm it using CTRL+SHIFT+Enter).

=MATCH(FALSE,A1:A6="Yes",0)

like image 161
basodre Avatar answered Dec 05 '25 13:12

basodre



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!