Excel Formulas & Functions تعلم دوال الاكسيل

THE PRACTICAL EXCEL GUIDE

Excel formulas & functions, explained clearly.

Choose a level, pick a topic, and learn one useful skill at a time. Follow the examples with a small practice sheet, then explore 95 functions from the left menu.

تعلّم دوال إكسل خطوة بخطوة3 LEVELS · 12 LESSONS · 95 FUNCTIONS
BeginnerLearn the pattern, then choose the function

Your route through Excel

A formula is an instruction that starts with =. A function is a ready-made calculation inside a formula. For example, =E2*F2 is a formula; =SUM(G2:G6) is a formula that uses the SUM function.

WORK ALONG

Five-row practice sheet

RowA · DateB · CourseC · TypeD · CityE · QtyF · PriceG · Revenue
205 Jan 2026Excel BasicsCourseCairo3120360
306 Jan 2026Power BICourseGiza2240480
408 Jan 2026ConsultingServiceCairo1210210
510 Jan 2026SQL IntroCourseAlexandria2150300
612 Jan 2026Excel BasicsCourseCairo4100400

In G2 enter =E2*F2, then fill down. Revenue values in the table show the expected results.

01

01 — Try the practice sheet

Use the sample sales data below throughout this guide. Enter the headings in row 1 and the five records in rows 2–6. Column G is Revenue. In G2 enter =E2*F2, then fill down to G6.

=E2*F2
The first row returns 360. Your five revenues are 360, 480, 210, 300, and 400.
02

02 — Read a formula

The equals sign begins the calculation. E2 and F2 are cell references. The * symbol means multiplication. A colon means a range, so G2:G6 includes every cell from G2 through G6.

=SUM(G2:G6)
The five revenue values add up to 1,750.
03

03 — Pick your level

If you are new, begin with cell references. If you already use SUM and IF, go to multiple criteria and lookups. If you build reusable models, explore LET, LAMBDA, and dynamic arrays.

=IF(G2>=400,"High","Standard")
For G2 = 360, the formula returns Standard.
BeginnerCopy the example into Excel

One small sheet for every lesson

This fictional sales sheet makes every example concrete. Dates are real Excel dates, Quantity and Price are numbers, and Revenue is calculated. If your Excel uses semicolons as formula separators, replace commas in examples with semicolons.

WORK ALONG

Five-row practice sheet

RowA · DateB · CourseC · TypeD · CityE · QtyF · PriceG · Revenue
205 Jan 2026Excel BasicsCourseCairo3120360
306 Jan 2026Power BICourseGiza2240480
408 Jan 2026ConsultingServiceCairo1210210
510 Jan 2026SQL IntroCourseAlexandria2150300
612 Jan 2026Excel BasicsCourseCairo4100400

In G2 enter =E2*F2, then fill down. Revenue values in the table show the expected results.

A note about versions

Some modern functions, including dynamic arrays and LAMBDA helpers, require Microsoft 365, Excel 2021, or Excel 2024. Each function page shows a version note where relevant.

BeginnerRelative, absolute, and mixed references

Make formulas you can safely fill down

A relative reference changes when you copy a formula. A dollar sign locks a row or column. Understanding this is more valuable than memorizing dozens of functions.

01

Relative: move with the row

In G2, E2 and F2 refer to cells on the same row. Fill the formula down: G3 becomes =E3*F3 automatically.

=E2*F2
Use this for row-by-row calculations.
02

Absolute: keep a rate fixed

Put a tax rate such as 0.14 in J1. The reference $J$1 stays fixed while you copy the calculation down.

=G2*(1+$J$1)
A 360 sale including 14% tax becomes 410.40.
03

Mixed: lock only one part

Use $E2 to keep column E while the row changes; use E$2 to keep row 2 while the column changes. This is useful in a two-way calculation grid.

=$E2*F$1
Use F4 to cycle reference types while editing a reference in many Excel versions.
BeginnerTotals, averages, counts, and simple decisions

Turn raw rows into answers

Start with a question. How much revenue did we make? How many orders are there? Is this order high value? Each question suggests a function.

01

Total revenue

SUM adds the five calculated revenues in column G.

=SUM(G2:G6)
Result: 1,750.
02

Count orders

COUNT counts numeric cells. COUNTA counts nonblank entries. Since order names in B2:B6 are text, COUNTA is the right tool here.

=COUNTA(B2:B6)
Result: 5.
03

Mark high-value sales

IF tests a condition, then returns one result when TRUE and another when FALSE.

=IF(G2>=400,"High","Standard")
The first row is Standard; rows with 480 and 400 are High.
BeginnerSmall functions that prevent messy reports

Clean labels and understand time

Text and dates often look simple but can hide extra spaces or formatting problems. Clean the data before you summarize it.

01

Remove extra spaces

TRIM removes repeated ordinary spaces from imported text. It does not remove every kind of nonbreaking space.

=TRIM(" Excel Basics ")
Result: Excel Basics.
02

Build a real date

DATE produces a date value Excel can use in calculations. Use YEAR, MONTH, and DAY to extract parts of a date.

=DATE(2026,1,5)
Format the result as a date if Excel displays a serial number.
03

Join a readable label

The & operator joins text. TEXT lets you control how a number or date appears inside a sentence.

=B2&" — "&TEXT(A2,"dd mmm yyyy")
A clear label is easier to read than a raw date serial.
IntermediateSummarize by city, product, or both

Ask more precise questions

SUMIF and COUNTIF use one condition. SUMIFS and COUNTIFS use several conditions. Put the sum range first in SUMIFS, then pairs of criteria range and criterion.

01

One condition

Add revenue only for rows whose Type is Course.

=SUMIF(C2:C6,"Course",G2:G6)
Result: 1,540.
02

Two conditions

Add revenue where City is Cairo AND Type is Course.

=SUMIFS(G2:G6,D2:D6,"Cairo",C2:C6,"Course")
Result: 760.
03

Use a cell as your criterion

Put Cairo in J2 so a reader can change the city without editing the formula.

=SUMIFS(G2:G6,D2:D6,J2)
This is the start of a reusable dashboard.
IntermediateXLOOKUP, INDEX/MATCH, and missing matches

Bring the right answer to the right row

A lookup finds a key in one range and returns a related value from another range. Prefer an exact match for IDs, course names, and other discrete labels.

01

Find a course price

XLOOKUP searches the Course column and returns a value from Price. The fourth argument supplies a friendly result if nothing matches.

=XLOOKUP("SQL Intro",B2:B6,F2:F6,"Not found")
Result: 150. XLOOKUP requires a recent Excel version.
02

Use an older-workbook alternative

MATCH finds the position of SQL Intro; INDEX returns the price at that position. The zero requests an exact match.

=INDEX(F2:F6,MATCH("SQL Intro",B2:B6,0))
Result: 150.
03

Handle a missing key

IFNA handles only the #N/A error, which is common for a missing lookup value. It leaves unrelated errors visible.

=IFNA(XLOOKUP("Unknown",B2:B6,F2:F6),"Check course name")
Result: Check course name.
IntermediateFILTER, UNIQUE, SORT, and spill ranges

Let your result grow automatically

Dynamic-array formulas can return multiple cells from one formula. Enter the formula in the top-left result cell and leave enough empty cells for the spill.

01

Return Cairo rows

FILTER keeps only records whose City is Cairo.

=FILTER(A2:G6,D2:D6="Cairo","No rows")
The result spills into several rows and columns.
02

Create a unique city list

UNIQUE returns one instance of each city. Wrap it in SORT for an alphabetic list.

=SORT(UNIQUE(D2:D6))
Use the list for a simple report selector.
03

Sort by revenue

SORTBY sorts the entire data range using the Revenue range in descending order.

=SORTBY(A2:G6,G2:G6,-1)
If you see #SPILL!, clear cells blocking the result.
AdvancedLET, LAMBDA, and array helpers

Build formulas that explain themselves

Advanced functions are most useful when they reduce repeated logic or make the calculation easier to audit. These examples need recent Excel versions.

01

Name an intermediate result

LET stores the row-by-row revenue array as rev and then sums it. Longer formulas become easier to inspect.

=LET(rev,E2:E6*F2:F6,SUM(rev))
Result: 1,750.
02

Create a small custom function

LAMBDA accepts inputs u and p and returns their product. This example calls it immediately; save a LAMBDA in Name Manager to reuse it by name.

=LAMBDA(u,p,u*p)(E2,F2)
Result: 360.
03

Make a running total

SCAN passes each revenue into a named accumulator and returns every step of the total.

=SCAN(0,G2:G6,LAMBDA(total,x,total+x))
Results: 360, 840, 1,050, 1,350, 1,750.
AdvancedTAKE, CHOOSECOLS, VSTACK, and more

Reshape information without helper columns

Modern array tools let you select, combine, and reshape records. The result may spill; keep the output area empty.

01

Show the first three rows

TAKE returns the first three records from the source range.

=TAKE(A2:G6,3)
Useful for a compact preview.
02

Keep only useful fields

CHOOSECOLS selects non-adjacent columns. Here it returns Course, City, and Revenue.

=CHOOSECOLS(A2:G6,2,4,7)
A tidy report without deleting source columns.
03

Group revenue by city

GROUPBY combines city labels and revenue values into a summary. Availability varies across Microsoft 365 update channels.

=GROUPBY(D2:D6,G2:G6,SUM)
Check your Excel version if this function is unavailable.
AdvancedA quick troubleshooting route

Diagnose the message, not just the cell

Errors are clues. Check the error code first, then inspect the referenced cells, spelling, data types, and available spill space. Do not wrap every formula in IFERROR before you understand what failed.

01

#N/A

A lookup did not find a match. Check the exact key, leading/trailing spaces, and matching data types.

=IFNA(XLOOKUP(J2,B2:B6,F2:F6),"Not found")
Use a fallback only when a missing match is expected.
02

#SPILL!

A dynamic-array formula needs empty cells around its output. Clear the obstruction and enter the formula in a normal grid cell, not inside an Excel Table.

=UNIQUE(D2:D6)
The formula should spill into open cells.
03

#VALUE! or #REF!

#VALUE! often means the wrong data type; #REF! means a reference is no longer valid. Check source cells and deleted rows/columns.

=ISNUMBER(E2)
Test whether a supposed number is actually numeric.
Quick checks

#DIV/0! — check the divisor. #NAME? — check function spelling or version. #REF! — repair deleted references. #SPILL! — clear the output area.

AdvancedThree short challenges with answers

Test yourself on the same five rows

Try each question before opening the answer. Doing the work yourself is how the formulas become useful.

01

Beginner challenge

How many orders have the course name Excel Basics?

=COUNTIF(B2:B6,"Excel Basics")
Answer: 2.
02

Intermediate challenge

What is total revenue for Cairo orders that are courses?

=SUMIFS(G2:G6,D2:D6,"Cairo",C2:C6,"Course")
Answer: 760.
03

Advanced challenge

Make a sorted list of distinct cities without typing each city.

=SORT(UNIQUE(D2:D6))
The result spills a distinct, alphabetically sorted city list.
Beginner functionFUNCTION REFERENCE

SUM

Add numbers.

TRY IT IN EXCEL

A formula you can copy

=SUM(G2:G6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

AVERAGE

Find the arithmetic mean.

TRY IT IN EXCEL

A formula you can copy

=AVERAGE(G2:G6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

MIN

Find the smallest value.

TRY IT IN EXCEL

A formula you can copy

=MIN(G2:G6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

MAX

Find the largest value.

TRY IT IN EXCEL

A formula you can copy

=MAX(G2:G6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

COUNT

Count cells containing numbers.

TRY IT IN EXCEL

A formula you can copy

=COUNT(E2:E6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

COUNTA

Count nonempty cells.

TRY IT IN EXCEL

A formula you can copy

=COUNTA(B2:B6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

COUNTBLANK

Count empty cells.

TRY IT IN EXCEL

A formula you can copy

=COUNTBLANK(B2:B6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

ROUND

Round to a chosen decimal place.

TRY IT IN EXCEL

A formula you can copy

=ROUND(12.345,2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

ROUNDUP

Always round away from zero.

TRY IT IN EXCEL

A formula you can copy

=ROUNDUP(12.341,2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

ROUNDDOWN

Always round toward zero.

TRY IT IN EXCEL

A formula you can copy

=ROUNDDOWN(12.349,2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

ABS

Return a number without its sign.

TRY IT IN EXCEL

A formula you can copy

=ABS(-25)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

IF

Choose a result from a TRUE/FALSE test.

TRY IT IN EXCEL

A formula you can copy

=IF(G2>=400,"High","Standard")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

AND

Require every test to be TRUE.

TRY IT IN EXCEL

A formula you can copy

=AND(D2="Cairo",E2>=3)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

OR

Require at least one test to be TRUE.

TRY IT IN EXCEL

A formula you can copy

=OR(D2="Cairo",D2="Giza")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

NOT

Reverse a TRUE/FALSE result.

TRY IT IN EXCEL

A formula you can copy

=NOT(C2="Service")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

SUMIF

Add values meeting one condition.

TRY IT IN EXCEL

A formula you can copy

=SUMIF(C2:C6,"Course",G2:G6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

COUNTIF

Count values meeting one condition.

TRY IT IN EXCEL

A formula you can copy

=COUNTIF(B2:B6,"Excel Basics")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

AVERAGEIF

Average values meeting one condition.

TRY IT IN EXCEL

A formula you can copy

=AVERAGEIF(D2:D6,"Cairo",G2:G6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

TODAY

Return today's date.

TRY IT IN EXCEL

A formula you can copy

=TODAY()
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

NOW

Return the current date and time.

TRY IT IN EXCEL

A formula you can copy

=NOW()
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

DATE

Build a real Excel date.

TRY IT IN EXCEL

A formula you can copy

=DATE(2026,1,5)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

YEAR

Extract the year from a date.

TRY IT IN EXCEL

A formula you can copy

=YEAR(A2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

MONTH

Extract the month from a date.

TRY IT IN EXCEL

A formula you can copy

=MONTH(A2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

DAY

Extract the day from a date.

TRY IT IN EXCEL

A formula you can copy

=DAY(A2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

LEFT

Take characters from the left.

TRY IT IN EXCEL

A formula you can copy

=LEFT(B2,5)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

RIGHT

Take characters from the right.

TRY IT IN EXCEL

A formula you can copy

=RIGHT(B2,6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

MID

Take characters from the middle.

TRY IT IN EXCEL

A formula you can copy

=MID(B2,7,6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

LEN

Count characters, including spaces.

TRY IT IN EXCEL

A formula you can copy

=LEN(B2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

TRIM

Remove repeated ordinary spaces.

TRY IT IN EXCEL

A formula you can copy

=TRIM(" Excel Basics ")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

UPPER

Convert text to uppercase.

TRY IT IN EXCEL

A formula you can copy

=UPPER(B2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

LOWER

Convert text to lowercase.

TRY IT IN EXCEL

A formula you can copy

=LOWER(B2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

PROPER

Capitalize each word.

TRY IT IN EXCEL

A formula you can copy

=PROPER("excel basics")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Beginner functionFUNCTION REFERENCE

CONCAT

Join text values.

TRY IT IN EXCEL

A formula you can copy

=CONCAT(B2," — ",D2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Excel 2019+. If Excel reports #NAME?, check whether this function is available in your version.

Beginner functionFUNCTION REFERENCE

TEXTJOIN

Join text with a delimiter.

TRY IT IN EXCEL

A formula you can copy

=TEXTJOIN(" / ",TRUE,B2,D2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Excel 2019+. If Excel reports #NAME?, check whether this function is available in your version.

Intermediate functionFUNCTION REFERENCE

SUMIFS

Sum with several conditions.

TRY IT IN EXCEL

A formula you can copy

=SUMIFS(G2:G6,D2:D6,"Cairo",C2:C6,"Course")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

COUNTIFS

Count rows meeting several conditions.

TRY IT IN EXCEL

A formula you can copy

=COUNTIFS(D2:D6,"Cairo",C2:C6,"Course")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

AVERAGEIFS

Average with several conditions.

TRY IT IN EXCEL

A formula you can copy

=AVERAGEIFS(G2:G6,D2:D6,"Cairo")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

IFERROR

Show a fallback when any error occurs.

TRY IT IN EXCEL

A formula you can copy

=IFERROR(E2/F2,0)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

IFNA

Show a fallback only for #N/A.

TRY IT IN EXCEL

A formula you can copy

=IFNA(XLOOKUP("SQL Intro",B2:B6,F2:F6),"Missing")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

XLOOKUP: recent Excel. If Excel reports #NAME?, check whether this function is available in your version.

Intermediate functionFUNCTION REFERENCE

IFS

Test several conditions in order.

TRY IT IN EXCEL

A formula you can copy

=IFS(G2>=400,"High",G2>=200,"Medium",TRUE,"Low")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Excel 2019+. If Excel reports #NAME?, check whether this function is available in your version.

Intermediate functionFUNCTION REFERENCE

SWITCH

Map one value to several possible outputs.

TRY IT IN EXCEL

A formula you can copy

=SWITCH(D2,"Cairo","CAI","Giza","GIZ","Other")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Excel 2019+. If Excel reports #NAME?, check whether this function is available in your version.

Intermediate functionFUNCTION REFERENCE

XLOOKUP

Find a match and return a related value.

TRY IT IN EXCEL

A formula you can copy

=XLOOKUP("SQL Intro",B2:B6,F2:F6,"Not found")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Excel 2021+ / Microsoft 365. If Excel reports #NAME?, check whether this function is available in your version.

Intermediate functionFUNCTION REFERENCE

VLOOKUP

Look rightward in a table.

TRY IT IN EXCEL

A formula you can copy

=VLOOKUP("SQL Intro",B2:F6,5,FALSE)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

INDEX

Return a value by position.

TRY IT IN EXCEL

A formula you can copy

=INDEX(F2:F6,4)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

MATCH

Find the position of a value.

TRY IT IN EXCEL

A formula you can copy

=MATCH("SQL Intro",B2:B6,0)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

XMATCH

Modern exact-match position lookup.

TRY IT IN EXCEL

A formula you can copy

=XMATCH("SQL Intro",B2:B6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Excel 2021+ / Microsoft 365. If Excel reports #NAME?, check whether this function is available in your version.

Intermediate functionFUNCTION REFERENCE

FILTER

Return only rows that meet a test.

TRY IT IN EXCEL

A formula you can copy

=FILTER(A2:G6,D2:D6="Cairo","No rows")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Dynamic arrays. If Excel reports #NAME?, check whether this function is available in your version.

Intermediate functionFUNCTION REFERENCE

UNIQUE

List distinct values.

TRY IT IN EXCEL

A formula you can copy

=UNIQUE(D2:D6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Dynamic arrays. If Excel reports #NAME?, check whether this function is available in your version.

Intermediate functionFUNCTION REFERENCE

SORT

Sort a range by a column.

TRY IT IN EXCEL

A formula you can copy

=SORT(A2:G6,7,-1)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Dynamic arrays. If Excel reports #NAME?, check whether this function is available in your version.

Intermediate functionFUNCTION REFERENCE

SORTBY

Sort one range using another.

TRY IT IN EXCEL

A formula you can copy

=SORTBY(A2:G6,G2:G6,-1)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Dynamic arrays. If Excel reports #NAME?, check whether this function is available in your version.

Intermediate functionFUNCTION REFERENCE

TEXT

Display a number/date in a chosen format.

TRY IT IN EXCEL

A formula you can copy

=TEXT(DATE(2026,1,5),"dd mmm yyyy")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

VALUE

Turn numeric text into a number.

TRY IT IN EXCEL

A formula you can copy

=VALUE("125")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

SUBSTITUTE

Replace matching text.

TRY IT IN EXCEL

A formula you can copy

=SUBSTITUTE("Excel-Basics","-"," ")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

REPLACE

Replace text by character position.

TRY IT IN EXCEL

A formula you can copy

=REPLACE("ABC123",4,3,"999")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

FIND

Find text position, case-sensitive.

TRY IT IN EXCEL

A formula you can copy

=FIND("B","Excel Basics")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

TEXTBEFORE

Take text before a delimiter.

TRY IT IN EXCEL

A formula you can copy

=TEXTBEFORE("Excel-Basics","-")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Intermediate functionFUNCTION REFERENCE

TEXTAFTER

Take text after a delimiter.

TRY IT IN EXCEL

A formula you can copy

=TEXTAFTER("Excel-Basics","-")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Intermediate functionFUNCTION REFERENCE

TEXTSPLIT

Split text into cells.

TRY IT IN EXCEL

A formula you can copy

=TEXTSPLIT("Excel,SQL,Power BI",",")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Intermediate functionFUNCTION REFERENCE

EDATE

Move a date by whole months.

TRY IT IN EXCEL

A formula you can copy

=EDATE(DATE(2026,1,5),3)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

EOMONTH

Find the last day of a month.

TRY IT IN EXCEL

A formula you can copy

=EOMONTH(DATE(2026,1,5),0)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

NETWORKDAYS

Count workdays between dates.

TRY IT IN EXCEL

A formula you can copy

=NETWORKDAYS(DATE(2026,1,5),DATE(2026,1,16))
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

WORKDAY

Add workdays to a date.

TRY IT IN EXCEL

A formula you can copy

=WORKDAY(DATE(2026,1,5),10)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

SUBTOTAL

Aggregate visible filtered rows.

TRY IT IN EXCEL

A formula you can copy

=SUBTOTAL(109,G2:G6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

AGGREGATE

Aggregate while ignoring errors/hidden rows.

TRY IT IN EXCEL

A formula you can copy

=AGGREGATE(9,6,G2:G6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

MEDIAN

Find the middle value.

TRY IT IN EXCEL

A formula you can copy

=MEDIAN(G2:G6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

RANK.EQ

Rank a value among numbers.

TRY IT IN EXCEL

A formula you can copy

=RANK.EQ(G2,G2:G6,0)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

STDEV.S

Estimate sample standard deviation.

TRY IT IN EXCEL

A formula you can copy

=STDEV.S(G2:G6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

ISBLANK

Check if a cell is truly empty.

TRY IT IN EXCEL

A formula you can copy

=ISBLANK(B2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Intermediate functionFUNCTION REFERENCE

ISNUMBER

Check if a value is numeric.

TRY IT IN EXCEL

A formula you can copy

=ISNUMBER(E2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Advanced functionFUNCTION REFERENCE

SUMPRODUCT

Multiply aligned arrays and add the results.

TRY IT IN EXCEL

A formula you can copy

=SUMPRODUCT(E2:E6,F2:F6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Advanced functionFUNCTION REFERENCE

LET

Name parts of a long calculation.

TRY IT IN EXCEL

A formula you can copy

=LET(rev,E2:E6*F2:F6,SUM(rev))
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Excel 2021+ / Microsoft 365. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

LAMBDA

Create a reusable custom calculation.

TRY IT IN EXCEL

A formula you can copy

=LAMBDA(u,p,u*p)(E2,F2)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

BYROW

Apply a LAMBDA to each row.

TRY IT IN EXCEL

A formula you can copy

=BYROW(E2:F6,LAMBDA(r,PRODUCT(r)))
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

BYCOL

Apply a LAMBDA to each column.

TRY IT IN EXCEL

A formula you can copy

=BYCOL(E2:F6,LAMBDA(c,SUM(c)))
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

MAP

Transform corresponding array values.

TRY IT IN EXCEL

A formula you can copy

=MAP(E2:E6,F2:F6,LAMBDA(u,p,u*p))
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

REDUCE

Accumulate an array into one result.

TRY IT IN EXCEL

A formula you can copy

=REDUCE(0,G2:G6,LAMBDA(total,x,total+x))
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

SCAN

Return every running total.

TRY IT IN EXCEL

A formula you can copy

=SCAN(0,G2:G6,LAMBDA(total,x,total+x))
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

MAKEARRAY

Generate values by row and column.

TRY IT IN EXCEL

A formula you can copy

=MAKEARRAY(3,3,LAMBDA(r,c,r*c))
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

SEQUENCE

Generate a numbered array.

TRY IT IN EXCEL

A formula you can copy

=SEQUENCE(5)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Dynamic arrays. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

RANDARRAY

Generate random numbers as an array.

TRY IT IN EXCEL

A formula you can copy

=RANDARRAY(5,1,1,100,TRUE)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Dynamic arrays. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

TAKE

Keep rows or columns from an array edge.

TRY IT IN EXCEL

A formula you can copy

=TAKE(A2:G6,3)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

DROP

Remove rows or columns from an array edge.

TRY IT IN EXCEL

A formula you can copy

=DROP(A2:G6,1)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

CHOOSECOLS

Select non-adjacent columns.

TRY IT IN EXCEL

A formula you can copy

=CHOOSECOLS(A2:G6,2,4,7)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

CHOOSEROWS

Select rows by position.

TRY IT IN EXCEL

A formula you can copy

=CHOOSEROWS(A2:G6,1,3,5)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

VSTACK

Stack arrays vertically.

TRY IT IN EXCEL

A formula you can copy

=VSTACK(A2:G3,A4:G6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

HSTACK

Stack arrays horizontally.

TRY IT IN EXCEL

A formula you can copy

=HSTACK(B2:B6,G2:G6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

TOCOL

Flatten an array into one column.

TRY IT IN EXCEL

A formula you can copy

=TOCOL(E2:F6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

TOROW

Flatten an array into one row.

TRY IT IN EXCEL

A formula you can copy

=TOROW(E2:F6)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

WRAPROWS

Wrap a vector into rows.

TRY IT IN EXCEL

A formula you can copy

=WRAPROWS(SEQUENCE(6),3)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

EXPAND

Pad an array to chosen dimensions.

TRY IT IN EXCEL

A formula you can copy

=EXPAND(B2:B6,7,1,"-")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365 / Excel 2024. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

GROUPBY

Group and summarize values.

TRY IT IN EXCEL

A formula you can copy

=GROUPBY(D2:D6,G2:G6,SUM)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

PIVOTBY

Summarize by row and column fields.

TRY IT IN EXCEL

A formula you can copy

=PIVOTBY(D2:D6,C2:C6,G2:G6,SUM)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Version note

Microsoft 365. If Excel reports #NAME?, check whether this function is available in your version.

Advanced functionFUNCTION REFERENCE

INDIRECT

Turn text into a reference; use sparingly.

TRY IT IN EXCEL

A formula you can copy

=INDIRECT("G2")
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.

Advanced functionFUNCTION REFERENCE

OFFSET

Return a shifted reference; use sparingly.

TRY IT IN EXCEL

A formula you can copy

=OFFSET(G2,2,0)
01

How to use it

Click an empty cell, paste the formula, and press Enter. The example uses the five-row practice sheet shown under , unless its values are written directly inside the formula.

Change the cell references or quoted criteria to fit your own workbook. If your Excel locale uses semicolons, replace the formula’s argument commas with semicolons.