Как да получа буква на ред или колона от текущата клетка в Excel?
Автор: СлънцеПоследна промяна: 2020-06-03
Опитвали ли сте някога да получите буквата на реда или колоната на текущата клетка в Excel, както е показано на екранната снимка по-долу? Тук въвеждам някои формули за бързо получаване на буквата на реда или буквата на колоната на активната клетка.
None of those listed solve this. What I posted here does, regardless of it be "A" "AA" "AAA"
Note, Column() can be used to point to any number for a column, i.e. Column(13) returns "M", Column(53) returns "BA", Column(712) returns "AAJ" but be sure to update both mentioned instances.
This comment was minimized by the moderator on the site
To get any Column Letter:
=MID(ADDRESS(1,COLUMN()),2,LEN(ADDRESS(1,COLUMN()))-3)
ADDRESS(1,COLUMN()) returns $A$1, $AA$1, $XFD$1, etc. based on lookup position put into the () of column part of equation.
LEN counts characters
MID gathers characters at starting position and count length from there. Start at 2 to eliminate the initial $ and go total LEN - 3 to get rid of ending $1 as well as the starting $ because we shifted our start position.