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.

HELP! Count cell if cellvalue = "x"

Featured Replies

I've converted an old Excel spreadsheet to a FM database. In my old Excel file I had a list with a column called MoD that contained one of six possible values (FTP, AdDrop, Disk, AdExpress, AdDirect or empty).

My new FM database contains a cell called MoD and I need to be able to count how many records have a value of "FTP in this cell, how many have "AdDrop" in this cell, and so on and so on...

I can do it using AppleScript but it's very slow as it has to check every record individually. I need this to be quick, dynamic and accurate.

I'm a newbie to FM so if you can help me out with clear, precise instructions I would really appreciate it!

Thanks,

Robert

Use the following fields:

MoD (text) <-- your original field

FTPFlag (calculation, number): MoD = "FTP" <-- this look funny, but doesn't need an "If" or "Case" as it produces a boolean result.

AdDropFlag (calculation, number): MoD = "AdDrop"

DiskFlag (calculation, number): MoD = "Disk"

etc.

Then:

CntOfFTP (summary field): Total of FTPFlag

CntOfAdDrop (summary field): Total of AdDropFlag

etc.

The summary fields operate upon the found set to give a total of the flag fields.

-bd

  • Author

Bless you, my son!

This was EXACTLY what I was looking for.

R

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.