formula to compare a values and return

Joined
Mar 25, 2015
Messages
2
Reaction score
0
I'm looking for a formula to compare text in one specific cell with information in a range of cells within a column. If the text in the original cell matches and of the information in the column of cells, then display a "found"... if not display "not found".

EXAMPLE
original cell = 25
column of cells are random numbers
if it finds 25 in the column, then return "found"
if it does not find 25 in the column, then return "not found"
 
Joined
Jun 9, 2016
Messages
32
Reaction score
5
If the value is entered in B1, one formula would be:

=IF(ISERROR(SUBSTITUTE(ADDRESS(MATCH(B1,A:A,0),1),"$","")),"not found",B1&" was found in cell "&(SUBSTITUTE(ADDRESS(MATCH(B1,A:A,0),1),"$","")))

Note that this formula will give the cell reference for the first occurrence of the entered value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top