Hello,
How can I compare one cell with a range ?? ... Something like: if A1 value is through b1:b100 values to get an "ok" ...
Thx,
Nedy
Hello,
How can I compare one cell with a range ?? ... Something like: if A1 value is through b1:b100 values to get an "ok" ...
Thx,
Nedy
Can you clarify this statement......I don't understand.Originally Posted by nedy_03
Steve
"Nearly all men can stand adversity, but if you want to test a man's character, give him power."
-Abraham Lincoln
=IF(ISNUMBER(MATCH(A1,B1:B100),0)),"ok","")
perhaps
What does that "0" do ?? cause I get an error on it ? ..
Thx,
Nedy
It is for an exact match. Bob misplaced a paren...
=IF(ISNUMBER(MATCH(A1,B1:B100,0)),"ok","")
HTH
Regards, Zack Barresse
Check out the KB! :|: BOARD TAGS: WHAT ARE THEY AND HOW DO I USE THEM
What is a Microsoft MVP? | Free Microsoft Courses | My Book on Excel Tables
I'll try to explain better what I'm looking for .. In the attach file in "C1" I would need a formula that looks through the "B1:B18" values. And if one of the "B1:B18" values match the A1 value, in "C1" I should get on "OK" ...
Without looking at your file, in C1, enter this formula...
=IF(ISNUMBER(MATCH(A1,B1:B18,0)),"OK","NOT OK")
HTH
Regards, Zack Barresse
Check out the KB! :|: BOARD TAGS: WHAT ARE THEY AND HOW DO I USE THEM
What is a Microsoft MVP? | Free Microsoft Courses | My Book on Excel Tables
Doesn't Zack's correction do exactly that? Post #5
Steve
"Nearly all men can stand adversity, but if you want to test a man's character, give him power."
-Abraham Lincoln
AND IF I HAVE TO APPLY THIS FOR TEXT .. CAN I USE "ISTEXT" INSTEAD OF "ISNUMBER" ?? ... I TRIED IT AND IF I USE "ISNUMBER" IT WORKS FOR TEXT TOO ... BUT "ISTEXT" ITDOESN'T WORK ...
THX,
NEDY
Because ISTEXT() does not see if the MATCH() function found a match or not, as MATCH() returns a numeric position of (with the 0 in the third syntax) the matched value. You cannot switch it out that way. The function works exactly as you requested.
Regards, Zack Barresse
Check out the KB! :|: BOARD TAGS: WHAT ARE THEY AND HOW DO I USE THEM
What is a Microsoft MVP? | Free Microsoft Courses | My Book on Excel Tables
I spotted that and thought I corrected it before I postedOriginally Posted by firefytr