Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • Count unique text values with criteria
  • How to get relative row numbers in a range in Excel
  • Last row number in range
  • Two-way lookup with VLOOKUP in Excel

Data Analysis Examples

  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • How To Create Frequency Distribution in Excel
  • How to add Trendline to a chart in Excel
  • Subtotal function in Excel
  • Filter Data Based on Date in Excel

Data Validation Examples

  • Prevent invalid data entering in specific cells
  • Excel Data validation no punctuation
  • Excel Data validation number multiple 100
  • Excel Data validation whole percentage only
  • Excel Data validation require unique number

How to Separate Text Strings in Excel

by

This example teaches you how to separate strings in Excel. Asides from using ‘Convert Text to Columns Wizard’ in data tab, you can as well follow the steps below to Separate Text Strings in Excel .

The problem we are dealing with is that we need to tell Excel where we want to separate the string. In case of Smith, Mike the comma is at position 6 while in case of Williams, Janet the comma is at position 9.

Worked Example:   How to calculate percent of students absent in Excel

1. To get the first name, use the formula below.

Explanation: to find the position of the comma, use the FIND function (position 6). To get the length of a string, use the LEN function (11 characters). =RIGHT(A2,LEN(A2)-FIND(“,”,A2)-1) reduces to =RIGHT(A2,11-6-1). =RIGHT(A2,4) extracts the 4 rightmost characters and gives the desired result (Mike).

Worked Example:   How to calculate percent variance in Excel

2. To get the last name, use the following formula.

Worked Example:   How to calculate Quarter of Date in Excel

Explanation: to find the position of the comma, use the FIND function (position 6). =LEFT(A2,FIND(“,”, A2)-1) reduces to =LEFT(A2,6-1). =LEFT(A2,5) extracts the 5 leftmost characters and gives the desired result (Smith).

3. Select the range B2:C2 and drag it down.

Post navigation

Previous Post:

How to calculate Number of Instances in Excel

Next Post:

How to calculate Quarter of Date in Excel

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
  • How to get last word in a cell in Excel
  • How to extract domain from email address in Excel
  • DBCS function: Description, Usage, Syntax, Examples and Explanation
  • How to Capitalize first letter in a sentence in Excel
  • How to check cell contains which things in Excel
  • Extract time from a date and time in Excel
  • Get fiscal quarter from date in Excel
  • Get work hours between dates and times in Excel
  • How to calculate nth day of week in month in Excel
  • How to calculate next scheduled event in Excel
  • INTRATE function: Description, Usage, Syntax, Examples and Explanation
  • How to set check register balance in Excel
  • How to calculate principal for given period in Excel
  • DB function: Description, Usage, Syntax, Examples and Explanation
  • PRICEMAT function: Description, Usage, Syntax, Examples and Explanation
Acronyms, Abbreviations, Initialism & What They Stand For
© 2022 xlsoffice . All Right Reserved. | Teal Smiles