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.

Get number's alphabetic equivalent?

Featured Replies

My solution has invoice numbers with five digits followed by a letter. I'd like to let my users preview what the subsequent invoice number in a particular series would be, before it's created (why? Long Story).

In other words, if invoices 20000a, 20000b, and 20000c exist, then I want a tooltip to show that the next invoice to be created in the 20000 series would be 20000d. Auto-enter serial numbers are not being used, btw.

I'm working on a formula that's getting me close:

Let ( [

trailingLetter = Right ( invoiceNumber ; 1 ) ;

trailingLetterAsNumber = Position ( "abcdefghijklmnopqrstuvwxyz" ; trailingLetter ; 1 ; 1 ) ;

trailingLetterPlusOne = trailingLetterAsNumber + 1 ;

subsequentLetter = GetAsText ( trailingLetterPlusOne ) ] ;

Left ( invoiceNumber ; 5 ) & subsequentLetter & " is the next invoice in this series." )

I need to get the next-to-last line of this formula to convert the number to a letter. Obviously, GetAsText isn't going to work, and I don't know what will.

Hope this makes sense; Suggestions greatly appreciated. Many thanks--

How about:


Let ( [

alpha = "abcdefghijklmnopqrstuvwxyz" ; 

trailingLetter = Right ( invoiceNumber ; 1 ) ;

trailingLetterAsNumber = Position ( alpha ; trailingLetter ; 1 ; 1 ) ;

subsequentLetter = Middle ( alpha ;  Mod ( trailingLetterAsNumber ; 26 ) + 1 ; 1 )

] ;

Left ( invoiceNumber ; 5 ) & subsequentLetter & " is the next invoice in this series." 

)

Edited by Guest
Another typo

Try this:

Let ( [

trailingLetter = Right ( invoiceNumber ; 1 ) ;

trailingLetterAsNumber = Position ( "abcdefghijklmnopqrstuvwxyz" ; trailingLetter ; 1 ; 1 ) ;

trailingLetterPlusOne = trailingLetterAsNumber + 1 ;

subsequentLetter = Middle ("abcdefghijklmnopqrstuvwxyza"; trailingLetterPlusOne );1 ] ;

Left ( invoiceNumber ; 5 ) & subsequentLetter & " is the next invoice in this series." )

You still need to look after the situation where the current number ends in "Z", but this should get you going.

  • Author

Thank you so much for your quick replies and useful suggestions, Comment and BobWeaver. Problem solved! Much appreciated.

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.