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

Data Analysis

  • How to Create Thermometer Chart in Excel
  • Randomize/ Shuffle List in Excel
  • What-If Analysis: Scenarios and Goal Seek in Excel
  • Everything about Charts in Excel
  • Conditional Formatting Icon Sets Examples in Excel

References

  • Convert text string to valid reference in Excel using Indirect function
  • How to use Excel ROWS Function
  • Two-way lookup with VLOOKUP in Excel
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • Extract data with helper column in Excel

Data Validations

  • Excel Data validation must not contain
  • Excel Data validation require unique number
  • Excel Data validation specific characters only
  • Excel Data validation allow uppercase only
  • Excel Data validation date in next 30 days

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

  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • How to return blank in place of #DIV/0! error in Excel
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • Invoice status with nested if in Excel

Date Time

  • Count day of week between dates in Excel
  • WEEKNUM function: Description, Usage, Syntax, Examples and Explanation
  • Get project end date in Excel
  • How to get number of days, weeks, months or years between two dates in Excel
  • How to calculate next anniversary date or birthday in Excel

Grouping

  • Group times into 3 hour buckets in Excel
  • Calculate conditional mode with criteria in Excel
  • How to randomly assign people to groups in Excel
  • Group arbitrary text values in Excel
  • How to randomly assign data to groups in Excel

General

  • How to make excel worksheets print on one page?
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • Delete Blank Rows at Once in Excel
  • Flash Fill in Excel
  • How to calculate profit margin percentage in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning