Intermediate Excel · Interactive lesson 5 of 12

Text & date functions

Real contact lists are never clean: extra spaces, inconsistent IDs, names in one cell that should be two. Text functions fix the words; date functions turn calendar math — due dates, working days, month ends — into a formula instead of a finger-count.

IntermediateInteractive

Screens shown: Excel for Microsoft 365 for Windows. Practice works in any browser.

Written tutorialText and Date Functions in Excel

Skill check

Try these first:

  • Strip stray spaces from a cell with TRIM.
  • Pull part of a value out with LEFT, RIGHT, or MID.
  • Combine two cells into one label with TEXTJOIN or CONCAT.
  • Count working days between two dates with NETWORKDAYS.

All familiar? Skip ahead to I6 — Conditional Formatting.

Targeted teach

What you're learning

TRIM / CLEAN
Strips leading, trailing, and doubled-up spaces — the classic cause of two "identical-looking" values Excel treats as different.
LEFT, RIGHT, MID
LEFT(text,n) takes the first n characters, RIGHT(text,n) the last n, and MID(text,start,len) a slice from the middle.
TEXTBEFORE / TEXTAFTER
Newer, when available — split around a delimiter without counting characters by hand.
CONCAT / TEXTJOIN
CONCAT glues values together with nothing between them; TEXTJOIN(delimiter, ignore_empty, …) adds a separator and can skip blanks.
TODAY, EOMONTH, YEAR/MONTH/DAY
TODAY() returns today's date live; EOMONTH(date,months) jumps to a month-end; the others pull one part out of a date.
NETWORKDAYS
Counts weekdays between two dates, inclusive — the building block for "how many working days until this is due."
Tip: in this widget, dates are typed as quoted text like "2026-09-28" — in real Excel you'd normally just click a date cell instead of typing the date as text.

Where to find it in Excel

Formulas›Text›Date & Time

Swipe sideways to see the whole window.

  1. 1Formulas tab.
  2. 2Text holds TRIM, LEFT, RIGHT, MID, TEXTBEFORE, TEXTAFTER, CONCAT and TEXTJOIN.
  3. 3TEXTBEFORE returns the text before a delimiter, here the last name.
  4. 4Date & Time holds TODAY, EOMONTH, YEAR, MONTH, DAY and NETWORKDAYS.

Rendered view of Excel for Microsoft 365 (Windows). Ribbon layout can differ slightly on Mac, Excel for the web or a narrow window.

Guided practice

A messy contact list. Clean the name, extract part of the ID, build a display label, and count workdays until the due date.

📇 Contact List — click a dashed cell
—
ƒx
Start with the cleaned name — wrap A2 in TRIM.

Independent variation

Clean a real contact list

Take a genuinely messy list — names, IDs, or dates — and clean it up: trim stray spaces, pull a standard ID format out with LEFT/RIGHT/MID, build a combined display label, and calculate how many working days remain before a real deadline.

Spot a mistake or have an idea for this lesson? Send feedback