Exceljet

Quick, clean, and to the point

Volume of a cylinder

Excel formula: Volume of a cylinder
Generic formula 
=PI()*r^2*h
Summary 

To calculate the volume of a cylinder, you can use the PI function together with the exponent operator (^). In the example shown, the formula in D5, copied down, is:

=PI()*B5^2*C5

which returns the volume of a cylinder with the radius given in column B and the height given in column C. Units are indicated generically with "u", and the resulting volume is units cubed (u3).

Explanation 

In geometry, the formula for calculating the volume of a cylinder is: 

 

The Greek letter π ("pi") represents the ratio of the circumference of a circle to its diameter. In Excel, π is represented in a formula with the PI function, which returns the number 3.14159265358979, accurate to 15 digits:

=PI() // returns 3.14159265358979

To square a number in Excel, you can use the exponentiation operator (^):

=A1^2

Or, you can use the POWER function:

=POWER(A1,2)

Rewriting the formula for volume of a cylinder with Excel's math operators, we get:

=PI()*B5^2*C5

Or, with the POWER function:

=PI()*POWER(B5,2)*C5

The result is the same for both formulas. Following Excel's order of operations, exponentiation will occur before multiplication.

Author 
Dave Bruns

Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

Download 200+ Excel Shortcuts

Get over 200 Excel shortcuts for Windows and Mac in one handy PDF.