Gomaa Intelligence.Data Hub
عربي

Foundations › SQL › SQL for Excel users

SQL for Excel users

SQL for Excel Users

What you know in Excel and its SQL counterpart, with a working example.

VLOOKUP / XLOOKUP→JOIN

Fetch the customer name for each order

▶ Try it yourself

A join returns every match and works on millions of rows. Open in SQL Lab

SUMIFS→SUM + WHERE

Total sales for one category

▶ Try it yourself

The condition goes in WHERE and the sum in SUM. Open in SQL Lab

COUNTIFS→COUNT + WHERE

Cairo customers who joined in 2026

▶ Try it yourself

Many conditions with AND. Open in SQL Lab

PivotTable→GROUP BY

Number of products per category

▶ Try it yourself

GROUP BY is the pivot table. Open in SQL Lab

Remove Duplicates / UNIQUE→DISTINCT

The different cities

▶ Try it yourself

DISTINCT removes duplicates. Open in SQL Lab

Filter→WHERE

Products between 200 and 500

▶ Try it yourself

WHERE is the filter. Open in SQL Lab

Sort→ORDER BY

Sort products by price

▶ Try it yourself

ORDER BY sorts. Open in SQL Lab

IF / IFS→CASE WHEN

Classify products by price

▶ Try it yourself

CASE replaces nested IFs. Open in SQL Lab

TEXTJOIN→GROUP_CONCAT

Join product names per category

▶ Try it yourself

It is GROUP_CONCAT in SQLite and STRING_AGG in PostgreSQL. Open in SQL Lab

IFERROR / IFNA→COALESCE

Replace missing emails

▶ Try it yourself

COALESCE returns the first non-empty value. Open in SQL Lab

Want an expert to do it for you?

Gomaa Intelligence turns your data into clear reports and decisions. Tell us your problem and we will reply.

Get your data analyzed by an expert ↗