من أنا
المقالات
الوظائف
التواصل معي

The core functions

Excel has more than five hundred functions, but ten of them cover ninety per cent of your work. These are the ten.

Chapter 1 · Lesson 3 of 510 min readBeginner level

A function is a short name for a ready-made operation. You type its name, give it what it needs in brackets, and it hands you a result. The skill is not in memorising names but in knowing which one fits the question in front of you.

1 Counting and summing functions

FunctionWhat it doesExample
SUMAdds the numbers in a range=SUM(B2:B50)
AVERAGEThe arithmetic mean=AVERAGE(B2:B50)
COUNTCounts the cells containing numbers=COUNT(B2:B50)
COUNTACounts non-empty cells whatever they hold=COUNTA(A2:A50)
MAX / MINThe largest and the smallest=MAX(B2:B50)
ROUNDRounds to a number of decimal places=ROUND(B2,2)

Formatting does not change the number

If you display 1,234.567 to two decimal places you will see 1,234.57, but Excel sums the full value — so halalas drift in the totals. If you want the number genuinely rounded, use ROUND, not formatting alone. This matters on invoices and tax returns.

2 IF — the condition

fx =IF(condition, value if true, value if false)
Classifying receivables ageing
The formula in C2: =IF(B2>90,”Overdue”,”Within terms”)
ABC
1CustomerDays outstandingStatus
2Al Waha120Overdue
3Al Nakheel45Within terms
4Al Rimal91Overdue

And if you want three bands, instead of nesting IF inside IF use IFS:

fx =IFS(B2>180,"Doubtful", B2>90,"Overdue", TRUE,"Within terms")

Mind the order: IFS stops at the first condition that is met, so start with the most severe. Had you started with B2>90, nothing would ever reach “Doubtful”.

3 Conditional summing and counting

FunctionThe question it answers
SUMIFWhat are total sales for the Riyadh branch?
COUNTIFHow many invoices are overdue?
SUMIFSWhat were Riyadh’s Q1 sales to customer “A”?
COUNTIFSHow many overdue invoices exceed 50,000?
AVERAGEIFWhat is the average invoice value at the Jeddah branch?

SUMIF under the microscope — how it checks the rows one by one

fx =SUMIF(A2:A6, "Riyadh", C2:C6)
Branch Amount
Riyadh 120,000
Jeddah 80,000
Riyadh 95,000
Dammam 40,000
Riyadh 60,000
Running total for the Riyadh branch 0 120,000 215,000 275,000
1A matching row ⇒ its amount is added
2Jeddah does not match the criterion ⇒ skipped
3And nor does Dammam — the text criterion is exact
4The final result: the sum of the three Riyadh rows

If one row held “Riyadh ” with a trailing space, the criterion would skip it silently and the total would be 60,000 short with no error message at all — which is why we clean data with TRIM.

Branch sales
The sales data
ABC
1BranchQuarterAmount
2RiyadhQ1120,000
3JeddahQ180,000
4RiyadhQ295,000
5RiyadhQ160,000

Total for Riyadh overall:

fx=SUMIF(A2:A5, "Riyadh", C2:C5) → 275,000

Total for Riyadh in Q1 only:

fx=SUMIFS(C2:C5, A2:A5,"Riyadh", B2:B5,"Q1") → 180,000

Note the difference in order: in SUMIF the criteria range comes first and then the sum range; in SUMIFS the sum range comes first. Getting them the wrong way round is one of the commonest beginner mistakes.

A stray space defeats the criterion

“Riyadh ” with a trailing space is not “Riyadh” as far as Excel is concerned, so the criterion neither sums it nor counts it. Clean your data with TRIM, and prefer picking values from a drop-down list rather than typing them by hand in every row.

4 Text and date functions you will need

TRIMRemoves stray spaces
LEFT / RIGHTTakes characters from either end of the text
TEXTDisplays a number or date in a set format
CONCAT / &Joins text into a single cell
TODAYToday’s date, updating automatically
EOMONTHThe last day of the month — useful for due dates

Lesson summary

  • SUM, AVERAGE and COUNT underpin any analysis.
  • Formatting prettifies a number; ROUND actually changes it.
  • IF for a single condition and IFS for several bands — ordered from the most severe.
  • SUMIFS takes the sum range first; SUMIF takes the criteria range first.
  • Stray spaces defeat criteria silently — clean with TRIM.

5 Test your understanding

Three quick questions

Pick the answer you believe is correct and you will see the result immediately.

1. You want to count the non-empty cells in a column of customer names. The function is:

2. Which formula sums Jeddah’s sales in Q2?

3. An invoice total differs by a halala from the system even though the figures “look” identical. Most likely:

Sources and review: function names, their arguments and their order follow the official documentation for Microsoft Excel. IFS is available from Excel 2019 and Microsoft 365 onwards. The argument separator may be a comma or a semicolon depending on your machine’s settings. The data is illustrative. Last reviewed: September 2026.