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.

Calculation Question

Featured Replies

I have a file with values such as A1,A2,A3,A4...A200. I want to create a "Sort by" field that will contain the corresponding number of " " spaces based on the number in the value.

Ex. For A6 I want 6 spaces in my "Sort by" field.

What calculation do I need to do this.

If your field with values "A1", "A2", ... "A200" is named MyField, then you can try...

Right(" (200 or more spaces between the quotes) ";

GetAsNumber(Substitute(MyField; "A"; "")) )

Requiring a lot of spaces is a little odd. Are you sure there's not an easier way to accomplish whatever you are going for?

For example, to generate a numeric sort field you could create a calculation that returns a number like this.

GetAsNumber(Substitute(MyField; "A"; ""))

  • Author

What I'm trying to do is create a value list that will display A1,A2,A3...A200 but sort it numerically. Any suggestions?

How about add leading zeros to the numeric part?

A1 --> A0001

A2 --> B0002

...

A200 --> A0200

If the code always starts with "A" you could do

SerialIncrement("A0000"; GetAsNumber(Substitute(MyField;"A";""))))

or use the old technique of prefixing zeros manually

"A" & Right("0000" & GetAsNumber(Substitute(MyField;"A";"")); 4)

I have a file with values such as A1,A2,A3,A4...A200. I want to create a "Sort by" field that will contain the corresponding number of " " spaces based on the number in the value.

Cannot be done: the "spaces method" is limited to around 100 spaces. Values above that will get identical entries in the index.

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.