ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   vlookup,IF function together (https://www.excelbanter.com/excel-worksheet-functions/187258-vlookup-if-function-together.html)

Ranjit kurian

vlookup,IF function together
 
Hi
i know to do vlookup, but the problem here is, when i do vlookup function
and if the value is found then the result should be shown as "YES" if not
then "NO"

Peo Sjoblom

vlookup,IF function together
 
You don't need VLOOKUP for that, you can just use MATCH

=IF(ISNUMBER(MATCH(lookup_value,A1:A100,0)),"YES", "NO")

where A1:A100 with be the equivalent of the first column (leftmost) in a
VLOOKUP formula


--


Regards,


Peo Sjoblom


"Ranjit kurian" wrote in message
...
Hi
i know to do vlookup, but the problem here is, when i do vlookup function
and if the value is found then the result should be shown as "YES" if not
then "NO"




Pete_UK

vlookup,IF function together
 
Something like this:

=IF(ISNA(your_vlookup_formula),"No","Yes")

You could use MATCH instead of VLOOKUP.

Hope this helps.

Pete

On May 13, 3:55*pm, Ranjit kurian
wrote:
Hi
i know to do vlookup, but the problem here is, when i do vlookup function
and if the value is found then the result should be shown as "YES" if not
then "NO"



Max

vlookup,IF function together
 
Something like this should do it for you
Assume your vlookup col (the 1st col) is col A in Sheet1
In Sheet2,
In B1:
=IF(A1="","",IF(ISNUMBER(MATCH(A1,Sheet1!A:A,0))," Yes","No"))
Copy B1 down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Ranjit kurian" wrote:
i know to do vlookup, but the problem here is, when i do vlookup function
and if the value is found then the result should be shown as "YES" if not
then "NO"


Teethless mama

vlookup,IF function together
 
=IF(COUNTIF(A:A,"criteria"),"Yes","No")


"Ranjit kurian" wrote:

Hi
i know to do vlookup, but the problem here is, when i do vlookup function
and if the value is found then the result should be shown as "YES" if not
then "NO"


JE McGimpsey

vlookup,IF function together
 
One way:

=IF(ISNA(MATCH(<value,<range,FALSE)),"NO","YES")

Another:

=IF(COUNTIF(<range,<value)0,"YES","NO")


In article ,
Ranjit kurian wrote:

Hi
i know to do vlookup, but the problem here is, when i do vlookup function
and if the value is found then the result should be shown as "YES" if not
then "NO"


Kaustubh Kelkar

VLOOKUP
 
Hi Peo,

I think you can help me.
I have one problem.Suppose in A1,A2 and A3 I have digit 3. In B1, there is one digit i.e. 3.
now I use vlookup function in C1 as
=VLOOKUP(A2,B:B,1,0).
I copy C1 in C2 and C3.
In this particular case.it is showing 3 n C1,C2 and C3.
As there is only one 3 in B column, as against three 3s in column A, I want #NA in C2 and C3.
Can something be done in this case?
(I need this for doing bank reconciliation, where there are lots of items and too many numbers are more than one)

Regards
Kaustubh



All times are GMT +1. The time now is 10:56 PM.

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