Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default 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
  #2   Report Post  
Harlan Grove
 
Posts: n/a
Default

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)


  #3   Report Post  
 
Posts: n/a
Default

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
  #4   Report Post  
Biff
 
Posts: n/a
Default

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



  #5   Report Post  
 
Posts: n/a
Default

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





  #6   Report Post  
Bruno Campanini
 
Posts: n/a
Default

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


  #7   Report Post  
 
Posts: n/a
Default

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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Match Function Problem - Won't Find Certain Numbers PE Excel Discussion (Misc queries) 2 May 9th 05 03:53 PM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 22nd 05 01:41 PM
Check data on colum A and find match on colum b Chris(new user) Excel Discussion (Misc queries) 3 March 20th 05 04:45 PM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 19th 05 09:27 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM


All times are GMT +1. The time now is 08:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"