JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,676
- Office Version
- 365
- Platform
- Windows
Is there a better (simpler, more compact) way to access the top N cells in a table column that what I did in this example?
Thanks
Tables.xlsx | |||||||
---|---|---|---|---|---|---|---|
B | C | D | E | F | |||
2 | N | 3 | |||||
3 | Sum(N) | 13 | 28 | 257 | 127 | ||
4 | |||||||
5 | A | B | C | D | |||
6 | 5 | 3 | 97 | 32 | |||
7 | 5 | 6 | 87 | 1 | |||
8 | 3 | 19 | 73 | 94 | |||
9 | 10 | 11 | 47 | 56 | |||
10 | 6 | 17 | 44 | 96 | |||
11 | 9 | 6 | 25 | 83 | |||
First Value |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C3 | C3 | =SUM(OFFSET(Table9[[#Headers],[A]],1,0):OFFSET(Table9[[#Headers],[A]],N,0)) |
D3 | D3 | =SUM(OFFSET(Table9[[#Headers],[B]],1,0):OFFSET(Table9[[#Headers],[B]],N,0)) |
E3 | E3 | =SUM(OFFSET(Table9[[#Headers],[C]],1,0):OFFSET(Table9[[#Headers],[C]],N,0)) |
F3 | F3 | =SUM(OFFSET(Table9[[#Headers],[D]],1,0):OFFSET(Table9[[#Headers],[D]],N,0)) |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
'First Value'!N | ='First Value'!$C$2 | C3:F3 |
Thanks