Hi guys,
I have the following formula:
=SUM(OFFSET(B2,0,0,1,-4))
This formula returns the summed value of all 3 columns to the left of B2 as well as B2.
I'm having an issue whenever I want to change the reference to something else dynamically rather than hardcoding it. So instead of B2, it could be CA99, X15, e.t.c. This cell reference changes based on a location of a certain unique number, so it changes frequently.
Is there any way to do this?
I'm thinking that I have to designate another cell (lets say A1) that will contain the dynamic cell reference.
I've been playing around with CELL and INDIRECT but I can't get anything to work.
I have the following formula:
=SUM(OFFSET(B2,0,0,1,-4))
This formula returns the summed value of all 3 columns to the left of B2 as well as B2.
I'm having an issue whenever I want to change the reference to something else dynamically rather than hardcoding it. So instead of B2, it could be CA99, X15, e.t.c. This cell reference changes based on a location of a certain unique number, so it changes frequently.
Is there any way to do this?
I'm thinking that I have to designate another cell (lets say A1) that will contain the dynamic cell reference.
I've been playing around with CELL and INDIRECT but I can't get anything to work.