excel formula - Store column name in an extra cell -
by now, use =function(tablename[[columnname]:[columnname]])
. there (easy) way store columnname
in cell x1
, use =function(tablename[[x1]:[x1]])
my table named tablename
:
columna columnb 1 2 b 3 c 4 d
cell a1
= columna
<-the string
cell b1
= =counta(tablename[[columna]:[columna]])
cell a2
= columnb
<-the string
cell b2
= =counta(tablename[[columnb]:[columnb]])
my aim formulas in b1
, b2
use values in a1
, a2
.
what tried yet like: =counta(tablename[[indirect(a1)]:[indirect(a1)]])
the indirect function converts text string usable cell reference or in case structured (list object) table name.
=vlookup(k3, indirect(j3), 3, false)
in sample worksheet illustrated above, j3 data validation list source of aa2:aa3. k3 typed value , l3 contains formula. if j3 switched table1 l3 becomes 66.
Comments
Post a Comment