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

Data Analysis

  • Conditional Formatting Rules in Excel
  • How to Use Solver Tool in Excel
  • Understanding Anova in Excel
  • How to Create Area Chart in Excel
  • How to create a Histogram in Excel

References

  • Excel Advanced Lookup using Index and Match Functions
  • To count total rows in a range in Excel
  • How to get last row in numeric data in Excel
  • Convert text string to valid reference in Excel using Indirect function
  • Last row number in range

Data Validations

  • Prevent invalid data entering in specific cells
  • Excel Data validation unique values only
  • Excel Data validation date in specific year
  • Excel Data validation with conditional list
  • Excel Data validation allow uppercase only

Remove text by variable position in a cell in Excel

by

To remove text from a cell when the text is at a variable position, you can use a formula based on the REPLACE function, with help from the FIND function.

Formula

=REPLACE(text,start,FIND(marker,text)+1,"")

Explanation

In the example shown, the formula in C6 is:

=REPLACE(B6,1,FIND(":",B6)+1,"")

How this formula works

The REPLACE function will replace text by position. You can use REPLACE to remove text by providing an empty string (“”) for the “new_text” argument.

In this case, we want to remove the labels that appear inside text. The labels vary in length, and include words like “Make”, “Model”, “Fuel economy”, and so on. Each label is followed by a colon and a space. We can use the colon as a “marker” to figure out where the label ends.

Working from the inside out, we use the FIND function to get the position of the colon in the text, then add 1 to take into account the space that follows the colon. The result (a number) is plugged into the REPLACE function for the “num_chars” argument, which represents the number of characters to replace.

The REPLACE function then replaces the text from 1 to “colon + 1” with “”. In the example shown, the solution looks like this:

=REPLACE(B6,1,FIND(":",B6)+1,"")
=REPLACE(B6,1,6,"")
=2016

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

  • IF, AND, OR and NOT Functions Examples in Excel
  • OR function Examples in Excel
  • Complete List of Excel Logical Functions, References and Examples
  • Invoice status with nested if in Excel
  • How to use Excel XOR Function

Date Time

  • Convert date to text in Excel
  • Convert time to time zone in Excel
  • Get month from date in Excel
  • Calculate expiration date in Excel
  • Sum through n months in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • Group times into unequal buckets in Excel
  • How to randomly assign people to groups in Excel
  • Map inputs to arbitrary values in Excel
  • Map text to numbers in Excel

General

  • How to make excel worksheets print on one page?
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • Freeze and Unfreeze Panes in Excel
  • Excel Ribbon Quick Overview For Beginners
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning