Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using wildcard with or

Status
Not open for further replies.

skurkal

IS-IT--Management
Apr 6, 2005
37
US
I have a data set that looks like

Payee Amount
Target 010 10
Target 011 20
Target 001 30
Home Depot 01 10
Home Depot 02 20
Home Depot 001 30

It want to group this into a HomeImprovement category. How to I write a formula that allows :

If Payee like ('Target*' or 'Home Depot *) then 'HomeImprovement"
Else 'Other'

I am using CR XI, and it does not allow using like and or together.
Thanks!
 
you can separate it out, like this:

If payee like 'Target*' then "HomeImprovement"
ELSE
If payee like 'Home Depot *' then "HomeImprovement"
else "Other"
 
Try:

If Payee like ['Target','Home Depot'] then 'HomeImprovement"
Else 'Other'
 
This worked ...

If Payee like ['Target*','Home Depot*'] then 'HomeImprovement"
Else 'Other'


Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top