MyMisPal
← BI lessons
Lesson 3 of 10

Excel for business: core formulas

Excel is the world's most used analysis tool, and the first thing data interviews ask about. Here's a slice of Nakhla's sales. Every cell has an address: column (a letter) and row (a number), such as F5:

ABCDEF
1OrderMonthRegionProductQuantitySales
21JanRiyadhSukkari dates201,200
32JanJeddahArabic coffee10450
43FebRiyadhArabic coffee15675
54FebDammamSukkari dates12720
65MarJeddahSukkari dates251,500
76MarRiyadhCardamom8720
87MarDammamArabic coffee18810
98MarJeddahCardamom5450

References: we want the VAT on each sale, and the 15% rate sits in cell H1. If you write =F2*H1 and copy it down, Excel shifts both references: it becomes =F3*H2, and H2 is empty, so the result is zero! Shifting like this is a relative reference, which is what we want for F. The VAT cell we lock with dollar signs: =F2*$H$1. That's an absolute reference and it never moves, however far you copy.

FunctionWhat it doesExample
SUM · AVERAGESum or average of a range.=SUM(F2:F9)
COUNT · MAX · MINCount of numbers, largest, smallest.=MAX(F2:F9)
SUMIFSSum of rows meeting one or more conditions.=SUMIFS(F2:F9, C2:C9, "الرياض")
COUNTIFSCount of rows meeting the conditions.=COUNTIFS(B2:B9, "مارس")
AVERAGEIFSAverage of rows meeting the conditions.=AVERAGEIFS(E2:E9, D2:D9, "هيل")
IFA value depending on a condition.=IF(F2>1000, "كبير", "عادي")

Try it in the lab: choose the function and condition, and see the formula, the result and which rows were counted:

fx=SUMIFS(F2:F9, C2:C9, "Riyadh")Result 2,595
ABCDEF
1OrderMonthRegionProductQuantitySales
21JanRiyadhSukkari dates201,200
32JanJeddahArabic coffee10450
43FebRiyadhArabic coffee15675
54FebDammamSukkari dates12720
65MarJeddahSukkari dates251,500
76MarRiyadhCardamom8720
87MarDammamArabic coffee18810
98MarJeddahCardamom5450

Rows meeting the condition are highlighted

Watch outFunction names stay in English even in Arabic Excel. In some regional settings the argument separator is a semicolon ; instead of a comma, so if a formula errors, try switching it.
Spotted a mistake on this page, or have an idea to improve the site?