Note: Kindly please start explaining from the scratch about the provided VLOOKUP() function because i don't know about it.
This little formula will do the trick for you:
=IF(COUNTIF(Sheet1!G:G; L2)=0, "No match in Sheet1", "Match in Sheet1")
Where "Sheet1" is the name of the worksheet 1
You could then modify it to (the above formula is to clearly show the logic):
=IF(COUNTIF(Sheet1!G:G; L2)=0, "No", "Yes")
Assume we have Sheet 1:
Sheet 2, we apply our formula in the column V. It check if the word Apple (cell L2
exist anywhere in Sheet 1, column G). We do this for every row.
For next row we want to check if it exist in Sheet1, we apply the formula again, the only difference is that L2
-> L3
ie the reference value changes since you are looking at another row.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.