| To: | jmp-l@lists.biostat.wustl.edu |
|---|---|
| Subject: | Re: Need help to create a formula |
| From: | Michael Young <meyoung@siu.edu> |
| Date: | Thu, 02 Jun 2005 20:27:25 -0500 |
| In-reply-to: | <OF0D4B3119.D5A1C0C0-ON86257014.007CF7FB@northamerica.intra.abbott.com> |
| References: | <OF0D4B3119.D5A1C0C0-ON86257014.007CF7FB@northamerica.intra.abbott.com> |
|
Dr. Metz,
Here's a column formula that worked
for a simplified version of your situation (just three food
columns):
t3 = If( :hot dog > 0, "hot
dog;", "") || If( :pizza > 0, "pizza;",
"") || If( :pop > 0, "pop;", "");
Substr(t3, 1, Length(t3) - 1)
You just concatenate the results of
a series of If statements. The result is assigned to a temporary
variable (t3 in my example) only because the concatenation method will
leave you with an extra semicolon at the end; the substr removes that
extra semicolon.
If I understood your problem
correctly, this should do the job.
Cheers,
Mike
-- Dr. Michael E. Young
Southern Illinois University 271F Life Sciences II Carbondale, IL 62901-6502 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Need help to create a formula, James T Metz |
|---|---|
| Next by Date: | Re: Need help to create a formula, James T Metz |
| Previous by Thread: | Need help to create a formula, James T Metz |
| Next by Thread: | Re: Need help to create a formula, James T Metz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |