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

Data Analysis

  • How to Use Solver Tool in Excel
  • Excel Pie Chart
  • How to create a Histogram in Excel
  • How to sum a total in multiple Excel tables
  • How to combine 2 or more chart types in a single chart in Excel

References

  • Vlookup Examples in Excel
  • How to use Excel LOOKUP Function
  • Convert text string to valid reference in Excel using Indirect function
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • Get nth match with INDEX / MATCH in Excel

Data Validations

  • How To Create Drop-down List in Excel
  • Excel Data validation must contain specific text
  • Excel Data validation date in specific year
  • Excel Data validation exists in list
  • Excel Data validation with conditional list

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 TRUE Function
  • Nested IF function example in Excel
  • Not Equal To ‘<>‘ operator in Excel
  • Extract multiple matches into separate rows in Excel
  • IF function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Extract time from a date and time in Excel
  • DAYS360 function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate percent of year complete in Excel
  • HOUR function: Description, Usage, Syntax, Examples and Explanation
  • Add business days to date in Excel

Grouping

  • Running count group by n size in Excel
  • Group times into 3 hour buckets in Excel
  • Group numbers with VLOOKUP in Excel
  • Group times into unequal buckets in Excel
  • If cell contains one of many things in Excel

General

  • How to calculate project complete percentage in Excel
  • How to calculate total from percentage in Excel
  • How to get original number from percent change in Excel
  • How to Insert Cells, Row and Rows in Excel
  • How to Delete Cells, Row and Rows in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning