English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi, I am trying to get a zip code looked up in a list which is B2:B100, if the zip code is in the list I want it to say yes if it's not well then no. I have the formula but it's only looking in the first cell, what am I doing wrong? Please help.... I have read everything I found and no answer....

2007-01-15 16:00:34 · 3 answers · asked by lauritaingp 2 in Computers & Internet Programming & Design

3 answers

MATCH(lookup_value,lookup_array,match_type)

Lookup_value is the value you use to find the value you want in a table.

Lookup_value is the value you want to match in lookup_array. For example, when you look up someone's number in a telephone book, you are using the person's name as the lookup value, but the telephone number is the value you want.

Lookup_value can be a value (number, text, or logical value) or a cell reference to a number, text, or logical value.

Lookup_array is a contiguous range of cells containing possible lookup values. Lookup_array must be an array or an array reference.

Match_type is the number -1, 0, or 1. Match_type specifies how Microsoft Excel matches lookup_value with values in lookup_array.

If match_type is 1, MATCH finds the largest value that is less than or equal to lookup_value. Lookup_array must be placed in ascending order: ...-2, -1, 0, 1, 2, ..., A-Z, FALSE, TRUE.

If match_type is 0, MATCH finds the first value that is exactly equal to lookup_value. Lookup_array can be in any order.

If match_type is -1, MATCH finds the smallest value that is greater than or equal to lookup_value. Lookup_array must be placed in descending order: TRUE, FALSE, Z-A, ...2, 1, 0, -1, -2, ..., and so on.

If match_type is omitted, it is assumed to be 1.

Remarks

MATCH returns the position of the matched value within lookup_array, not the value itself. For example, MATCH("b",{"a","b","c"},0) returns 2, the relative position of "b" within the array {"a","b","c"}.
MATCH does not distinguish between uppercase and lowercase letters when matching text values.
If MATCH is unsuccessful in finding a match, it returns the #N/A error value.
If match_type is 0 and lookup_value is text, lookup_value can contain the wildcard characters asterisk (*) and question mark (?). An asterisk matches any sequence of characters; a question mark matches any single character.

in your example:

=if(MATCH(A1,B2:B100,0),
"Yes","No")

Match returns the index to the first item in B2:B100 that matches otherwise returns the #N/A result.

2007-01-15 16:40:22 · answer #1 · answered by charlyvvvvv 3 · 0 0

1

2017-01-22 06:37:42 · answer #2 · answered by ? 4 · 0 0

I'm not sure what you are trying to accomplish with this formula, but here is the correct format:

=if(A1=B1:B100,"Yes","No")

In order to receive a "Yes" answer, every cell from B1 to B100 would need to be the same as A1. If even one cell is different or blank, the answer will be "No"

Hope this helps.

2007-01-15 16:15:32 · answer #3 · answered by David T 2 · 0 0

fedest.com, questions and answers