Excel 2019 (Part 13): Creating Complex Formulas

When there is more than one operation in a formula, the order of the operations tells Excel which calculation should be performed first.

You may have experience working with formulas that contain only one operator, such as 7+9. More complex formulas may contain several mathematical operators, such as 5+2*8. When there is more than one operation in a formula, the order of operations tells Excel which calculation to perform first. To write formulas that give you the correct answer, you need to understand the order of operations.

 

Order of operations

Excel calculates formulas based on the following order:

  • The operations are placed in parentheses.
  • Exponential calculations (e.g., 3^2)
  • Multiplication and division, whichever comes first.
  • Addition and subtraction, whichever comes first.

Although this formula may seem complicated, follow the steps to find the correct answer.

 

First, we'll start by performing the calculation inside the parentheses. In this case, it's 6 - 3 = 3 .

As you can see, the formula has become simpler. Next, let's see if there are any exponents. There are 2^2 = 4 .

Next, we will solve any multiplication and division problems, in order from left to right. Since division comes before multiplication, it is calculated first: 3/4 = 0.75 .

 

Now, we'll calculate the remaining multiplication: 0.75 * 4 = 3 .

Next, perform any addition or subtraction calculations, again in order from left to right. Addition comes first: 10 + 3 = 13 .

Finally, perform the remaining subtraction: 13 - 1 = 12 .

 

Now, we have the answer: 12. And this is the exact result you will get if you enter the formula into Excel.

Create complex formulas

In the example below, this article will demonstrate how Excel uses the order of operations to solve a more complex formula. Here, the example is to calculate the sales tax cost for a food and beverage invoice. To do this, the formula to be written would be =(D3+D4+D5)*0.075 in cell D6. This formula will add the prices of the items, then multiply that value by the tax rate of 7.5% (written as 0.075) to calculate the answer.

Excel follows the order of operations. First, add the values ​​inside the parentheses: (45.80 + 68.70 + 159.60) = 274.10. Then, multiply that value by the tax rate: 274.10 * 0.075. The result will show that the sales tax is $20.56.

 

It's especially important to follow the order of operations when creating formulas. Otherwise, Excel won't calculate the results correctly. In the example, if the parentheses weren't included, the multiplication would be calculated first, leading to an incorrect result. Parentheses are generally the best way to specify which calculation should be performed first in Excel.

How to create a complex formula using the order of operations

The example below uses cell references along with numerical values ​​to create a complex formula that calculates the subtotal for a food and beverage bill. The formula calculates the cost of each item on the menu first, then adds those values ​​together.

1. Select the cell that will contain the formula. For example, we would select cell C5.

2. Enter the formula. For example, you would enter =B3*C3+B4*C4. This formula will follow the order of operations, first performing the multiplication: 2.79*35 = 97.65 and 2.29*20 = 45.80 . Then, it will add these values ​​to calculate the sum: 97.65+45.80.

3. Double-check the accuracy of the formula, then press Enter on the keyboard. The formula will be calculated and the result displayed. In the example, the result shows the subtotal of the order is $143.45.

You can add parentheses to any equation to make it easier to read. Multiplication calculations can be placed in parentheses to clarify that they will be calculated before addition and that the result of the formula in this example will not change.

Excel won't always tell you if your formula is wrong, so checking all your formulas will be up to you.

Related posts
Other Program articles
  • Excel 2019 (Part 12): Introduction to Formulas

    một trong những tính năng mạnh mẽ nhất trong excel là khả năng tính toán thông tin số bằng công thức. cũng giống như một máy tính, excel có thể cộng, trừ, nhân và chia.
  • Excel 2019 (Part 11): Layout and Printing

    khi đã chọn được cài đặt bố cục trang của mình, thật dễ dàng để xem trước và in workbook từ excel bằng cách sử dụng bảng điều khiển print.
  • Excel 2019 (Part 8): Working with Multiple Worksheets

    khi làm việc với một lượng lớn dữ liệu, bạn có thể tạo nhiều trang tính để giúp sắp xếp workbook của mình và giúp tìm kiếm nội dung dễ dàng hơn.
  • Excel 2019 (Part 7): Understanding Number Formats

    các định dạng số cho bảng tính biết chính xác loại dữ liệu bạn đang sử dụng, như tỷ lệ phần trăm (%), đơn vị tiền tệ ($), thời gian, ngày tháng, v.v…
  • Excel 2019 (Part 6): Formatting Cells

    Định dạng cơ bản có thể tùy chỉnh giao diện cho workbook của bạn, cho phép bạn thu hút sự chú ý đến các phần cụ thể và làm cho nội dung dễ xem và dễ hiểu hơn.
  • Excel 2019 (Part 5): Modifying Columns, Rows, and Cells

    microsoft excel cho phép bạn sửa đổi chiều rộng của cột và chiều cao của hàng theo những cách khác nhau, bao gồm việc áp dụng tính năng text wrapping và hợp nhất các cell.
Category

System

Windows XP

Windows Server 2012

Windows 8

Windows 7

Windows 10

Wifi tips

Virus Removal - Spyware

Speed ​​up the computer

Server

Security solution

Mail Server

LAN - WAN

Ghost - Install Win

Fix computer error

Configure Router Switch

Computer wallpaper

Computer security

Mac OS X

Mac OS System software

Mac OS Security

Mac OS Office application

Mac OS Email Management

Mac OS Data - File

Mac hardware

Hardware

USB - Flash Drive

Speaker headset

Printer

PC hardware

Network equipment

Laptop hardware

Computer components

Advice Computer

Game

PC game

Online game

Mobile Game

Pokemon GO

information

Technology story

Technology comments

Quiz technology

New technology

British talent technology

Attack the network

Artificial intelligence

Technology

Smart watches

Raspberry Pi

Linux

Camera

Basic knowledge

Banking services

SEO tips

Science

Strange story

Space Science

Scientific invention

Science Story

Science photo

Science and technology

Medicine

Health Care

Fun science

Environment

Discover science

Discover nature

Archeology

Life

Travel Experience

Tips

Raise up child

Make up

Life skills

Home Care

Entertainment

DIY Handmade

Cuisine

Christmas

Application

Web Email

Website - Blog

Web browser

Support Download - Upload

Software conversion

Social Network

Simulator software

Online payment

Office information

Music Software

Map and Positioning

Installation - Uninstall

Graphic design

Free - Discount

Email reader

Edit video

Edit photo

Compress and Decompress

Chat, Text, Call

Archive - Share

Electric

Water heater

Washing machine

Television

Machine tool

Fridge

Fans

Air conditioning

Program

Unix and Linux

SQL Server

SQL

Python

Programming C

PHP

NodeJS

MongoDB

jQuery

JavaScript

HTTP

HTML

Git

Database

Data structure and algorithm

CSS and CSS3

C ++

C #

AngularJS

Mobile

Wallpapers and Ringtones

Tricks application

Take and process photos

Storage - Sync

Security and Virus Removal

Personalized

Online Social Network

Map

Manage and edit Video

Data

Chat - Call - Text

Browser and Add-on

Basic setup