![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 91
|
I have a value in cell A1 and i want to return the value true in C1 if A1 is equal to any value in the colum B. Columb B contains 150 cells of data.
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
{=OR(A1=B1:B150)}
Note: This is an array formula which must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula. Or... =ISNUMBER(MATCH(A1,B:B,0)) [ This Message was edited by: Mark W. on 2002-03-05 08:57 ] |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Houston,Texas
Posts: 418
|
=IF(ISNA(MATCH(A1,B:B,0)),"","True") in C1 will check all of column B in case the number of entries might change.
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
If needed, B:B can be replaced by B1:B150. |
|
|
|
|
|
|
#5 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|