Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to calculate average last N values in a table in Excel
  • Data Series in Excel
  • Move chart to a separate worksheet in Excel
  • Add Outline to Data in Excel
  • Excel Pie Chart

References

  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • Extract data with helper column in Excel
  • How to use Excel ROWS Function
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel MMULT Function

Data Validations

  • Excel Data validation date in next 30 days
  • Excel Data validation no punctuation
  • Prevent invalid data entering in specific cells
  • Excel Data validation with conditional list
  • Excel Data validation must contain specific text

How to strip html from text or numbers in Excel

by

To strip html or other markup from values in cells, you can use the MID function.

Formula

=MID(text,start,LEN(text)-markup_len)

Explanation

In the example shown, the formula in C5 is:

=MID(B5,4,LEN(B5)-7)

How this formula works

The MID function returns characters using a fixed starting point and ending point. In this case, the markup consists of the html bold tag, which appears at the start of each cell and the associated closing tag, which appears at the end.

The MID function has been configured to always start at 4, which effectively strips the starting tag from the value. The second argument, num_chars, is calculated by getting the total characters in the cell with LEN, then subtracting 7. We use 7 because the starting bold tag is 3 characters and the closing tag is 4 characters = 7 characters total.

With these arguments, MID extracts just the text between the two tags and returns the result.

Post navigation

Next Post:

Create One-dimensional and Two-dimensional Array

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Complete List of Excel Logical Functions, References and Examples
  • How to use Excel XOR Function
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel NOT Function
  • Extract multiple matches into separate rows in Excel

Date Time

  • Dynamic date list in Excel
  • Add business days to date in Excel
  • Convert date to text in Excel
  • NOW function: Description, Usage, Syntax, Examples and Explanation
  • How to get year from date in Excel

Grouping

  • Map text to numbers in Excel
  • Calculate conditional mode with criteria in Excel
  • Running count group by n size in Excel
  • Map inputs to arbitrary values in Excel
  • Group times into 3 hour buckets in Excel

General

  • Share Excel data with Word documents
  • How to add sequential row numbers to a set of data in Excel
  • How to password protect excel sheet?
  • How to get amount with percentage in Excel
  • Index and match on multiple columns in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning