#42698 - 08/12/14 10:35 AM
Gridview Logical Functions
|
Adagio Enthusiast
Registered: 01/10/13
Posts: 25
Loc: Trenton, Ontario
|
What is the proper way to use multiple IF/OR/AND statements. In this particular case I want to:
Find {Item #} containing "YX" or "ZB" or "TV" and {Amt} * 2% Everything thing else I want {Amt} * 3.25%
I can get one function working:
IF( FIND("YX",{Item #},1), {Amt} * 2%, {Amt} * 3.25% )
But I am unsure on how to add the other two.
Thanks,
_________________________
Lance Tennier TDL Canada
|
Top
|
|
|
|
#42701 - 08/12/14 11:51 AM
Re: Gridview Logical Functions
[Re: Warren Karges]
|
Adagio Enthusiast
Registered: 01/10/13
Posts: 25
Loc: Trenton, Ontario
|
Thanks Warren,
I tried:
IF( OR( FIND("YX",{Item #},1), FIND("ZB",{Item #},1), FIND("TV",{Item #},1), ) {Amt} * 2%, {Amt} * 3.25% )
I cannot get it to verify. What would be the error?
Thanks,
_________________________
Lance Tennier TDL Canada
|
Top
|
|
|
|
#42702 - 08/12/14 11:53 AM
Re: Gridview Logical Functions
[Re: LanceBakker]
|
Adagio Action Team
Registered: 03/09/99
Posts: 11570
Loc: Vancouver, BC Canada
|
Remove the comma after the last FIND statement:
IF( OR( FIND("YX",{Item #},1), FIND("ZB",{Item #},1), FIND("TV",{Item #},1) ) {Amt} * 2%, {Amt} * 3.25% )
_________________________
Regards, Softrak Tech Support
|
Top
|
|
|
|
#42703 - 08/12/14 12:31 PM
Re: Gridview Logical Functions
[Re: Softrak Support]
|
Adagio Enthusiast
Registered: 01/10/13
Posts: 25
Loc: Trenton, Ontario
|
I hate to be a pain, but I have copied that exact formula into Gridview and I still fail the verification.
_________________________
Lance Tennier TDL Canada
|
Top
|
|
|
|
#42704 - 08/12/14 01:06 PM
Re: Gridview Logical Functions
[Re: LanceBakker]
|
Adagio Wizard
Registered: 06/15/04
Posts: 3617
Loc: Toronto ON, Canada
|
IF( OR( FIND("YX",{Item #},1) > 0, FIND("ZB",{Item #},1) > 0, FIND("TV",{Item #},1) > 0 ) {Amt} * 2%, {Amt} * 3.25% )
|
Top
|
|
|
|
#42706 - 08/12/14 08:08 PM
Re: Gridview Logical Functions
[Re: Warren Karges]
|
Adagio Wizard
Registered: 06/15/04
Posts: 3617
Loc: Toronto ON, Canada
|
Yes, Warren is correct (he has younger eyes).  The comma was missing. IF( OR( FIND("YX",{Item #},1) > 0, FIND("ZB",{Item #},1) > 0, FIND("TV",{Item #},1) > 0 ), {Amt} * 2%, {Amt} * 3.25% )
|
Top
|
|
|
|
#42707 - 08/13/14 05:52 AM
Re: Gridview Logical Functions
[Re: Bruce Gardner]
|
Adagio Maestro
Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
|
Thanks guys! It's working perfect now. 8-)
_________________________
Susan Tennier TDL Canada Trenton, Ontario
|
Top
|
|
|
|
|
1 registered (1 invisible),
84
Guests and
0
Spiders online. |
Key:
Admin,
Global Mod,
Mod
|
|
1865 Members
5 Forums
14482 Topics
70726 Posts
Max Online: 432 @ 01/20/25 10:17 PM
|
|
|
|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
29
|
30
|
31
|
|
|