Help with changing column reference in formula

  • Thread starter Thread starter GoBucks
  • Start date Start date
G

GoBucks

I have a long complex IF formula in which the following SUMPRODUCT formula is
contained.

SUMPRODUCT(--(AE11:AE20>0))

Depending on the value of cell A1, I would like to dynamically change the
column reference in the formula. For example:

IF A1 = 1, THEN use the column reference AE in the formula
IF A1 = 2, THEN use the column reference AF in the formula

Is there a way to accomplish this by INDIRECT or another formula? Thanks!
 
Back
Top