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

Data Analysis

  • How to combine 2 or more chart types in a single chart in Excel
  • How To Create Frequency Distribution in Excel
  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • Remove Duplicates Example in Excel
  • Working With Tables in Excel

References

  • Offset in Excel
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • Lookup entire row in Excel
  • How to use Excel MMULT Function
  • How to get address of last cell in range in Excel

Data Validations

  • Excel Data validation must begin with
  • Excel Data validation allow weekday only
  • Data validation must not exist in list
  • Excel Data validation unique values only
  • Excel Data validation must not contain

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 XOR Function
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • Excel If, Nested If, And/Or Criteria Examples
  • IF with boolean logic in Excel

Date Time

  • How to get workdays between dates in Excel
  • Get day from date in Excel
  • How to enter Today’s Date or Static Date and Time in Excel
  • Get week number from date in Excel
  • How to calculate workdays per month in Excel

Grouping

  • How to randomly assign people to groups in Excel
  • Group arbitrary text values in Excel
  • Map inputs to arbitrary values in Excel
  • Categorize text with keywords in Excel
  • Group numbers at uneven intervals in Excel

General

  • How to calculate profit margin percentage in Excel
  • Zoom Worksheet in Excel
  • How to calculate percent of students absent in Excel
  • How to get original price from percentage discount in Excel
  • How to password protect excel sheet?
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning