EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login

Write Formula in Excel

By Madhuri ThakurMadhuri Thakur

Home » Excel » Blog » Excel Tips » Write Formula in Excel

Write Formula in Excel

Excel Write Formula (Table of Contents)

  • Writing Formula in Excel
  • How to Write Formula in Excel?

Writing Formula in Excel

What would be your answer when I ask you, “What is Excel?” A tool that helps to store, slicing and dicing the data plus a tool that can help us calculate sums, percentages, interest rates, etc., right? The most essential as well as an important part of Excel is a formula. The formula is nothing but an equation that allows you to perform various calculations under Microsoft Excel. These formulae are the easiest way of calculation based on the given data. However, being new to Excel, you might not always be able to handle the Excel formulae. It is very easy and simple, though, to add formulae under Excel. This article will try to make you literate about how to write different formulae under Excel, and you will be master in applying the same after going through this article.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

Let’s see how we can create/write a formula under Excel.

The first thing we should know is, every Excel formula starts with the equals to sign (‘=’) inside an Excel cell. After this sign, you can write the equation in which you want Excel to perform calculations or any inbuilt function name (Ex. SUM), which performs a calculation and returns the output in a given cell.

How to Write Formula in Excel?

Let’s understand How to Write the formula in excel with a few examples.

You can download this Write Formula Excel Template here – Write Formula Excel Template

Example #1

Step 1: Suppose we have two numbers, 120 and 240, in cell A1 and A2, respectively, in the Excel sheet. See the screenshot below:

Write Formula in Excel 1-1

Now, I want to add these two numbers; We’ll see how this can be achieved.

Popular Course in this category
Sale
Excel Training (21 Courses, 9+ Projects)21 Online Courses | 9 Hands-on Projects | 110+ Hours | Verifiable Certificate of Completion | Lifetime Access
4.9 (10,985 ratings)
Course Price

View Course

Related Courses
Excel Data Analysis Training (15 Courses, 8+ Projects)Excel for Finance Training (18 Courses, 7+ Projects)

Step 2: In cell A4, start typing the equation by simply using equals to sign and then use 120 + 240 to add these two values up. See the screenshot below for a better understanding.

Write Formula in Excel 1-2

Step 3: Press Enter Key to see the result. You can see 360 as a result of cell A4, as shown below.

Write Formula in Excel 1-3

This is how a basic formula can be entered under Microsoft Excel. Now, what if we change the numbers in cell A1 and A2 to some different values? Will the formula under cell A3 change values? Well, let’s see by doing so.

Step 4: Change the numbers in cell A1 and A2 to 120 and 240, respectively.

Write Formula in Excel 1-4

If you will check cell A3, it is still showing the result for old values (i.e. 120 + 140 = 360). Because in cell A3, we have used the equation as 120 + 140. These are values that are fixed and not dynamic ones. Therefore, in order to get rid of such a situation, Excel also provides an option to be able to use dynamic ranges under an equation/formula for that sake.

Step 5: In cell A3, tweak the formula to =A2+ A3. What we tried doing here is, instead of giving a number as an argument, we have supplied the cells which contain a number as an argument. This will be beneficial when you change the numbers in cells A2, A3; values in cell A4 will automatically change after performing the operations. This is how making you formula dynamic using a range of cells work.

Write Formula in Excel 1-5

After using the above formula, the output is shown below:

Write Formula in Excel 1-6

Now, if I change the values under cell A1 and A2, the results in cell A3 will automatically change. See the screenshot below.

Write Formula in Excel 1-7

Example #2

Excel has a more user-friendly approach when it comes to applying the formula. You just can simply copy-paste the formula from one cell to another by dragging it through. Let’s see how to do it.

Suppose we have data as shown below across the first and second row of different columns (A to E), and we wanted to get a sum for each column in their third row, respectively. We’ll see how excel works in this situation.

Write Formula in Excel 2-1

Step 1: In cell A3, create an equation using a dynamic range of cells that sums the values under A1 and A2. You can use =A1+A2 as a formula under cell A3 to get the sum of the numbers within those cells.

Write Formula in Excel 2-2

Also, Press Enter key to see the output in cell A3.

Write Formula in Excel 2-3

Step 2: Now, select the cell A3 and then drag the formula across A3 to E3 to apply the same formula that sums up the first and second row for each column. You should get the output as shown in the screenshot below:

Write Formula in Excel 2-4

Well, you have multiple ways to achieve this result. You can select the entire third row across column A to E and just press Ctrl + R to copy and paste the formula under cell A3 to other columns. Or else, you can copy the formula under cell A3 by Ctrl + C and paste it one by one in each of B3, C3, D3, E3 to achieve the same result.

Example #3

In this example, we will work on using the built-in Excel functions. How to use the built-in Excel function to perform a task (ex. Summing number across the rows).

Consider the same data as shown in example 2, and we wanted to have sum of the first two rows of each column within the third row. However, this time we will use a built-in Excel function named SUM to achieve this result.

Example 3-1

Step 1: In cell A3, start typing =SUM; it will pop up a list of all functions that contain SUM as a keyword. Select the SUM function through that list by double-clicking on it.

Example 3-2

Step 2: Select the range of cells A1 to A2 with the use of your computer mouse or laptop touchpad as an argument to the SUM function. Because these are the cells that we wanted to sum up.

Example 3-3

Well, you also can use the comma to separate the values instead of these ranges.

Step 3: Complete this formula by adding closing parentheses at the end of this function and press the Enter key to get the sum of cell A1 and A2 under cell A3.

Examplel 3-4

This function precedes the equation we use in Example 2 by a huge margin when we have tons of data. Ex. Consider you have 5 Lacs Excel Rows, and you wanted to sum those up. You surely would not like to input each cell reference for 5 Lacs of time, would you?

Step 4: You can drag this formula across the different columns for the same row or user Ctrl + R to populate it across all the rows or copy and paste one by one to each column. The choice is all yours. You’ll get the final output as shown below:

Example 3-5

This is it from this article. Let’s wrap the things up with some points to be remembered:

Things to Remember About Write Formula in Excel

  • In order to be able to use a formula in Excel, you need to start it with equals to sign. You also can start a formula with a Plus or minus sign.
  • You can have different operational formulae of your own for subtraction, multiplication, division, squaring a number, etc. However, all these operations are better to do with built-in Excel functions because these functions precede over operational formulae.

Recommended Articles

This is a guide to Write Formula in Excel. Here we discuss How to use Write Formula in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. Excel DEGREES Function
  2. Compare Two Lists in Excel
  3. Excel Text with Formula
  4. TIME in Excel

All in One Excel VBA Bundle (120+ Courses, 30+ Projects)

120+ Online Courses

30+ Projects

500+ Hours

Verifiable Certificates

Lifetime Access

Learn More

0 Shares
Share
Tweet
Share
Primary Sidebar
Excel Functions
  • Excel Tips
    • Recover Document in Excel
    • Excel Shortcut to Select Row
    • Excel Header Row
    • Excel Insert Button
    • Excel Translate
    • Budget in Excel
    • KPI Dashboard in Excel
    • Blank Invoice Excel Template
    • Write Formula in Excel
    • Auditing Tools in Excel
    • Autofit Row Height in Excel
    • Formatting Text in Excel
    • Add Rows in Excel Shortcut
    • Divide Cell in Excel
    • Compare Two Columns in Excel for Matches
    • Excel Troubleshooting
    • Unprotect Excel Workbook
    • Subtract Date in Excel
    • Carriage Return in Excel
    • Negative Numbers in Excel
    • Worksheets in Excel
    • Excel Match Multiple Criteria
    • Exponential Moving Average Formula
    • Sentence Case in Excel
    • Excel Reverse Order
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Percent Change in Excel
    • Drag and Drop in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Basic Excel Formulas
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Excel Drop Down List
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup Reference Functions in Excel (34+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (23+)
  • Statistical Functions in Excel (58+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (21+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

EDUCBA

Download Write Formula Excel Template

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Special Offer - EXCEL COURSE Learn More