Looking for some inspiration.
In my job (engineering) I very frequently come across a problem where data is output in columns of data, where I might have two slightly different values at any given point, ie:
Normally this comes from modelling where results have been extracted and it is giving results either side of a nodal point.
What I'd like to be able to do is write a formula (or a custom function) that averages the values and presents them in a similar format, so the above table would become:
etc.
I've done something like this before, but it was a very cumbersome formula using nested OFFSET() and ROW() functions, combined with a few other factors that just made it not easy to use.
Anyone got any ideas?
In my job (engineering) I very frequently come across a problem where data is output in columns of data, where I might have two slightly different values at any given point, ie:
Code:
A B
1 Coord Value
2 0.0 25.325
3 0.4 25.221
4 10.0 15.417
5 10.5 15.339
6 20.0 10.778
7 20.3 10.912
What I'd like to be able to do is write a formula (or a custom function) that averages the values and presents them in a similar format, so the above table would become:
Code:
A B C D
1 Coord Value Av. Coord. Av. Value
2 0.0 25.325 0.2 25.273 [(0.0 + 0.4) / 2] and [(25.325 + 25.221) / 2]
3 0.4 25.221 10.25 15.378 [(10.0 + 10.5) / 2] and [(15.417 + 15.339) / 2]
4 10.0 15.417 20.15 10.845 [(20.0 + 20.3) / 2] and [(10.778 + 10.912) / 2]
5 10.5 15.339 ... ...
6 20.0 10.778
7 20.3 10.912
8 ... ... ... ...
...
...
...
I've done something like this before, but it was a very cumbersome formula using nested OFFSET() and ROW() functions, combined with a few other factors that just made it not easy to use.
Anyone got any ideas?