6 Ways to Multiply by Pi in Microsoft Excel

Do you want to learn how to multiply by Pi in Excel? You’ve come to the right place. I’ll explain all the effortless methods in easy English, and of course with clear steps that you can follow along.

Excel is a powerful tool, often used for data analysis, financial calculations, and more. Understanding how to work with mathematical constants like Pi can significantly enhance your Excel skills.

Whether you’re working on scientific projects, engineering calculations, or even just a school assignment, knowing how to multiply by Pi efficiently can save you time and effort.

So, if you’re ready to boost your Excel proficiency and make those Pi-powered calculations a breeze, read on. I’ll break down the process into simple, actionable steps so you can easily remember. Let’s dive right in and unlock this valuable Excel skill right now!

Reasons to Multiply by Pi in Excel

Here’s why you might want to acquire the Excel skill of multiplying values with Pi:

  • Excel’s Pi simplifies circle-related computations, vital in architecture and engineering where precision is paramount.
  • It aids students and professionals in geometry-related tasks, ensuring accurate solutions to complex geometric equations.
  • Engineers rely on Excel’s Pi for precise calculations in structural design, fluid dynamics, and electrical circuits, guaranteeing safe and efficient solutions.
  • Statisticians and analysts use Excel’s Pi to process data from circular measurements, enabling comprehensive insights into various datasets.
  • The Pi function streamlines trigonometric operations, making it indispensable for trigonometry students and professionals working in fields like astronomy and navigation.
  • It expedites repetitive calculations, saving valuable time for users dealing with numerical computations in various applications.
  • Learning to use Excel’s Pi function boosts one’s mastery of this versatile software, an essential skill in today’s data-driven world.
  • Researchers and scientists employ Excel’s Pi for accurate computations in physics, chemistry, and various scientific disciplines, ensuring reliable results.
  • Professionals across industries, from finance to astronomy, rely on Excel’s Pi for accurate calculations, ensuring the quality and reliability of their work.

Multiply by Pi with a Hard Coded Value in a Formula

To multiply by the hard-coded value of Pi (3.141592) in Excel, you can simply include this constant in your formulas. Here’s how you can do it:

Hardocded Pi value in a formula
Hardocded Pi value in a formula
  1. Suppose you’ve got values to be multiplied by Pi in column A and you want the results in column B. So, highlight B2.
  2. Enter the following formula in B2:
  1. Press Enter to get the result.
Fill handle
Fill handle
  1. If there are more values in column A, simply drag the fill handle down in column B to multiply those values using Pi automatically.

The above formula calculates the circumference from the radius of a circle.

Multiply by Pi with Paste Special Multiply

Radius square
Radius square

Suppose, you need to calculate the area of circles from their radius values. The radius values are in column A. Convert these values to their square values in column B.

Pi values corresponding to radius square
Pi values corresponding to the radius square

Now, put the value of Pi in column C starting from C2 down the column until there are radius square values existing in column B.

Highlight data and Ctrl+C
Highlight data and Ctrl+C

Highlight all data in column B and press Ctrl + C to copy the values.

Paste special dialog box
Paste Special dialog box

Now, go to C2 and press Ctrl + Alt + V to call the Paste Special dialog box. There, select the Multiply option under the Operation section and click OK.

Area of circle
Area of circle

Excel will multiply the squared values of the radius with Pi and populate the area measurements of the respective circles in column C.

Multiply by Pi with the PI Function

In Excel, the Pi() function is a built-in mathematical function that returns the mathematical constant Pi (π), which is approximately equal to 3.14159265358979.

If you enter the syntax Pi() in an empty cell followed by the equal sign, you’ll get this value 3.141592654.

Creating a Pi multiplication formula
Creating a Pi multiplication formula

So, when you need to multiply any value with Pi, simply put the target value, put the multiplication operator, and type the Pi formula syntax.

Now, you could just hit Enter to get the result.

Using fill handle to apply Pi multiplication
Using a fill handle to apply Pi multiplication

If there are more values in the source column and you need the Pi multiplied values in the destination column, simply drag the fill handle down the column.

Multiply by Pi with a Named Constant

If you frequently multiply source values with Pi to get target values, you can create a named constant for the Pi value. The named constant will become available for reference in the whole workbook.

So, whenever, there are some values that need to be multiplied with Pi, simply put an equals, refer to the source data cell, put the multiplication operator, and type the name of the named constant you created, like Pi.

Generating the value of Pi
Generating the value of Pi

First, follow these steps to create a named constant for the value of Pi:

  1. Highlight any cell and put the following formula into it:
  1. Hit Enter to get the numerical values of Pi.
Creating a named range
Creating a named range
  1. Highlight the Pi value cell.
  2. Now, click the Formulas tab and go to the Defined Names commands block.
  3. Click the Define Name button.
  4. On the New Name dialog box, put a name for the constant that you can remember.
  5. Click OK to apply the defined name.

Suppose, the named constant is Pi. Now that you created a defined name for the value of Pi, follow these steps to put this into use:

Enter formula with named constant
Enter formula with named constant
  1. Go to the cell where you want to get the Pi multiplied value of a target data.
  2. Enter the following formula:
Applying formula
Applying formula
  1. Hit Enter to get the result.
Using fill handle to copy formula
Using the fill handle to copy the formula
  1. Now, drag the fill handle down the column to copy the formula for the rest of the rows.

The above formula will only work for you if you’ve created a defined name for the Pi value as Pi. You can give another name too. Simply, replace the named range Pi with that name before applying the formula.

Multiply by Pi with VBA

So far, you learned all the manual methods to multiply by Pi in Excel. However, manual methods aren’t suitable in workbooks where there are hundreds of worksheets and each worksheet contains tens of thousands of values needed for multiplication by Pi.

Creating a VBA macro to multiply by Pi
Creating a VBA macro to multiply by Pi

Here, you can use the following Excel VBA script to quickly multiply the target cell values with Pi by simply putting in one or two cell ranges. Find below the script and steps to use it:

  1. Call the Excel VBA Editor tool by pressing the Alt + F11 keys on the keyboard.
  2. Click the Insert button on the VBA Editor menu.
  3. On the context menu that shows up, click the Module option.
  4. A new blank module will show up on the Excel VBA Editor backstage.
  5. Copy the following script and paste it into the blank module:
Sub MultiplyByPi()
    Dim ws As Worksheet
    Dim sourceRange As Range
    Dim targetRange As Range
    Dim cell As Range
    Set ws = ThisWorkbook.Sheets("Sheet1")
    Set sourceRange = ws.Range("B2:B5")
    Set targetRange = ws.Range("C2:C5")
    For Each cell In sourceRange
        targetRange.Cells(cell.Row - sourceRange.Cells(1).Row + 1, 1).Value = cell.Value * 3.141592
    Next cell
End Sub
  1. Click the Save button to save the script for future use.
  2. Now, close the Excel VBA Editor.
Running an Excel Macro
Running an Excel Macro

Now, follow these steps to call up the Macro dialog box and use the Excel VBA script you just created:

  1. Press Alt + F8 to open the Macro dialog.
  2. Find and select the MultiplyByPi macro.
  3. Hit Run to execute the macro.

To customize the script so it works on your own worksheet, follow these instructions:

  • Replace the source data range "B2:B5" with the actual source data range on your worksheet. For example, "D2:D100".
  • Similarly, change the destination data range "C2:C5" with the cell range where you want to populate the results. For instance, "E2:E100".

Note: If you use any VBA macro on a worksheet, you won’t be able to undo the changes made by the script. So, create a backup copy of your workbook before running the macro.

Multiply by Pi with Office Scripts

The Excel VBA doesn’t work on Excel for the web. If you need to automate the multiply by Pi process in a worksheet on Excel online, you must use Office Scripts.

You can also use Office Scripts on Excel for the Microsoft 365 desktop app. Office Scripts gives you more flexibility with external automation like using Power Automate with Excel.

Using Office Scripts to multiply by Pi in Excel
Using Office Scripts to multiply by Pi in Excel

Find below the Office Scripts code and steps to implement in the present task:

  1. Click the Automate tab on your Excel worksheet.
  2. Go to the Scripting Tools commands block and click the New Script button.
  3. In the Code Editor that appears, copy and paste the following script:
function main(workbook: ExcelScript.Workbook) {
	let selectedSheet = workbook.getActiveWorksheet();
	// Set range C2 on selectedSheet
	// Auto fill range
	selectedSheet.getRange("C2").autoFill("C2:C5", ExcelScript.AutoFillType.fillDefault);
  1. Click the Save script button.
  2. Click the Run button to execute the script.
  3. Excel will populate the results in the C2:C5 cell range.

Here’s how you can customize the script in case your worksheet data doesn’t match the columns and cell ranges I used in the above example:

  • "C2" is the first cell where you want to apply the Pi multiplication formula "=B2*PI()". Change it to another cell range where you want the Pi multiplied values of source data.
  • Excel will auto-fill the formula from C2 until the C5 row in column C. This is decided by "C2:C5" in the script. Suppose, you calculated the first value in E2 and need to copy the formula until the E100 row, change the reference to "E2:E100".


So far, you learned how to multiply by Pi in Excel, a valuable skill that can simplify various calculations in your work and studies. With straightforward methods like Excel’s Pi function, manual entry, or custom VBA functions, you can save time and ensure accuracy in mathematical tasks.

Whether you’re an engineer, student, or professional in any field, this knowledge can enhance your Excel proficiency and streamline your work.

Excel’s capability to handle Pi effortlessly opens doors to more precise geometric, scientific, and engineering calculations. So, go ahead and apply what you’ve learned to excel in your Excel endeavors.

About the Author

Bipasha Nath

Bipasha Nath


Subscribe for awesome Microsoft Excel videos 😃

John MacDougall

I’m John, and my goal is to help you Excel!

You’ll find a ton of awesome tips, tricks, tutorials, and templates here to help you save time and effort in your work.

Related Posts



Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get the Latest Microsoft Excel Tips

Follow Us

Follow us to stay up to date with the latest in Microsoft Excel!

Subscribe for awesome Microsoft Excel videos 😃