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

Data Analysis

  • Reverse List in Excel
  • How To Remove Duplicates In Excel Column Or Row?
  • How to do a t-Test in Excel?
  • How To Create Pareto Chart in Excel
  • How to create a Histogram in Excel

References

  • How to use Excel VLOOKUP Function
  • How to get last row in mixed data with blanks in Excel
  • Two-column Lookup in Excel
  • How to get address of named range in Excel
  • How to use Excel LOOKUP Function

Data Validations

  • Excel Data validation with conditional list
  • Excel Data validation whole percentage only
  • Excel Data validation must begin with
  • Excel Data validation allow uppercase only
  • How To Create Drop-down List in Excel

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

  • How to use Excel NOT Function
  • How to use Excel AND Function
  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • Check multiple cells are equal in Excel
  • IF, AND, OR and NOT Functions Examples in Excel

Date Time

  • Create date range from two dates in Excel
  • Get fiscal year from date in Excel
  • Convert date to month and year in Excel
  • Calculate number of hours between two times in Excel
  • How to calculate Quarter of Date in Excel

Grouping

  • Running count group by n size in Excel
  • Map text to numbers in Excel
  • How to randomly assign data to groups in Excel
  • Group arbitrary text values in Excel
  • Group numbers at uneven intervals in Excel

General

  • How to make excel worksheets print on one page?
  • How to count total number of cells in a rectangular range in Excel
  • Share Excel data with Word documents
  • How to calculate percent of goal in Excel
  • Basic error trapping example in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning