M
matt
I have checked tech on the net.com to solve a problem but
their formula does not seem to work. I have 20 rows I am
working with and two seperate columns. I am seeing if the
numbers in the cells in one column are the same as in the
second column. When I tried to execute the formula, Tech
on the net's formula only shows if there is a duplicate on
row 1 but not on rows 2-20. Below is the scenario I am
doing. Please let me know what have I missed? I want to
show if duplicates exist on all 20 rows. Thanks! (here
is the scenario)
Question: I have a list of #s in column A (lets say 1-
20). There is a master list in another column that may
not include some of the column A #s. I want a formula in
column B to say (if A1 exists in the master list,
then "Yes", "No". Is this possible?
Answer: This can be done with a formula that utilizes a
combination of the VLookup function, IF function, and ISNA
function.
Based on the spreadsheet above:
=IF(ISNA(VLOOKUP(A2,D2
188,1,FALSE)),"No","Yes") would
return "No"
=IF(ISNA(VLOOKUP(A5,D5
191,1,FALSE)),"No","Yes") would
return "Yes"
First, you need to enter a FALSE in the last parameter of
the VLookup function. This will ensure that the VLookup
will test for an exact match.
If the VLookup function does not find an exact match, it
will return the #N/A error. By using the IF and ISNA
functions, you can return a "Yes" value if an exact match
is found. Otherwise, a "No" value is returned.
their formula does not seem to work. I have 20 rows I am
working with and two seperate columns. I am seeing if the
numbers in the cells in one column are the same as in the
second column. When I tried to execute the formula, Tech
on the net's formula only shows if there is a duplicate on
row 1 but not on rows 2-20. Below is the scenario I am
doing. Please let me know what have I missed? I want to
show if duplicates exist on all 20 rows. Thanks! (here
is the scenario)
Question: I have a list of #s in column A (lets say 1-
20). There is a master list in another column that may
not include some of the column A #s. I want a formula in
column B to say (if A1 exists in the master list,
then "Yes", "No". Is this possible?
Answer: This can be done with a formula that utilizes a
combination of the VLookup function, IF function, and ISNA
function.
Based on the spreadsheet above:
=IF(ISNA(VLOOKUP(A2,D2
return "No"
=IF(ISNA(VLOOKUP(A5,D5
return "Yes"
First, you need to enter a FALSE in the last parameter of
the VLookup function. This will ensure that the VLookup
will test for an exact match.
If the VLookup function does not find an exact match, it
will return the #N/A error. By using the IF and ISNA
functions, you can return a "Yes" value if an exact match
is found. Otherwise, a "No" value is returned.