| 
| 
| 
| #42698 - 08/12/14 10:35 AM  Gridview Logical Functions |  
|   Adagio Enthusiast
 
 Registered:  01/10/13
 Posts: 25
 Loc:  Trenton, Ontario
 (209.183.24.247)
 | 
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
 (209.183.24.247)
 | 
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: 11647
 Loc:  Vancouver, BC Canada
 (184.70.7.174)
 | 
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
 (209.183.24.247)
 | 
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: 3651
 Loc:  Toronto ON, Canada
 (70.24.48.88)
 | 
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: 3651
 Loc:  Toronto ON, Canada
 (70.24.48.88)
 | 
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
 (209.183.24.247)
 | 
Thanks guys!  It's working perfect now.  8-) 
_________________________Susan Tennier
 TDL Canada
 Trenton, Ontario
 |  
| Top |  |  |  |  
 
 | 
| 
	
 
| 0 registered (), 
120 
Guests and
1 
Spider online. |  
| 
	Key:
	Admin,
	Global Mod,
	Mod
 | 
 |  
| 
 
| 1874 Members 5 Forums
 14561 Topics
 71056 Posts
 
 
 
Max Online: 484 @ 10/22/25 07:22 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 |  | 
 |  |