If value contains x number from list print found if not print N

icomefromchaos

New Member
Joined
Nov 21, 2014
Messages
14
I am trying to see if a certain text is contained in a list. My next that I want to search over and see if it contains a value in a list is in column E and the list is located in column G. In column F i want to print Found if the number from G was found in E. Below is the formula that I used....
<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;"> IF(ISNUMBER(MATCH(G2:G118, E2:E4612, 0)), "N", "FOUND")
</code>It seems that everything worked just fine, until I was reviewing the matches and further down the column there is this series of number. The formula found only 1 in a set that was in column G...
66618 N
66618 N
66618 FOUND
66618 N
66618 N
ANND further down the sheet. it seems that the formula stopped running and marked all of the numbers as Found, even when they were not in column G.
Would anyone happen to have any suggestions?
 
Last edited by a moderator:

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
The first reference (column G) needs to be just a single cell, not the whole range.
And the 2nd range (column E) needs to have the rows absolute.
And you have the N and FOUND backwards.


Try
IF(ISNUMBER(MATCH(G2, E$2:E$4612, 0)), "FOUND", "N")
 
Upvote 0
The first reference (column G) needs to be just a single cell, not the whole range.
And the 2nd range (column E) needs to have the rows absolute.
And you have the N and FOUND backwards.


Try
IF(ISNUMBER(MATCH(G2, E$2:E$4612, 0)), "FOUND", "N")


I have over 500 items that I need to search and see if they are in my list in column E. Is there a way to do it without have to do each individual value?
 
Upvote 0
So you just want 1 formula that will tell you if ANY value in G2:G118 exists anywhere in E$2:E$4612.
You have no need to actually identify/flag 'Which' value in G exists in E ?

Try

=IF(SUMPRODUCT(COUNTIF(E2:E4612,G2:G118)),"Found","N")
 
Upvote 0
So you just want 1 formula that will tell you if ANY value in G2:G118 exists anywhere in E$2:E$4612.
You have no need to actually identify/flag 'Which' value in G exists in E ?

Try

=IF(SUMPRODUCT(COUNTIF(E2:E4612,G2:G118)),"Found","N")


I tried this, and it doesn't find any of the values. I'm not sure what I am doing wrong.
 
Upvote 0

Forum statistics

Threads
1,216,122
Messages
6,128,963
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top