Skip to content

Instantly share code, notes, and snippets.

@thomaslarsen
Created June 17, 2015 10:44
Show Gist options
  • Save thomaslarsen/5ba7ef6f3cfc72313231 to your computer and use it in GitHub Desktop.
Save thomaslarsen/5ba7ef6f3cfc72313231 to your computer and use it in GitHub Desktop.
Excel formula to generate the column name in a cell
=IF(COLUMN()>26,CHAR(INT((COLUMN()-1)/26)+64),"")&CHAR(MOD(COLUMN()-1,26)+65)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment