I am trying the sum col AP:BA based on the period number in AN1. The sum formula needs to be dynamic as the period number changes. My problem is that my width argument that takes the first 2 characters from AN1 (which is in a date format) = 44 instead of 08. Is there any way to overcome this problem without having to change the format/type of AN1. If I change the format of AN1 it will cause formulas elsewhere in the spreadsheet to fail. Any advice greatly appreciated.
Cell Formulas | ||
---|---|---|
Range | Formula | |
AN1 | AN1 | =C4 |
AP2 | AP2 | =SUM(OFFSET(AP1,0,0,1,LEFT(AN1,2)),0) |