DEV Community

Tao Luo
Tao Luo

Posted on

Excel Formulas That Actually Save Time at Work

Most people who use Excel every day know enough formulas to get by — and are still doing by hand the kind of work that a single formula would finish in a second. The gap is rarely about advanced skills. It is about knowing which eight or ten formulas cover ninety percent of real office work, and recognizing when a problem is a lookup problem, a conditional problem, or a text-cleaning problem.

This is a practical tour of the formulas I reach for first, with the situations where each one earns its keep. No exotic functions, no tricks for their own sake — just the toolkit that turns a two-hour spreadsheet chore into a fifteen-minute one.

Start with IFERROR Before Anything Explodes

Nothing undermines a spreadsheet like a column full of #N/A and #DIV/0!. The IFERROR(value, fallback) wrapper is the cheapest insurance available: it takes the result of a calculation and substitutes something sensible when that calculation fails. =IFERROR(A2/B2, 0) says "divide these, and if the denominator is empty, show zero instead of an error."

The professional version of this habit is to decide what failure should look like in every column. Sometimes zero is right. Sometimes "n/a" or an empty string is more honest than a fake number. Wrap your lookups and divisions first, and the sheet immediately looks like something you can send to a manager without an apology paragraph.

Lookups: XLOOKUP If You Have It, INDEX/MATCH If You Do Not

The single most common spreadsheet task is joining two tables: prices to products, headcount to departments, targets to regions. XLOOKUP is the modern tool for this. =XLOOKUP(A2, PriceList[Product], PriceList[Price], "not found") reads almost like English: find this product in the price list and return its price, and say "not found" if it is missing.

If your workplace is still on an older version, learn INDEX and INDEX+MATCH. =INDEX(C:C, MATCH(A2, B:B, 0)) does the same job with two functions, and unlike older lookup functions it does not care which direction the columns run. Once you replace manual cross-referencing with one of these, tasks like reconciling two monthly reports shrink from an afternoon to a coffee break.

SUMIFS and COUNTIFS: Ask the Sheet Questions

Aggregation with conditions is where spreadsheets start doing analysis instead of storage. SUMIFS(sum_range, criteria_range1, criteria1, ...) adds up what matches your rules: revenue where the region is East and the quarter is Q3, hours where the project code matches and the week is current. COUNTIFS counts on the same logic.

The time-saving insight is that these formulas turn a question into a repeatable object. Instead of filtering, eyeballing, and typing a total, you write the question once and it keeps answering itself as data arrives. Build the small summary block at the top of the sheet with three or four of these, and you have a live dashboard that needs no maintenance.

Clean Text with TRIM, TEXT, and TEXTJOIN

Data that comes from other people is always dirty: extra spaces, inconsistent dates, codes glued together in the wrong order. TRIM removes stray spaces that silently break lookups (the classic cause of "the lookup returns nothing and the value is RIGHT THERE"). TEXT(value, "yyyy-mm-dd") forces dates into a consistent shape for reports and exports. TEXTJOIN(", ", TRUE, range) glues a list of names or codes into one cell without dragging concatenation chains across the row.

Spend two minutes cleaning an ID column with TRIM and UPPER before you look anything up, and you will eliminate the most mysterious category of spreadsheet failures. Cleaning formulas are boring, and they are the difference between a sheet that works and a sheet that works only on your machine.

LET and Formula Discipline for the Long Sheet

When a formula grows into a monster — the same sub-expression repeated three times — LET lets you name the pieces: compute once, reuse by name, and read the formula without decoding it for ten minutes. Even without it, you can apply the same discipline: helper columns are not a beginner's crutch. A visible column with a clearly named intermediate step is easier to audit than one heroic formula in a single cell.

Add a label above each block of calculations, and keep raw data and computed areas physically separated. Six months from now, the person who inherits this sheet — possibly you — will be grateful.

One Hour of Setup, Reclaimed Every Week

The pattern behind all of these formulas is the same: pay a small setup cost once, then collect the dividend every time the sheet is used. Wrap errors deliberately. Look things up instead of copying them. Ask conditional questions with SUMIFS. Clean text at the door. Name your intermediate steps.

Pick one recurring spreadsheet this week and rebuild it with these five habits. The first rebuild takes longer than doing it the old way; every one after that is faster. If you want the reference sheet I keep beside me — the eight formulas with their patterns and common mistakes — I keep a copy on my author profile along with other productivity guides. Take a look when you have a minute.

Top comments (0)