Académique Documents
Professionnel Documents
Culture Documents
INPUT OUTPUT
100 0 1 2 3 4
200 100 200 300 400 500
300
400 or without the column index numbers:
500 100 200 300 400 500
NOTE1
To transpose in the reverse direction change the offset from rows to cols
0 1 2 3 4 5
Sheet2.$B$4 Sheet2.$B$5 Sheet2.$B$6 Sheet2.$B$7 Sheet2.$B$8 Sheet2.$B$9
Sheet2 6.9039534 24.858782 59.22974877 16.49539 22.36154788 33.894443385
NOTE1
Indirect returns a reference to a cell address specified as a string input. If the reference is to a single cell then the for
value in that cell.
NOTE2
This technique allows you to easily copy your formula to new rows/columns as you add more worksheets.
NOTE3
This technique can also be used to transpose a table as an alternative to the OFFSET formula
INPUT CALCULATION
NOTE1
Timesteps don't have to be uniform in size but the date at which the cummulative
total is being looked up must always exist (eg. 01/01/2007, 01/01/2008 ...)
However, if there are dates which are close to the date but slightly greater than it
(eg. 04/01/2007) then you can change the 'FALSE' to 'TRUE in the Cum.Annual
lookup function with some resulting loss in accuracy
NOTE2
In this example rate the initial rate is assumed to continue for the duration of that
timestep. You could take the average of the initial and final rates but this would
result in errors during any shutdown, restart or new development. See the chart
below
120
Use of avg rate between timesteps
would result in under-prediction in 2007
115 and over-prediction in 2008
110
105
125 Initial rate held for duration of timestep
Avg rate assumed between timesteps
120
Use of avg rate between timesteps
would result in under-prediction in 2007
115 and over-prediction in 2008
110
105
100
1/1/2007
3/1/2007
5/1/2007
7/1/2007
9/1/2007
11/1/2007
1/1/2008
3/1/2008
5/1/2008
7/1/2008
9/1/2008
11/1/2008
1/1/2009
3/1/2009
5/1/2009
7/1/2009
9/1/2009
11/1/2009
1/1/2010
3/1/2010
5/1/2010
7/1/2010
9/1/2010
11/1/2010
1/1/2011
Formulas that increment in blocks
=INDIRECT(ref_text,a1)
=ADDRESS(row_num,column_num,abs_num,a1,sheet_text)
INPUT OUTPUT
Determine curve fit equation dynamically - without having to create a chart and use the trendline function
Data 150
x x2 y
-4 16 48
-2 4 14 100
0 0 4
50
0
-6 -4 -2 0 2 4 6 8
150
100
4 16 56
50
6 36 118
8 64 204
0
Fitted coefficients -6 -4 -2 0 2 4 6 8
a b c
3 1 4
NOTE1
LINEST uses the least squares method to fit the coefficients. Because it returns an array of values, it must be entere
(select the cells under the data, enter the formula then hold down SHIFT & CONTROL as you click ENTER)
OR you can use it inconjunction with the INDEX function - see below:
a 3
b 1
c 4
NOTE2
This approach can also be used to fit an equation where there is more than one 'x' parameter - eg. Pout = f(Pin, Rate
Simply include all the columns containing 'x' data in the [known_x's] input range
Infact this is the same as what we have done in the above example - it just happens that the second x parameter (x
X parameters are not limited to 2, eg. In the above example you could have Pout = f(Pin, Rate, Rate2) … Pout = a.Pi
NOTE1
Uses an array formula which evaluates all values in the range in a loop. When entering an array formula you must cl
when finished
NOTE2
This trick can be useful for determining the size of a list for example, when creating a dynamic range (see example b
NOTE3
There is nothing special about the word "EMPTY" used in this formula - it is simply appended to any blank cell in the
and then the MATCH formula returns the index of the first instance it finds. Any word could be used as illustrated be
6
NOTE1
Each of the equations used here are illustrated separately above.
Cell Information
=CELL(info_type,reference)
Filename
'file:///conversion/tmp/scratch/38701275.xls'#$Sheet1
Value type
1 text
b v l
blank value label
heet name])
more worksheets.
CALCULATION
trendline function
50
00
50
00
50
0
0 2 4 6 8 10
50
00
50
0
0 2 4 6 8 10
85
63