I'm trying to use the Columns function. For array I'm using range name. If I put the range name directly on the formula it gives me the desired result. I want the formula to read the range name from a cell. Where I can type different range names instead of changing the range name (array) directly inside the formula.
range contains 7 rows and 22 columns.
range name = P2_
formula - =columns(P2_) returns 22 which is the desired result
formula =columns(C3) where C3 have P2_ typed in returns a result of 1
range contains 7 rows and 22 columns.
range name = P2_
formula - =columns(P2_) returns 22 which is the desired result
formula =columns(C3) where C3 have P2_ typed in returns a result of 1