Are you wanting to check to see if the "XX Name" field matches?
or just to see if the XX # is present?

If you're just checking for XX #, then,
you can use the ISNA function with the VLOOKUP function
(if vlookup doesn't find anything, it returns #N/A, ISNA tests to see if it is 
N/A.

so, if your data is in a sheet called 'data', then the function is:

=IF(ISNA(VLOOKUP(A2,Data!A:A,1,FALSE)),"","YES")

if you're testing the return value, you would use vlookup to return the XXName
and compare it to the one on your sheet:

=IF(VLOOKUP(A2,Data!A:B,2,FALSE)=B2,"YES","")

of course, you MIGHT want to combine the two, to check to see if  the value is 
there first:

=IF(ISNA(VLOOKUP(A2,Data!A:B,2,FALSE)),"",IF(VLOOKUP(A2,Data!A:B,2,FALSE)=B2,"YES",""))

hope this helps,

Paul


________________________________
From: Puttu <[email protected]>
To: MS EXCEL AND VBA MACROS <[email protected]>
Sent: Thu, March 4, 2010 9:44:19 AM
Subject: $$Excel-Macros$$ Urgent Badly help needed Excel formula

Hello Team,

I need a formula or VB macro where as I have two different sheets with
Same data, when it match the result should show in other sheet next
column as YES

If one value match then the answere should be YES in different xl.

example

XX #    XX Name
100    NORTH FAFA
500    NORTHFA
700    SOUTHFA
900    WESTERNFA
910    CALIFORNIAFA
912    WESTFA
922    PLAINSFA
933    SOUTHXMS
944    GREAT

In Different Sheet I have same above details, if it match then the
result should show as "YES"

912    WESTFA

If theis match then it should show as

912    WESTFA      YES

If would be great help if any one send formula or macro code for this.

Thanks
Putta

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our Facebook Group @ http://www.facebook.com/group.php?gid=287779555678
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

To post to this group, send email to [email protected]

<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,800 subscribers worldwide and receive many nice notes about the 
learning and support from the group.Let friends and co-workers know they can 
subscribe to group at http://groups.google.com/group/excel-macros/subscribe

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our Facebook Group @ http://www.facebook.com/group.php?gid=287779555678
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to [email protected]

<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,800 subscribers worldwide and receive many nice notes about the 
learning and support from the group.Let friends and co-workers know they can 
subscribe to group at http://groups.google.com/group/excel-macros/subscribe

Reply via email to