Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Joe Gieder
 
Posts: n/a
Default To Biff: Using Match with multiple criteria

Thank you for the help it worked perfectly. What Does the "MATCH(1,(" mean in
the below formula?

Thaks
joe


Biff" wrote:

After thinking about it some more, this may be what you want:

=INDEX(Certs,MATCH(1,(PN&Supplier=$K3&$W3)*(Quoted <"Yes")*(Updated<"Yes"),
0))

Biff


  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

It means that when all these elements are multiplied together:

(PN&Supplier=$K3&$W3)*(Quoted<"Yes")*(Updated<"Y es")

the operation returns an array of 1's and 0's. Something like this:

0
0
0
1
0
0
0

Then:

MATCH(1,{0,0,0,1,0,0,0},0) = 4

Because the matched 1 is in the 4th position of the lookup_array. And then
returns the 4th element of the Index array.

Pretty simple stuff, eh!

Now, can you answer the question I just posted? <g It's related!

Biff

"Joe Gieder" wrote in message
...
Thank you for the help it worked perfectly. What Does the "MATCH(1,(" mean
in
the below formula?

Thaks
joe


Biff" wrote:

After thinking about it some more, this may be what you want:

=INDEX(Certs,MATCH(1,(PN&Supplier=$K3&$W3)*(Quoted <"Yes")*(Updated<"Yes"),
0))

Biff




  #3   Report Post  
Joe Gieder
 
Posts: n/a
Default

Thanks. I do have one problem. It works fine when there's a value to find but
when there's not value it returns #N/A. How would I fix this?

TIA
Joe

"Biff" wrote:

Hi!

It means that when all these elements are multiplied together:

(PN&Supplier=$K3&$W3)*(Quoted<"Yes")*(Updated<"Y es")

the operation returns an array of 1's and 0's. Something like this:

0
0
0
1
0
0
0

Then:

MATCH(1,{0,0,0,1,0,0,0},0) = 4

Because the matched 1 is in the 4th position of the lookup_array. And then
returns the 4th element of the Index array.

Pretty simple stuff, eh!

Now, can you answer the question I just posted? <g It's related!

Biff

"Joe Gieder" wrote in message
...
Thank you for the help it worked perfectly. What Does the "MATCH(1,(" mean
in
the below formula?

Thaks
joe


Biff" wrote:

After thinking about it some more, this may be what you want:

=INDEX(Certs,MATCH(1,(PN&Supplier=$K3&$W3)*(Quoted <"Yes")*(Updated<"Yes"),
0))

Biff





  #4   Report Post  
Biff
 
Posts: n/a
Default

Hi!

There are a couple of ways.

If your file is large and you have 1,000's of rows of data that are
referenced in 1,000's of these type formulas I would use conditional
formatting to hide the #N/A's.

Select the range of these formulas. Assume this range is A1:A1000.

Goto FormatConditional Formatting
Formula is: =ISERROR(A1) or =ISNA(A1)
Set the cells font color to be the same as the background fill color.

The other way is to include an error trap in the formula itself. The
disadvantage to this method is that it makes the formula twice as long
(complex) and takes twice as long to process which can slow things down if
as I said above, the file is large.

=IF(ISNA(MATCH(1,(PN&Supplier=$K3&$W3)*(Quoted<"Y es")*(Updated<"Yes"),0)),"",INDEX(Certs,MATCH(1,( PN&Supplier=$K3&$W3)*(Quoted<"Yes")*(Updated<"Ye s"),0)))

This formula will leave the cell "blank" if no match is found. If you might
want a zero returned, just replace the "" in the formula.

Biff

"Joe Gieder" wrote in message
...
Thanks. I do have one problem. It works fine when there's a value to find
but
when there's not value it returns #N/A. How would I fix this?

TIA
Joe

"Biff" wrote:

Hi!

It means that when all these elements are multiplied together:

(PN&Supplier=$K3&$W3)*(Quoted<"Yes")*(Updated<"Y es")

the operation returns an array of 1's and 0's. Something like this:

0
0
0
1
0
0
0

Then:

MATCH(1,{0,0,0,1,0,0,0},0) = 4

Because the matched 1 is in the 4th position of the lookup_array. And
then
returns the 4th element of the Index array.

Pretty simple stuff, eh!

Now, can you answer the question I just posted? <g It's related!

Biff

"Joe Gieder" wrote in message
...
Thank you for the help it worked perfectly. What Does the "MATCH(1,("
mean
in
the below formula?

Thaks
joe


Biff" wrote:

After thinking about it some more, this may be what you want:

=INDEX(Certs,MATCH(1,(PN&Supplier=$K3&$W3)*(Quoted <"Yes")*(Updated<"Yes"),
0))

Biff







  #5   Report Post  
Joe Gieder
 
Posts: n/a
Default

Thanks. Both work perfectly. I opted for the longer approach.

Joe

"Biff" wrote:

Hi!

There are a couple of ways.

If your file is large and you have 1,000's of rows of data that are
referenced in 1,000's of these type formulas I would use conditional
formatting to hide the #N/A's.

Select the range of these formulas. Assume this range is A1:A1000.

Goto FormatConditional Formatting
Formula is: =ISERROR(A1) or =ISNA(A1)
Set the cells font color to be the same as the background fill color.

The other way is to include an error trap in the formula itself. The
disadvantage to this method is that it makes the formula twice as long
(complex) and takes twice as long to process which can slow things down if
as I said above, the file is large.

=IF(ISNA(MATCH(1,(PN&Supplier=$K3&$W3)*(Quoted<"Y es")*(Updated<"Yes"),0)),"",INDEX(Certs,MATCH(1,( PN&Supplier=$K3&$W3)*(Quoted<"Yes")*(Updated<"Ye s"),0)))

This formula will leave the cell "blank" if no match is found. If you might
want a zero returned, just replace the "" in the formula.

Biff

"Joe Gieder" wrote in message
...
Thanks. I do have one problem. It works fine when there's a value to find
but
when there's not value it returns #N/A. How would I fix this?

TIA
Joe

"Biff" wrote:

Hi!

It means that when all these elements are multiplied together:

(PN&Supplier=$K3&$W3)*(Quoted<"Yes")*(Updated<"Y es")

the operation returns an array of 1's and 0's. Something like this:

0
0
0
1
0
0
0

Then:

MATCH(1,{0,0,0,1,0,0,0},0) = 4

Because the matched 1 is in the 4th position of the lookup_array. And
then
returns the 4th element of the Index array.

Pretty simple stuff, eh!

Now, can you answer the question I just posted? <g It's related!

Biff

"Joe Gieder" wrote in message
...
Thank you for the help it worked perfectly. What Does the "MATCH(1,("
mean
in
the below formula?

Thaks
joe


Biff" wrote:

After thinking about it some more, this may be what you want:

=INDEX(Certs,MATCH(1,(PN&Supplier=$K3&$W3)*(Quoted <"Yes")*(Updated<"Yes"),
0))

Biff










  #6   Report Post  
Biff
 
Posts: n/a
Default

Good deal! Thanks for the feedback.

Biff

"Joe Gieder" wrote in message
...
Thanks. Both work perfectly. I opted for the longer approach.

Joe

"Biff" wrote:

Hi!

There are a couple of ways.

If your file is large and you have 1,000's of rows of data that are
referenced in 1,000's of these type formulas I would use conditional
formatting to hide the #N/A's.

Select the range of these formulas. Assume this range is A1:A1000.

Goto FormatConditional Formatting
Formula is: =ISERROR(A1) or =ISNA(A1)
Set the cells font color to be the same as the background fill color.

The other way is to include an error trap in the formula itself. The
disadvantage to this method is that it makes the formula twice as long
(complex) and takes twice as long to process which can slow things down
if
as I said above, the file is large.

=IF(ISNA(MATCH(1,(PN&Supplier=$K3&$W3)*(Quoted<"Y es")*(Updated<"Yes"),0)),"",INDEX(Certs,MATCH(1,( PN&Supplier=$K3&$W3)*(Quoted<"Yes")*(Updated<"Ye s"),0)))

This formula will leave the cell "blank" if no match is found. If you
might
want a zero returned, just replace the "" in the formula.

Biff

"Joe Gieder" wrote in message
...
Thanks. I do have one problem. It works fine when there's a value to
find
but
when there's not value it returns #N/A. How would I fix this?

TIA
Joe

"Biff" wrote:

Hi!

It means that when all these elements are multiplied together:

(PN&Supplier=$K3&$W3)*(Quoted<"Yes")*(Updated<"Y es")

the operation returns an array of 1's and 0's. Something like this:

0
0
0
1
0
0
0

Then:

MATCH(1,{0,0,0,1,0,0,0},0) = 4

Because the matched 1 is in the 4th position of the lookup_array. And
then
returns the 4th element of the Index array.

Pretty simple stuff, eh!

Now, can you answer the question I just posted? <g It's related!

Biff

"Joe Gieder" wrote in message
...
Thank you for the help it worked perfectly. What Does the
"MATCH(1,("
mean
in
the below formula?

Thaks
joe


Biff" wrote:

After thinking about it some more, this may be what you want:

=INDEX(Certs,MATCH(1,(PN&Supplier=$K3&$W3)*(Quoted <"Yes")*(Updated<"Yes"),
0))

Biff










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
Using Match with multiple criteria Joe Gieder Excel Worksheet Functions 3 July 12th 05 02:52 PM
Extract multiple records matching criteria from list William DeLeo Excel Worksheet Functions 12 June 30th 05 02:35 PM
match multiple criteria & return value from array Tat Excel Worksheet Functions 2 June 21st 05 04:31 PM
Multiple Criteria IF Nesting BethB Excel Worksheet Functions 2 May 17th 05 12:14 AM
Can I get the mode, min, and max with multiple criteria? BobT Excel Discussion (Misc queries) 1 February 15th 05 03:20 AM


All times are GMT +1. The time now is 09:15 PM.

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

About Us

"It's about Microsoft Excel"