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

Field calculation of a checkbox field

Featured Replies

This should be easy for someone. I have a checkbox field with 9 options run off a custom value list. I am running a report of how many times each option is checked throughout the entire db.

There might be an easier way, but here is what I have. I have a calculation field for each option of the check box field. So I have 9 calculation fields. Each field will calculate a "1" if the option is checked. For example:

If(T_strategies= "Presentation";"1";"")

The problem is that if I have more than 1 tiem checked, the value of T_strategies is something else like: "Email Presentation" instead of just Presentation. How do I tell the calculation that if T-strategies has the word Presentation anywhere in it put a "1" in the field? Is there a wild card I can add to the formula so the calculation is

If(T_strategies= [color:red]any other text & "Presentation" [color:red]& any other text;"1";"") ? That is what I think would work but don't know how to do it.

Thanks for any help you can provide.

Here's an idea!

http://www.kevinfrank.com/download/counting-values.zip

--sd

  • Author

Thanks, I appreciate the help. Since I have a few of these situations in the database, I was hoping it would be a simple syntax solution with the existing formula rather than scripts. But this will certainly fit the bill. Many thanks.

You can use the position() function to find if a particular piece of text appears in a larger piece of text:

If(Position(T_strategies; "Presentation" ;1;1);"1";"")

  • Author

Brilliant. Just what I was looking for. Thanks to both of you.

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.