Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Building Calculation with Nested IF Statement

Featured Replies

Hello below is my calculation:

If(Print Total < 20.00, Freight 2006 A B Total + 0.50, If(Print Total = "20.00" <> "40.00" , Freight 2006 A B Total + 3.00, If(Print Total > 40.00, Freight 2006 A B Total + 4.00, Freight 2006 A B Total + 4.00)))

What I'm trying to configure is:

1. If my Print Total is < 20.00 add 0.50 to my freight cost.

2. If my Print Total is >20.00 <40.00 add 3.00 to my freight cost.

3. If my Print Total is >40.00 add 4.00 to my freight cost.

Please help!

Use a Case instead

Case ( Print Total ≤ 20; Freight 2006 A B Total + .5; Print Total < 40; Freight 2006 A B Total + 3; Freight 2006 A B Total + 4

)

  • Author

Thank you for the fast respond. When I copy and paste the formula i get a message indicate "This field cannot be found". I'm sorry its my fault i forgot to mention I am setting up the formula in pc filmaker pro 5.0.

Please Help!

Use commas instead of semicolons.

... and may be that the Case function wasn't there !

If (

Print Total ≤ 20 , Freight 2006 A B Total + .5 ,

If (

Print Total < 40 , Freight 2006 A B Total + 3 ,

Freight 2006 A B Total + 4

)

)

Hi Daniele,

I have used the Case Statement for as long as I can remember (getting to be less and less everyday, LOL), but I can only verify to version 4 right now, because I don't have older ones on this computer.

Tip to [color:orange]maiton,

I prefer the Case over the If because for me, it is easier to write and to read.

Lee

Overall, this is not a good method. You should not hard-code your prices into calculation formulas, because prices tend to change over time. Use a lookup instead. Filemaker allows looking up a range ('if no exact match, copy next higher/lower').

Lee, I too prefer the Case function :)

BTW: I said "may be", because I remember that there was some variation of the LOGICAL functions between 5 and 5.5

  • Author

AWESOME!!!

It work!!!!

THANK YOU EVERYONE FOR YOUR HELP

maiton, read carefully what comment said to you :)

  • Author

sorry for the confusion i have FM5.0 on my PC and FM8.0 on my mac.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.