Indirect summation

BenElliott

Board Regular
Joined
Jul 19, 2012
Messages
144
Hello, all.

I can't find this question referenced in the forum before.

I have a sheet where Column 'A' always remains the same each year I use it. But I always add columns between column 'A' and 'C' each year, like this:
Year 1
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD][/TD]
[TD]2017
[/TD]
[TD]2016
[/TD]
[/TR]
[TR]
[TD]Turnover
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Year 2
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD][/TD]
[TD]2018
[/TD]
[TD]2017
[/TD]
[TD]2016
[/TD]
[/TR]
[TR]
[TD]Turnover
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So, everything moves across one column each year. The current year's figures are always in column 'B'

I have a small table elsewhere on the sheet that sumarises what is in Column 'B'. My problem is that by adding a column, the formulae in this table, even when absolute references (e.g. $B$2) adjusts to counter the adding of the column.

To get round this I have started using the =Indirect() instruction and by-and-large it works. But, I have one cell that refuses to give the correct answer.

the formula in this cell is
Code:
=INDIRECT("B11")+INDIRECT("B22")+INDIRECT("B23")+INDIRECT("B24")+INDIRECT("B25")+INDIRECT("B28")+INDIRECT("B30")*INDIRECT("B32")+INDIRECT("B35")+INDIRECT("B41")+INDIRECT("B42")+INDIRECT("B43")+INDIRECT("B29")
. The contents of these cells are

<colgroup><col width="89"></colgroup><tbody>
[TD="width: 89"]7, -158, 97, 913, 312, 203, 1020, 360, 804, 19986, 212, 11543
[/TD]

</tbody>
and their total should be 35,379 but my formula, above gives the result as 63,739 and for the life of me, I cannot see why.

So, my question is in two parts>
  1. Is the "Indirect" method the best one to use in stopping the change of abolute references?
  2. Is there a feature of using =Indirect that I'm not aware of?
Hope this makes sense.

Thanks,

Ben
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top