MID Formula in Excel

Returns a substring starting at start_char with a given character count.

Syntax

Formula structure

Source: Quadratic docs
=MID(s, start_char, char_count)
s
Required: Yes

Required argument used by the MID formula.

start_char
Required: Yes

Required argument used by the MID formula.

char_count
Required: Yes

Required argument used by the MID formula.

Examples for the mid formula in excel

Copy these examples into a spreadsheet and adjust the ranges for your own data.

MID syntax pattern

=MID(s, start_char, char_count)

Use this MID pattern as the starting point for your spreadsheet formula.

MID in a worksheet

=MID("Text", start_char, char_count)

Returns a substring starting at start_char with a given character count.

When to use MID

Use MID when you need to return a substring starting at start_char with a given character count.

  • Clean, reshape, and compare text values.
  • Prepare labels, IDs, and imported text for analysis.

How MID works in Quadratic

In Quadratic, MID follows the syntax MID(s, start_char, char_count). The function works inside Quadratic formulas and can be combined with spreadsheet ranges, tables, and other formulas.

Common MID mistakes

Most MID issues come from mismatched argument types, ranges that do not cover the intended data, or optional parameters being omitted when the default behavior is not what you expected.

  • Check each required parameter before copying the formula across a sheet.
  • Confirm that ranges line up with the rows or columns you intend to analyze.
  • Use Quadratic AI to explain or debug the formula when the result looks wrong.

Related formulas

MID formula FAQ

What does the mid formula in excel do?

MID returns a substring starting at start_char with a given character count.

What is the syntax for MID?

The syntax is MID(s, start_char, char_count). Required and optional parameters are listed at the top of this guide.

Can Quadratic AI help with MID?

Yes. Quadratic AI can write a MID formula, explain existing formula logic, or help debug broken references and unexpected results.

Quadratic AI

Struggling with formulas? Use Quadratic AI.

Spreadsheet formulas are powerful, but they get painful fast. A MID formula can start simple, then turn into logic that is hard to understand, easy to break, and difficult to share with the rest of your team.

Quadratic AI helps you write formulas, explain formula logic, debug broken references, and move beyond formulas when advanced analysis needs Python, SQL, charts, or connected data.

Try Quadratic AI

Why formulas slow teams down

  • Long formulas become hard to read, understand, and trust.
  • Formula logic breaks when rows, columns, or assumptions change.
  • Manual updates make dashboards and reports fragile over time.
  • Complex formulas are difficult to explain, review, and share with teammates.
  • Advanced analysis quickly outgrows formula-only workflows.