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

Data Analysis

  • How To Create Pareto Chart in Excel
  • How to create Gauge Chart in Excel
  • Excel Pie Chart
  • Excel Bar Chart
  • Error Bars in Excel

References

  • Last row number in range
  • How to get address of first cell in range in Excel
  • Excel Advanced Lookup using Index and Match Functions
  • How to get address of named range in Excel
  • Count unique text values with criteria

Data Validations

  • Excel Data validation whole percentage only
  • Excel Data validation must begin with
  • Excel Data validation don’t exceed total
  • Excel Data validation allow uppercase only
  • Data validation must not exist in 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

  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel OR Function
  • Not Equal To ‘<>‘ operator in Excel
  • How to return blank in place of #DIV/0! error in Excel
  • How to use Excel TRUE Function

Date Time

  • YEAR function: Description, Usage, Syntax, Examples and Explanation
  • How to get Holiday Date from Year in Excel
  • Add years to date in Excel
  • Calculate total hours that fall between two times in Excel
  • Generate series of dates by weekends in Excel

Grouping

  • Categorize text with keywords in Excel
  • Map text to numbers in Excel
  • Group times into unequal buckets in Excel
  • Running count group by n size in Excel
  • How to randomly assign data to groups in Excel

General

  • AutoFit Column Width, AutoFit Row Height in Excel
  • Convert column letter to number in Excel
  • Find, Select, Replace and Go To Special in Excel
  • How to generate random times at specific intervals in Excel
  • How to fill cell ranges with random number from fixed set of options in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning