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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to write a case... from ... to... 1

Status
Not open for further replies.

choochoowinn2009

Technical User
Feb 24, 2010
34
0
0
US
Hi,

How would I write a formula to change my service codes to the group code "Basic"?

These are my service codes:
1) A123
2) S5286
3) H1111
4) H1112
5) H1113
6) H1114
7) H1115
8) H1116
9) H1117
10) H1118

I know how to write a case to change each service code to "Basic", but how would you write the formula to show from H1111 to H1118 without having to type each service code individually?

Thank you for your help!

C
 
select {table.code}
case 'A123', 'S5286','H1111' to 'H1118' : 'Basic'
default : 'Other' //or {table.code}

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top