Using this sample below, the two formula I've been trying and playing around with from multiple google/yt search points to this, which does not calculate the intended return I am trying to achieve. My goal is trying to get the same result as what is in F13 (SUM) and F14 (Average), without the use of the Helper column I added to manually reference which value the sum and average formula "should" be pulling from Column C and D [Current:Previous].
More specifically, using only ONE value that is greater between column C & D in each row and only adding those values up to sum and average. If both column are equal, return will just use one of the two columns. If blank, it would technically use the other column with the value instead.
I have seen many similar question online but believe me when I say this, I've been on the google hunt the past few days trying different solutions and unless I am just not following the correct conditions this should be such a simple formula right?
Side question, Is it possible to turn these two formula to work with a dynamic filtered table without the use of any volatile function? I have already learnt on how to achieve this with a helper column calculating subtotal. But Is this even possible without the use a helper column and not use volatile functions such as offset?
More specifically, using only ONE value that is greater between column C & D in each row and only adding those values up to sum and average. If both column are equal, return will just use one of the two columns. If blank, it would technically use the other column with the value instead.
I have seen many similar question online but believe me when I say this, I've been on the google hunt the past few days trying different solutions and unless I am just not following the correct conditions this should be such a simple formula right?
Sample.xlsm | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Group | Category | Current | Previous | Helper using MAX() | |||
2 | A | One | 20.09% | 26.12% | 26.12% | |||
3 | B | One | 64.72% | 64.72% | ||||
4 | C | Two | 40.37% | 40.37% | 40.37% | |||
5 | D | One | 35.73% | 35.73% | 35.73% | |||
6 | E | Two | 60.00% | 60.00% | ||||
7 | F | Two | 20.00% | 20.00% | ||||
8 | G | One | 16.59% | 16.59% | ||||
9 | H | One | 60.67% | 60.67% | ||||
10 | I | One | 42.02% | 29.87% | 42.02% | |||
11 | J | One | 28.07% | 28.07% | ||||
12 | ||||||||
13 | Not intended values with SUM() and AVERAGE() >>> | 172.32% | Intended values to return >>> | SUM= | 394.29% | |||
14 | 34.46% | AVERAGE= | 39.43% | |||||
Sample Data |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F2:F11 | F2 | =MAX(Table1[@[Current]:[Previous]]) |
C13 | C13 | =SUM(IF(Table1[Previous] >= Table1[Current], Table1[Previous], Table1[Current])) |
C14 | C14 | =AVERAGE(IF(Table1[Previous] >= Table1[Current], Table1[Previous], Table1[Current])) |
F13 | F13 | =SUM(F2:F11) |
F14 | F14 | =AVERAGE(F2:F11) |
Side question, Is it possible to turn these two formula to work with a dynamic filtered table without the use of any volatile function? I have already learnt on how to achieve this with a helper column calculating subtotal. But Is this even possible without the use a helper column and not use volatile functions such as offset?