ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Trying to compare the datas... (https://www.excelbanter.com/excel-worksheet-functions/227479-trying-compare-datas.html)

Astro

Trying to compare the datas...
 
Is there a function I can use for the following:

Sheet1:
A B
1 John OK
2 Mark
3 Dan OK

Sheet2:
A
1 John
2 Dan

So if "John" from Sheet1 can be found in Sheet2 column A, then display OK at
Sheet1 column B Row 1. Can this be done?

Jacob Skaria

Trying to compare the datas...
 
Use this formula in Sheet1 B1

=IF(ISNA(MATCH(A1,Sheet2!A:A,0)),"","OK")

--
If this post helps click Yes
---------------
Jacob Skaria


"Astro" wrote:

Is there a function I can use for the following:

Sheet1:
A B
1 John OK
2 Mark
3 Dan OK

Sheet2:
A
1 John
2 Dan

So if "John" from Sheet1 can be found in Sheet2 column A, then display OK at
Sheet1 column B Row 1. Can this be done?



All times are GMT +1. The time now is 06:03 PM.

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