Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
jcharles
Contributor III
Contributor III

Help with IF please


I have a table in which two of the columns are a number column and the other is a name column as follows:

BranchIDBranchName
1Specialist - Tax
2Durban
3Northam
4Specialist - Personal Finance
5PMB

I want to say that wherever part of the word 'Spec' is found it must be aliased as a Specialist Department and if it does not have 'Spec' then it is a branch.

I tried this but when I do a list box on BRANCHTYPE it give me only BRANCH. How do I get this to work?

IF(BranchName = 'Spec*', 'SPECIALIST' , 'BRANCH') AS BRANCHTYPE

12 Replies
jagan
Luminary Alumni
Luminary Alumni

Yes, this is similar to Index().

Regards,

Jagan.

jcharles
Contributor III
Contributor III
Author


Thank you - This worked

MK_QSL
MVP
MVP

Glad that my answer help you.

Can you close this thread by selecting correct answer?