 |
|
Sharpe
|
 |
Ontario
May 1999 time: 00:30
|
|
=match(A3,B1:B100,0)
where a3 is where the inputted number is typed in and B1:B100 where the list of numbers that you want to see if there is any matches.
If there is a match, a number will result which indicates how far down the list the matched number is.
If there isn't a match, you will get "N/A".
if you want a "TRUE" or "FALSE" answer then modify the formula to
=if(isna(match(a3,B1:B100,0))=false,"MATCH","NO MATCH")
You can also replace the B1:B100 with just the column to get the entire column scanned (eg match(a3,B:B,0))
Last edited by Sharpe on 09-09-2003 at 02:16
|
|
|  |
 |
|
Japher
|
 |
Ook! Ook! Ack! Ack! Ack!
Jun 2002 time: 05:30
|
|
There's two different suggestions here. The "or" function is the easiest.
quote: Put your numbers in A1-A19
In B2:
Highlight field (or just click on it)
Go to Insert -> fxn
Select Logical, A box will open up
"logical 1" B1=A1
"logical 2" B1=A2
"logical 3" B1=A3
etc...
When your done with all logic options OK
Then when you enter a number in B1, B2 will return "True" if it matches the number or "False" if it doesn't. |
Yet if you have a really long list, Sharpe's "If" function is easier.
quote: Put this in B2:
=if(isna(match(B1,B1:B19,0))=false,"MATCH","NO MATCH") |
With the "B1:B19" indicating that list. Oh, it should be "A1:A19".
quote: =if(isna(match(B1,A1:A19,0))=false,"MATCH","NO MATCH") | [/quote]
|
|
|  |
All times are GMT. The time now is 05:30. Apolyton Time is 00:30. |
top of page
|
| archivepost |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|