Skip 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.

CASE function

Featured Replies

Am I using the right calculation for this senario...It won't work

Case( Hourly Rate < 65;"15";Hourly Rate ≥ 65 and Hourly Rate < 80;"16" ; Hourly Rate ≥ 80 and Hourly Rate < 100;"17" ; Hourly Rate ≥ 100 and Hourly Rate < 125;"20")

You haven't said WHY it doesn't work but I can see 2 reasons

1. Hourly Rate > 125

as you have not specified a default value at the end of your clauses.

Case(

Hourly Rate < 65;"15";

Hourly Rate ≥ 65 and Hourly Rate < 80;"16" ;

Hourly Rate ≥ 80 and Hourly Rate < 100;"17" ;

Hourly Rate ≥ 100 and Hourly Rate < 125;"20";

"25")

)

2. The target field is not a TEXT field - do you mean it to be a NUMBER field?

Case(

Hourly Rate < 65;15;

Hourly Rate ≥ 65 and Hourly Rate < 80;16 ;

Hourly Rate ≥ 80 and Hourly Rate < 100;17 ;

Hourly Rate ≥ 100 and Hourly Rate < 125;20;

25

)

  • Author

Hi,

Thanks for your reply.

1. When I enter a value below 65 I get the resul of 15, when I enter a result between 65 and 79 I get the result of 16 although anything above 79 I get a 0 result. I would like to get the following reults

less then 65 = 15

65-79 = 16

80-99 = 17

100-125 = 20

I get the first two results correct just not after that.

I have modified the text to numbers and added a default value of 0 as suggested.

Your original formula should work as intended - however, Hourly Rate must be a Number field. Otherwise the comparison is evaluated using alphabetic order, and "100" comes before "80".

BTW, you have no result for Hourly Rate 125 and above. Assuming that the highest possible Hourly Rate is 124, you could simplify the formula to:

Case (

Hourly Rate < 65 ; 15 ;

Hourly Rate < 80 ; 16 ;

Hourly Rate < 100 ; 17 ;

20

)

The Case () function returns the result of the FIRST true test, so there's no need to check the lower limit.

  • Author

thankyou for you help...all fixed

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.