Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default vlookup + if formula help!

I have a list of names on sheet2 (a1:a69) and if the name in cell a1 (sheet1)
matches any of those names then I want it to say "NO" in cell a2 (sheet1).
if it doesn't match then I want it to say "YES" in cell a2 (sheet1).

I'm assuming it is a combination of a "vlookup" and a "if" formula, but I
can't right it out. Please help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default vlookup + if formula help!

Try this...

=IF(COUNTIF(Sheet2!A1:A69,A1),"No","Yes")

--
Biff
Microsoft Excel MVP


"sross002" wrote in message
...
I have a list of names on sheet2 (a1:a69) and if the name in cell a1
(sheet1)
matches any of those names then I want it to say "NO" in cell a2 (sheet1).
if it doesn't match then I want it to say "YES" in cell a2 (sheet1).

I'm assuming it is a combination of a "vlookup" and a "if" formula, but I
can't right it out. Please help.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default vlookup + if formula help!

Copy and paste the below formula in Sheet1 A2 cell
=IF(A1="","",IF(ISNA(VLOOKUP(A1,Sheet2!$A$1:$A$69, 1,FALSE)),"YES",IF(VLOOKUP(A1,Sheet2!$A$1:$A$69,1, FALSE)=A1,"NO","")))

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"sross002" wrote:

I have a list of names on sheet2 (a1:a69) and if the name in cell a1 (sheet1)
matches any of those names then I want it to say "NO" in cell a2 (sheet1).
if it doesn't match then I want it to say "YES" in cell a2 (sheet1).

I'm assuming it is a combination of a "vlookup" and a "if" formula, but I
can't right it out. Please help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default vlookup + if formula help!

I have
=IF(a2=vlookup(a2,sheet1!$B$2:$B$B69,1,FALSE),"NO" , "YES")

It's coming back with "NO" where it should be BUY instead of "YES" it says
#N/A.

What am I doing wrong, why isn't YES showing up where it should be?


"sross002" wrote:

I have a list of names on sheet2 (a1:a69) and if the name in cell a1 (sheet1)
matches any of those names then I want it to say "NO" in cell a2 (sheet1).
if it doesn't match then I want it to say "YES" in cell a2 (sheet1).

I'm assuming it is a combination of a "vlookup" and a "if" formula, but I
can't right it out. Please help.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default vlookup + if formula help!

I am getting an error.

I have a MAC, is that why?

"sross002" wrote:

I have
=IF(a2=vlookup(a2,sheet1!$B$2:$B$B69,1,FALSE),"NO" , "YES")

It's coming back with "NO" where it should be BUY instead of "YES" it says
#N/A.

What am I doing wrong, why isn't YES showing up where it should be?


"sross002" wrote:

I have a list of names on sheet2 (a1:a69) and if the name in cell a1 (sheet1)
matches any of those names then I want it to say "NO" in cell a2 (sheet1).
if it doesn't match then I want it to say "YES" in cell a2 (sheet1).

I'm assuming it is a combination of a "vlookup" and a "if" formula, but I
can't right it out. Please help.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default vlookup + if formula help!

I have

=IF(a2=vlookup(a2,sheet1!$B$2:$B$B69,1,FALSE),"NO" , "YES")
why isn't YES showing up where it should be?


Because:

vlookup(a2,sheet1!$B$2:$B$B69,1,FALSE)

Is returning the #N/A error meaning it can't find A2 in the range
sheet1!$B$2:$B$B69.

See my other reply for a better method.

--
Biff
Microsoft Excel MVP


"sross002" wrote in message
...
I have
=IF(a2=vlookup(a2,sheet1!$B$2:$B$B69,1,FALSE),"NO" , "YES")

It's coming back with "NO" where it should be BUY instead of "YES" it says
#N/A.

What am I doing wrong, why isn't YES showing up where it should be?


"sross002" wrote:

I have a list of names on sheet2 (a1:a69) and if the name in cell a1
(sheet1)
matches any of those names then I want it to say "NO" in cell a2
(sheet1).
if it doesn't match then I want it to say "YES" in cell a2 (sheet1).

I'm assuming it is a combination of a "vlookup" and a "if" formula, but I
can't right it out. Please help.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default vlookup + if formula help!

In cell B1 of Sheet1 try the formula:
=IF(ISNA(MATCH(A1,Sheet2!A:A,)),"YES","NO")
Micky


"sross002" wrote:

I have a list of names on sheet2 (a1:a69) and if the name in cell a1 (sheet1)
matches any of those names then I want it to say "NO" in cell a2 (sheet1).
if it doesn't match then I want it to say "YES" in cell a2 (sheet1).

I'm assuming it is a combination of a "vlookup" and a "if" formula, but I
can't right it out. Please help.

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default vlookup + if formula help!

THANKS!

"מיכאל (מיקי) אבידן" wrote:

In cell B1 of Sheet1 try the formula:
=IF(ISNA(MATCH(A1,Sheet2!A:A,)),"YES","NO")
Micky


"sross002" wrote:

I have a list of names on sheet2 (a1:a69) and if the name in cell a1 (sheet1)
matches any of those names then I want it to say "NO" in cell a2 (sheet1).
if it doesn't match then I want it to say "YES" in cell a2 (sheet1).

I'm assuming it is a combination of a "vlookup" and a "if" formula, but I
can't right it out. Please help.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup formula David Ryan Excel Worksheet Functions 2 November 22nd 09 11:36 PM
How do I combine a VLOOKUP formula and a NETWORKDAYS formula? Tracy Excel Worksheet Functions 2 October 15th 09 04:14 PM
Alternative formula to the vlookup formula? Victor Excel Worksheet Functions 2 May 12th 08 04:38 PM
convert vlookup formula to link formula AFA Excel Worksheet Functions 0 February 20th 08 04:24 AM
Excel 2002 VLOOKUP formula or other formula Serge Excel Discussion (Misc queries) 4 February 26th 07 03:56 PM


All times are GMT +1. The time now is 05:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright 2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"