Excel Tutorial
Excel Tutorial
Dose = 1000 mg
Time Conc
(hr) (mg/L)
Use of Spreadsheets 0 100.0
1 89.1
(Excel) 2 79.4
4 60.0
to Calculate 12 25.0
18 12.5
Pharmacokinetic 24 6.25
Parameters. Calculate
Vd, k, half-life,
AUC (0-t & 0 inf),
and Clearance
Dose e -kt
C = ----------
V
Brief Tutorial on the use of Spreadsheets (Excel)
A spread sheet is
designed to complete
numerical calculations
which can be
automated
to allow
data analysis,
projections,
reporting and
construction of graphs
and other
visual aid plots.
Brief Tutorial on the use of Spreadsheets (Excel)
Spreadsheets consist
of rows and columns
In Excel the columns are
given alphabetic labels
A, B, C. D . X, Y, Z, AA, AB
Each cell
can contain
a variety of
types
of information
Words
Numbers
Dates
Formula
Pictures etc.
Creating Formula:
Formula can be constructed by
first initiating a formula
with an equal sign =
and then using the following operators:
Addition: +
Subtraction: -
Division: /
Multiplication: *
such that (3x4)divided by 2 is would convert to:
=(3*4)/2
Creating Formula:
Column A contains
a series of numbers.
In cell A6
we can create a
formula to add all of
the numbers in
column A together.
This can be done
at least two ways:
1. Brute Force:
= A1+A2+A3+A4+A5
Enter the
Concentration-Time
data into Excel.
Draw
a [ ]-time profile
and
Calculate:
Volume of Distribution
Half-life,
Area Under the Curve
Clearance
Brief Tutorial on the use of Spreadsheets (Excel)
Draw
a [ ] - time profile
Draw
a [ ] - time profile
Draw
a [ ] - time profile
Draw
a [ ] - time profile
Draw
a [ ] - time profile
Draw
a [ ] - time profile
Draw
a [ ] - time profile
6. On return to the
Wizard your graph
should look like a
[ ] time profile.
Brief Tutorial on the use of Spreadsheets (Excel)
Draw
a [ ] - time profile
6. On return to the
Wizard your graph
should look like a
[ ] time profile.
7. Enter labels for
the x and y axis.
Other tabs allow further
refinements to the graph.
You could eliminate
the legend.
Brief Tutorial on the use of Spreadsheets (Excel)
Draw
a [ ] - time profile
Your sheet should now look similar to this, although relative size may be different.
Brief Tutorial on the use of Spreadsheets (Excel)
Calculate:
Volume of Distribution
Half-life,
Area Under the Curve
Clearance
Calculate:
Volume of Distribution
Half-life,
Area Under the Curve
Clearance
Calculate:
Volume of Distribution
Half-life,
Area Under the Curve
Clearance
A Note on Half-life:
What is the correct half life?
The choice of points to be
included in the terminal
phase is more obvious in a
1C model with IV bolus
administration than
following oral absorption or
any situation where the
first points are uncertain.
Establish the choice of the
number of points in the
terminal phase using linear
regression and the best r-value.
Start with the last two points in the terminal phase. Place a straight line through the points
using linear regression and the slope function. Also calculate the correlation coefficient
[correl] using the wizard for this set of points. Repeat this process, each time increasing
the number of points in the terminal phase. Greatest r-value & greatest # point is best.
Brief Tutorial on the use of Spreadsheets (Excel)
A. This slide involves some statistics and pharmacokinetics and is included as a more complete
evaluation of the kinetics of this data set. Also, it should be pointed out, that the "answer" for the
procedure discussed on one slide is shown on the next slide.
Visual inspection of the graph & data from 12 to 18 hours and 18 to 24 hours will indicate that the half-life
is about 6 hrs. Equations will also yield a half-life of 6 hours If you use any two concentrations based on
times of time zero, 12, 18 or 24 hours.
However, in this data set, and in concentrations drawn from patients, rounding and or inaccuracy in
sample timing or sample analysis will result in concentrations which may not all fall exactly on the line.
For example, it would appear that I developed this concentration-time profile using the 6 hour half-life
(k=0.1155 hr-1) just calculated.
The actual concentration in the table is 89.1 mg/L. This is a minor deviation but serves to show that not all
concentrations will lie directly on the line.
Brief Tutorial on the use of Spreadsheets (Excel)
Deviations like this and actually much greater than this will occur all the time in pharamcokinetics, but
you are usually unable to identify any particular concentration as being in error. Therefore, you must
assume that the deviations occur with equal likelihood across all concentrations. As a result, analysis of
the half-life is often done using more than just two selected concentrations.
Half-life is usually calculated by finding the "average" or most likely slope running through a number of
concentrations. This involves linear regression and the use of the Excel function "SLOPE"
When you are using the SLOPE function you may not realise that you are using linear regression.
As slide 24 points out, start with the last two points in the terminal phase (time 18 and 24 hr). Place a
straight line through the points using linear regression and the slope function from Excel. Also calculate
the correlation coefficient [correl using Excel] using the wizard for the same set of points. Repeat this
process, each time increasing the number of points in the terminal phase. In doing this you must first
convert concentrations to their log values. The choice of points to be included in the terminal phase is
more obvious in a 1C model with IV bolus administration than following oral absorption or any situation
where the first points are uncertain. In this data set and in most 1C model data sets we have started with
the last 2 point because these two points are in the terminal phase. While all points are obviously in the
terminat phase in this example, following and IV infusion, oral absorption or IV bolus with distribution, the
number of points which could potentially be included will vary depending on the observed kinetic results.
Brief Tutorial on the use of Spreadsheets (Excel)
It seems that the very minor rounding procedure that appeared in time points 1 and 2 hours resulted in a
deviation of 0.02 hr from the estimated 6 hr half-life (~1 minute!).
Brief Tutorial on the use of Spreadsheets (Excel)
Calculate:
Volume of Distribution
Half-life,
Area Under the Curve
Clearance
Calculate:
Volume of Distribution
Half-life,
Area Under the Curve
Clearance
Calculation of the AUC
from 24 hours to infinity
[AUC ([LP*] )]
can be calculated by the
pharmacokinetic method.
AUC = [ ]24/k
* Where LP means Last Point
Since the estimate of K or T affects this calculation, complete this calculation
for all estimated elimination rate constants in cells F17 F22. Total AUC (0)
can be calculated by adding AUC(0-t) [B24] and the best estimate of AUC (0).
Brief Tutorial on the use of Spreadsheets (Excel)
The placement of the $ in the formula is important. The formula for AUC (LP)
in call F17 would be: =B10/K17 Dragging the formula to F18 yield: =B11/K18.
Placing the $ between B and 10 fixes the cell at line 10. [ =B$10/K17]
Brief Tutorial on the use of Spreadsheets (Excel)
Calculate:
Volume of Distribution
Half-life,
Area Under the Curve
Clearance
Clearance can be
calculated two ways
with this data.
1. Clearance = Dose / AUC
2. Clearance = k * Vd
Since we have a variety of estimates for (i) volume (B12 & B14) and we could have
obtained additional estimates using different numbers of points and ; (ii) k; we can
obtain a large number of estimates of clearance. Limit choices to 7 points.
Brief Tutorial on the use of Spreadsheets (Excel)
Additional
Information & Tips
(i) Converting
Raw Concentrations
to log concentration
and back again.
(ii) Using
Natural Logs
(Ln) for kinetic Analysis
(i) Converting
Raw Concentrations
to log concentration
and back again.
The log of a
concentration
can be obtained using
the Excel function
LOG(##).
The value in parenthesis (##)
may be either an actual
number or a cell reference.
(i) Converting
Raw Concentrations
to log concentration
and back again.
If you have the log of a number
and wish to convert it
back to the raw concentration,
this can be done by computing
the value of 10x
where x is the log value
you wish to convert.
(ii) Using
Natural Logs (Ln)
for kinetic Analysis.
Kinetic data may also be
analysed using
natural logarithms.
(ii) Using
Natural Logs (Ln)
for kinetic Analysis
If you have the natural log
of a number and wish to
convert it back to the
raw concentration,
this can be done by using
the Excel function
EXP(##).
Where ## is value
to be converted.
Brief Tutorial on the use of Spreadsheets (Excel)
(ii) Using
Natural Logs (Ln)
for kinetic Analysis
If you use Natural logs
all calculation are exactly
the same
(see Worksheet Analysis of IV Bolus using LN)
except that the slope is
the elimination rate constant
(do not multiply by 2.303)
and the
intercept Initial concentration
must be converted to
concentration
using EXP rather than 10^##