Link to home
Start Free TrialLog in
Avatar of sandramac
sandramac

asked on

Finding Certain Criteria

I have a sheet that uses the index function to return data based on some criteria.  What I am needing is a formula that will search on a sheet in cells N3:N10 for +SHRA, if found, then the resulted value would be a 5, if SHRA is found, then the value would be a 4, if -SHRA is found then it would be a 3, if nothing is found then it would be a 0.  The tricky part is I could have multiple of those values.  So I need to search for +SHRA first, then if not found then search for SHRA, if not found, then -SHRA.
ASKER CERTIFIED SOLUTION
Avatar of Jacques Geday
Jacques Geday
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Sandra,

Try below:
=IF((COUNTIFS($N$3:$N$10,"*+SHRA*")>0),5,IF((COUNTIFS($N$3:$N$10,"*-SHRA*")>0),3,IF((COUNTIFS($N$3:$N$10,"*SHRA*")>0),4,0)))

Open in new window

Avatar of sandramac
sandramac

ASKER

Thanks, it works perfectly.
Glad it did !
gowflow