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

Data Analysis

  • How To Filter Data in Excel
  • How to create Gauge Chart in Excel
  • Working With Tables in Excel
  • Randomize/ Shuffle List in Excel
  • How to Create Gantt Chart in Excel

References

  • Multi-criteria lookup and transpose in Excel
  • MATCH function: Description, Usage, Syntax, Examples and Explanation
  • Vlookup Examples in Excel
  • How to calculate two-way lookup VLOOKUP in Excel Table
  • How to get last row in numeric data in Excel

Data Validations

  • Data validation must not exist in list
  • Excel Data validation must not contain
  • Excel Data validation must contain specific text
  • Excel Data validation only dates between
  • Excel Data validation allow weekday only

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

by

If you need extract the last name from a full name in LAST, FIRST format, you can do so with a formula that uses the LEFT and FIND functions. The formula works with names in this format, where a comma and space separate the last name from the first name.

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

Formula

=LEFT(name,FIND(", ",name)-1)

Explanation

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

In the example, the active cell contains this formula:

=LEFT(B4,FIND(", ",B4)-1)

How this formula works

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

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

The comma is actually one character beyond the end of the last name, so, to get the true length of the last name, 1 must be subtracted:

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

Because the name is in reverse order (LAST, FIRST), the LEFT function can simply extract the last name directly from the left.

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

6 – 1 = 5 // length of last name

Then:

LEFT("Chang, Amy",5) // "Chang"

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

  • Invoice status with nested if in Excel
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • How to use IFS function in Excel
  • OR function Examples in Excel
  • Not Equal To ‘<>‘ operator in Excel

Date Time

  • How to get number of days, weeks, months or years between two dates in Excel
  • MONTH function: Description, Usage, Syntax, Examples and Explanation
  • Add workdays no weekends in Excel
  • How to calculate workdays per month in Excel
  • Two ways to sum time over 30 minutes in Excel

Grouping

  • How to randomly assign data to groups in Excel
  • Group numbers at uneven intervals in Excel
  • If cell contains one of many things in Excel
  • Map inputs to arbitrary values in Excel
  • Categorize text with keywords in Excel

General

  • Flash Fill in Excel
  • How to count total number of cells in a rectangular range in Excel
  • Find, Select, Replace and Go To Special in Excel
  • How to fill cell ranges with random number from fixed set of options in Excel
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning