ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF formula help? (https://www.excelbanter.com/excel-worksheet-functions/263641-if-formula-help.html)

Daisy

IF formula help?
 
Hi, can anyone help me write an IF statement? I have a list of names in
Column A and want to check it against another list of names in Column D - if
the name matches one of the names in Column D I'd like it to put a Y in
Column B. I tried
=IF(A2,VLOOKUP($D$2:$D$1631,"Y","N")) but it doesn't work.
--
Thank you in advance!!!!

Glenn

IF formula help?
 
daisy wrote:
Hi, can anyone help me write an IF statement? I have a list of names in
Column A and want to check it against another list of names in Column D - if
the name matches one of the names in Column D I'd like it to put a Y in
Column B. I tried
=IF(A2,VLOOKUP($D$2:$D$1631,"Y","N")) but it doesn't work.



Try looking in the help file for the proper format for the IF and VLOOKUP
functions...


IF( logical_test , value_if_true , value_if_false )


VLOOKUP( lookup_value , table_array , col_index_num , range_lookup )


I think this will work for your needs:

=IF(ISERROR(VLOOKUP(A2,$D$2:$D$1631,1,FALSE)),"N", "Y")


T. Valko

IF formula help?
 
Here's one way...

=IF(COUNTIF(D$2:D$1631,A2),"Y","N")

--
Biff
Microsoft Excel MVP


"daisy" wrote in message
...
Hi, can anyone help me write an IF statement? I have a list of names in
Column A and want to check it against another list of names in Column D -
if
the name matches one of the names in Column D I'd like it to put a Y in
Column B. I tried
=IF(A2,VLOOKUP($D$2:$D$1631,"Y","N")) but it doesn't work.
--
Thank you in advance!!!!




MS-Exl-Learner

IF formula help?
 
Copy and paste the below formula in B2 cell.
=IF(A2="","",IF(ISNUMBER(COUNTIF(D:D,A2)),"Y","N") )

Remember to Click Yes, if this post helps!

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


"daisy" wrote:

Hi, can anyone help me write an IF statement? I have a list of names in
Column A and want to check it against another list of names in Column D - if
the name matches one of the names in Column D I'd like it to put a Y in
Column B. I tried
=IF(A2,VLOOKUP($D$2:$D$1631,"Y","N")) but it doesn't work.
--
Thank you in advance!!!!


Daisy

IF formula help?
 
thanks everyone - :)
--
Thank you in advance!!!!


"Glenn" wrote:

daisy wrote:
Hi, can anyone help me write an IF statement? I have a list of names in
Column A and want to check it against another list of names in Column D - if
the name matches one of the names in Column D I'd like it to put a Y in
Column B. I tried
=IF(A2,VLOOKUP($D$2:$D$1631,"Y","N")) but it doesn't work.



Try looking in the help file for the proper format for the IF and VLOOKUP
functions...


IF( logical_test , value_if_true , value_if_false )


VLOOKUP( lookup_value , table_array , col_index_num , range_lookup )


I think this will work for your needs:

=IF(ISERROR(VLOOKUP(A2,$D$2:$D$1631,1,FALSE)),"N", "Y")

.


MS-Exl-Learner

IF formula help?
 
Correction to my previous post.

=IF(A2="","",IF(COUNTIF(D:D,A2)0,"Y","N"))

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


"Ms-Exl-Learner" wrote:

Copy and paste the below formula in B2 cell.
=IF(A2="","",IF(ISNUMBER(COUNTIF(D:D,A2)),"Y","N") )

Remember to Click Yes, if this post helps!

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


"daisy" wrote:

Hi, can anyone help me write an IF statement? I have a list of names in
Column A and want to check it against another list of names in Column D - if
the name matches one of the names in Column D I'd like it to put a Y in
Column B. I tried
=IF(A2,VLOOKUP($D$2:$D$1631,"Y","N")) but it doesn't work.
--
Thank you in advance!!!!



All times are GMT +1. The time now is 11:59 PM.

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