JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,687
- Office Version
- 365
- Platform
- Windows
I swear I've done this before, but it's not working today and I cannot figure out why.
In the table below, I have assigned the name "Header" to row 6 and "Footer" to row 12. In C12, I calculate the average of the ratings in C7:C11. In C13, I try to do the same thing, but using the named ranges. Why isn't it working?
[TABLE="class: grid, width: 562"]
<tbody>[TR]
[TD][/TD]
[TD]C/R[/TD]
[TD]C[/TD]
[TD]D
[/TD]
[/TR]
[TR]
[TD]Header->[/TD]
[TD]6[/TD]
[TD]Rating[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]7[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]8[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]9[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]10[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]11[/TD]
[TD]1[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]Footer->[/TD]
[TD]12[/TD]
[TD]3.00[/TD]
[TD]C12: =AVERAGE(C7:C11)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]13[/TD]
[TD]4.00[/TD]
[TD]C13: =AVERAGE(OFFSET(Header,1,0):OFFSET(Footer,-1,0))[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]14[/TD]
[TD]6[/TD]
[TD]C14: =ROW(Header)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]15[/TD]
[TD]12[/TD]
[TD]C15: =ROW(Footer)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]16[/TD]
[TD]5[/TD]
[TD]C16: =OFFSET(Header,1,0)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]17[/TD]
[TD]1[/TD]
[TD]C17: =OFFSET(Footer,-1,0)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]18[/TD]
[TD]7[/TD]
[TD]C18: =ROW(OFFSET(Header,1,0))[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]19[/TD]
[TD]1[/TD]
[TD]C19: =COLUMN(OFFSET(Header,1,0))[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]20[/TD]
[TD]11[/TD]
[TD]C20: =ROW(OFFSET(Footer,-1,0))[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]21[/TD]
[TD]1[/TD]
[TD]C21: =COLUMN(OFFSET(Footer,-1,0))[/TD]
[/TR]
</tbody>[/TABLE]
In the table below, I have assigned the name "Header" to row 6 and "Footer" to row 12. In C12, I calculate the average of the ratings in C7:C11. In C13, I try to do the same thing, but using the named ranges. Why isn't it working?
[TABLE="class: grid, width: 562"]
<tbody>[TR]
[TD][/TD]
[TD]C/R[/TD]
[TD]C[/TD]
[TD]D
[/TD]
[/TR]
[TR]
[TD]Header->[/TD]
[TD]6[/TD]
[TD]Rating[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]7[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]8[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]9[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]10[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]11[/TD]
[TD]1[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]Footer->[/TD]
[TD]12[/TD]
[TD]3.00[/TD]
[TD]C12: =AVERAGE(C7:C11)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]13[/TD]
[TD]4.00[/TD]
[TD]C13: =AVERAGE(OFFSET(Header,1,0):OFFSET(Footer,-1,0))[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]14[/TD]
[TD]6[/TD]
[TD]C14: =ROW(Header)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]15[/TD]
[TD]12[/TD]
[TD]C15: =ROW(Footer)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]16[/TD]
[TD]5[/TD]
[TD]C16: =OFFSET(Header,1,0)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]17[/TD]
[TD]1[/TD]
[TD]C17: =OFFSET(Footer,-1,0)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]18[/TD]
[TD]7[/TD]
[TD]C18: =ROW(OFFSET(Header,1,0))[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]19[/TD]
[TD]1[/TD]
[TD]C19: =COLUMN(OFFSET(Header,1,0))[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]20[/TD]
[TD]11[/TD]
[TD]C20: =ROW(OFFSET(Footer,-1,0))[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]21[/TD]
[TD]1[/TD]
[TD]C21: =COLUMN(OFFSET(Footer,-1,0))[/TD]
[/TR]
</tbody>[/TABLE]