I would like to utilize range names in a SUMIF formula. The range name would refer to the column letter the range names was entered in.
As an example:
RangeName entered in Cell K1 = MyRangeName
Without using range names the formula would be: =SUMIF(A:A,B5,K:K)
I was thinking of something like: =SUMIF(A:A,B5,LEFT(ADDRESS(1,COLUMN(MyRangeName),4),LEN(ADDRESS(1,COLUMN(MyRangeName),4))-1)&”:”&LEFT(ADDRESS(1,COLUMN(MyRangeName),4),LEN(ADDRESS(1,COLUMN(MyRangeName),4))-1))
The reason I’m going with the range name approach is that the formula will eventually be on a different sheet and the range will move as new columns are inserted on the other sheet.
Any thoughts would be appreciated,
John