Using wild characters for an array

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following array:

{=MAX(IF($H$3:$H$271="Lookup",$C$3:$C$271))} where it returns the max
value. Is there a way to use * to say if lookup is in the string then that
is an item to test the max on also. I was trying
{=MAX(IF($H$3:$H$271="*Lookup*",$C$3:$C$271))} but that does not work. Is
there a solution?

Thank you for your help.

Steven
 
One way (array-entered):

=MAX(IF(ISNUMBER(SEARCH("Lookup",$H$3:$H$271)),$C$3:$C$271))

If you want the search to be case-sensitive, use FIND() instead of
SEARCH().
 
Right on the button. Thank you.

JE McGimpsey said:
One way (array-entered):

=MAX(IF(ISNUMBER(SEARCH("Lookup",$H$3:$H$271)),$C$3:$C$271))

If you want the search to be case-sensitive, use FIND() instead of
SEARCH().
 

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

Back
Top