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

Making one word into another (last question today I promise)

Status
Not open for further replies.

Yustrn

Instructor
Jun 19, 2002
42
US
O.K,

Let's say I have 4 different departments

Sales
Management
Executive
High Level Exc


I'm looking for a formula for when it come accross the word Sales it makes that Department one, Management would be Department 15, ect ect....what can I use for this? This is Crystal 7
 
You can use an if-then:

if {table.department} = "Sales" then 1 else
if {table.department} = "Management" then 15 else
if {table.department} = "Purchases" then 25 else
0

-LB
 
If you want the results to be strings, enclose the numbers in quotation marks.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top