![]() |
Using MATCH() for an exclusive find?
Gang -
Not the end of the world (and I made a work around with a T/F helper column) but I was wondering if there is a way to use MATCH() to find an opposite condition. For example, I have a column of attributes. 98% of them are "Large", 2% of them are almost anything else, and not consistent. I was looking for a syntax sort of like: =MATCH(NOT("Large"),A:A,0) That's the idea, anyway, but that doesn't work ;-) Just curious. Thanks. ....best, Hash |
wrote...
.... opposite condition. For example, I have a column of attributes. 98% of them are "Large", 2% of them are almost anything else, and not consistent. I was looking for a syntax sort of like: =MATCH(NOT("Large"),A:A,0) That's the idea, anyway, but that doesn't work ;-) It requires an array formula, so it can't operate on entire columns. =MATCH(FALSE,A1:A65535="Large",0) |
Hi!
Array entered: =MATCH(TRUE,A1:A10<"Large",0) That will return the position of the first value that is not "Large". Biff wrote in message news:zuJWe.24281$8q.853@lakeread01... Gang - Not the end of the world (and I made a work around with a T/F helper column) but I was wondering if there is a way to use MATCH() to find an opposite condition. For example, I have a column of attributes. 98% of them are "Large", 2% of them are almost anything else, and not consistent. I was looking for a syntax sort of like: =MATCH(NOT("Large"),A:A,0) That's the idea, anyway, but that doesn't work ;-) Just curious. Thanks. ...best, Hash |
wrote in message news:zuJWe.24281$8q.853@lakeread01...
Gang - Not the end of the world (and I made a work around with a T/F helper column) but I was wondering if there is a way to use MATCH() to find an opposite condition. For example, I have a column of attributes. 98% of them are "Large", 2% of them are almost anything else, and not consistent. I was looking for a syntax sort of like: =MATCH(NOT("Large"),A:A,0) That's the idea, anyway, but that doesn't work ;-) Just curious. Thanks. ...best, Hash If your data range is $A$121:$A$126 this show the relative position of your NOT("Large") occurences: {=IF(ROW(A1)COUNTIF($A$121:$A$126,"<Large"),"", SMALL(IF($A$121:$A$126<"Large",ROW(INDIRECT ("1:"&ROWS($A$121:$A$126))),""),ROW(A1)))} Ciao Bruno |
In article ,
"Harlan Grove" wrote: wrote... ... opposite condition. For example, I have a column of attributes. 98% of them are "Large", 2% of them are almost anything else, and not consistent. I was looking for a syntax sort of like: =MATCH(NOT("Large"),A:A,0) That's the idea, anyway, but that doesn't work ;-) It requires an array formula, so it can't operate on entire columns. =MATCH(FALSE,A1:A65535="Large",0) Harlan - Thanks. That's sort of what I did with the helper column, but it saves me a step. ....best, Hash |
Bif -
The logical companion to Harlan's. Thanks. ....best, Hash In article , "Biff" wrote: Hi! Array entered: =MATCH(TRUE,A1:A10<"Large",0) That will return the position of the first value that is not "Large". Biff wrote in message news:zuJWe.24281$8q.853@lakeread01... Gang - Not the end of the world (and I made a work around with a T/F helper column) but I was wondering if there is a way to use MATCH() to find an opposite condition. For example, I have a column of attributes. 98% of them are "Large", 2% of them are almost anything else, and not consistent. I was looking for a syntax sort of like: =MATCH(NOT("Large"),A:A,0) That's the idea, anyway, but that doesn't work ;-) Just curious. Thanks. ...best, Hash |
In article ,
"Bruno Campanini" wrote: wrote in message news:zuJWe.24281$8q.853@lakeread01... Gang - Not the end of the world (and I made a work around with a T/F helper column) but I was wondering if there is a way to use MATCH() to find an opposite condition. For example, I have a column of attributes. 98% of them are "Large", 2% of them are almost anything else, and not consistent. I was looking for a syntax sort of like: =MATCH(NOT("Large"),A:A,0) That's the idea, anyway, but that doesn't work ;-) Just curious. Thanks. ...best, Hash If your data range is $A$121:$A$126 this show the relative position of your NOT("Large") occurences: {=IF(ROW(A1)COUNTIF($A$121:$A$126,"<Large"),"", SMALL(IF($A$121:$A$126<"Large",ROW(INDIRECT ("1:"&ROWS($A$121:$A$126))),""),ROW(A1)))} Ciao Bruno Bruno - Yet another way - thanks. ....best, Hash |
All times are GMT +1. The time now is 03:20 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com