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

Data Analysis

  • Excel Frequency Function Example
  • How to calculate correlation coefficient Correlation in Excel
  • Get column name from index in Excel Table
  • How to Create Thermometer Chart in Excel
  • How to add Trendline to a chart in Excel

References

  • How to use Excel VLOOKUP Function
  • Find closest match in Excel
  • How to retrieve first match between two ranges in Excel
  • How to create dynamic named range with OFFSET in Excel
  • Create hyperlink with VLOOKUP in Excel

Data Validations

  • Excel Data validation no punctuation
  • Excel Data validation don’t exceed total
  • Excel Data validation must not contain
  • Excel Data validation allow uppercase only
  • Excel Data validation allow weekday only

Get first name from name with comma — Manipulating NAMES in Excel

by

To extract the first name from a full name in “Last, First” format, you can use a formula that uses RIGHT, LEN and FIND functions.

Note: this formula will only work with names in Last, First format, separated with a comma and space.

Formula

=RIGHT(name,LEN(name)-FIND(", ",name)-1)

Explanation

From the table and formula (above), name represent full name in this format:

LAST, FIRST
Philip, White
Tom, Green
Chalk, Black

A comma and space separate the last name from the first name.

In the example, the active cell contains this formula:

=RIGHT(B4,LEN(B4)-FIND(", ",B4)-1)

How this formula works

At a high level, this formula uses RIGHT to extract characters from the right side of the name. To figure out the number of characters that need to be extracted to get the first name, the formula uses the FIND function to locate the position of “, ” in the name:

FIND(", ",B4) // position of comma

FIND returns the position of the comma and space as a number. This number is then subtracted from the total length of the name:

LEN(B4)-FIND(", ",B4) // length of first name + 1

The result is the length of the first name, plus one extra character, due to the comma. To get the true length, 1 is subtracted:

LEN(B4)-FIND(", ",B4)-1 // length of the first name

Because the name is in reverse order (LAST, FIRST), the RIGHT function can simply extract the length of the first name.

For the example, the name is “Chang, Amy”, the position of the comma is 6. So the inner formula simplifies to this:

10 – 6 – 1 = 3 // length of first name

Then:

RIGHT("Chang, Amy",3) // "Amy"

 

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

  • OR function Examples in Excel
  • SWITCH function example in Excel
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • Invoice status with nested if in Excel

Date Time

  • WORKDAY function: Description, Usage, Syntax, Examples and Explanation
  • Get days between dates ignoring years in Excel
  • How to calculate months between dates in Excel
  • Extract date from a date and time in Excel
  • NETWORKDAYS.INTL function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Categorize text with keywords in Excel
  • Calculate conditional mode with criteria in Excel
  • Map inputs to arbitrary values in Excel
  • How to randomly assign people to groups in Excel
  • If cell contains one of many things in Excel

General

  • List worksheet index numbers in Excel
  • Count cells less than in Excel
  • How to count total columns in range in Excel
  • Sum by group in Excel
  • With vs Without Array Formula in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning