ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Use lookup or ?? (https://www.excelbanter.com/excel-worksheet-functions/65188-use-lookup.html)

JayL

Use lookup or ??
 

All -
I'm trying to get a function to return a Y or N if the contents of sheet2
cell A1 matches any cell in sheet1 column A.
TIA
-Jay




Max

Use lookup or ??
 
One way ..
Put in Sheet2's B1 (say):
=IF(A1="","-",IF(ISNUMBER(MATCH(A1,Sheet1!A:A,0)),"Y","N") )
B1 can be copied down to return correspondingly for other values in A2, A3,
etc
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"JayL" wrote in message
...

All -
I'm trying to get a function to return a Y or N if the contents of sheet2
cell A1 matches any cell in sheet1 column A.
TIA
-Jay






Roger Govier

Use lookup or ??
 
Hi Jay

One way
=IF(ISNA(MATCH(Sheet2!A1,Sheet1!A:A,0)),"N","Y")

--
Regards

Roger Govier


"JayL" wrote in message
...

All -
I'm trying to get a function to return a Y or N if the contents of
sheet2 cell A1 matches any cell in sheet1 column A.
TIA
-Jay





JayL

Use lookup or ??
 

Perfect! Thanks!
"JayL" wrote in message
...


All -
I'm trying to get a function to return a Y or N if the contents of sheet2
cell A1 matches any cell in sheet1 column A.
TIA
-Jay







Ashish Mathur

Use lookup or ??
 
Hi,

You may try the following array formula (Ctrl+Shift+Enter) in cell B1 of
sheet 2

=if(or(exact(A1,sheet1_range))

Regards,

Ashish Mathur

"JayL" wrote:


All -
I'm trying to get a function to return a Y or N if the contents of sheet2
cell A1 matches any cell in sheet1 column A.
TIA
-Jay






All times are GMT +1. The time now is 08:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com