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.

Counting pairs of numbers in a record

Featured Replies

My records are made up of the fields N1 to N6. Is there any way that I can calculate how many pairs of numbers there are i.e. 11 / 12 or 34 / 35 etc

One would thus be identifying consecutive numbers. . .

Here's one way I came up with:

( ValueCount( FilterValues( List(n2;n3;n4;n5;n6); List(n1-1; n1; n1+1) ) ) +

ValueCount( FilterValues( List(n1;n3;n4;n5;n6); List(n2-1; n2; n2+1) ) ) +

ValueCount( FilterValues( List(n1;n2;n4;n5;n6); List(n3-1; n3; n3+1) ) ) +

ValueCount( FilterValues( List(n1;n2;n3;n5;n6); List(n4-1; n4; n4+1) ) ) +

ValueCount( FilterValues( List(n1;n2;n3;n4;n6); List(n5-1; n5; n5+1) ) ) +

ValueCount( FilterValues( List(n1;n2;n4;n4;n5); List(n6-1; n6; n6+1) ) )

) / 2

This counts an exact match with another number as a pair also.

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.