Brian Dunning's FileMaker Custom Functions

fnGetExcelColumnName ( rep )

Converts numbers to related Excel column names (ie. 1 = A, 2 = B, 27 = AA, 28 = AB...)

  Average rating: 4.5 (29 votes) Log in to vote

Drew Wesley   Drew Wesley
Drewsol
http://www.drewsol.com

Share on Facebook Share on Twitter

  Sample input:
fnGetExcelColumnName ( 1 )
fnGetExcelColumnName ( 2 )
fnGetExcelColumnName ( 27 )
fnGetExcelColumnName ( 28 )
  Sample output:
A
B
AA
AB

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This function is used to convert column numbers (starting with '1') to related Excel column names.

 

Comments

comment   comment, VR
Jun 28, 2014
Have a look at DecToAlpha ( ):
http://www.briandunning.com/cf/399
 
Drew Wesley   Drew Wesley, Los Angeles, CA
Jun 28, 2014
Ah, I didn't see that one - thanks.
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: