Skip to main content
Solved

Convert LastUsedColumnNumber to Excel letter-representation

  • March 15, 2022
  • 1 reply
  • 18 views

Forum|alt.badge.img+4
  • AIMMS Partner
  • 12 replies

In version 4.71.4, I tried to use the LastUsedColumnNumber, and as the name already gives away it returns a number while I had hoped for a column name in the range of 1 to “ZZZ” like the ones that Excel uses. This would make it easier to also used it in the column/data range definition when reading data.

Can anyone advice on how to easily/efficiently translate this?

Thanks in advance!

Best answer by gdiepen

You can convert it from the numerical representation to the letter-representation using the axll::ColumnName function (see https://how-to.aimms.com/Articles/228/228-data-ranges.html#axll-functions)

View original

1 reply

gdiepen
AIMMS Champ
Forum|alt.badge.img+7
  • AIMMS Champ
  • 153 replies
  • Answer
  • March 15, 2022

You can convert it from the numerical representation to the letter-representation using the axll::ColumnName function (see https://how-to.aimms.com/Articles/228/228-data-ranges.html#axll-functions)