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

Data Analysis

  • How to Create Thermometer Chart in Excel
  • Conditional Formatting New Rule with Formulas in Excel
  • Subtotal function in Excel
  • Add Outline to Data in Excel
  • How to Create Column Chart in Excel

References

  • Create hyperlink with VLOOKUP in Excel
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • How to get first row number in range in Excel
  • How to use Excel ROWS Function
  • Left Lookup in Excel

Data Validations

  • Excel Data validation number multiple 100
  • Excel Data validation date in next 30 days
  • Excel Data validation allow weekday only
  • Excel Data validation unique values only
  • Excel Data validation don’t exceed total

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

  • Nested IF function example in Excel
  • How to use Excel FALSE Function
  • Check multiple cells are equal in Excel
  • IF, AND, OR and NOT Functions Examples in Excel
  • How to use Excel OR Function

Date Time

  • How to calculate working days left in month in Excel
  • Series of dates by day
  • Get work hours between dates in Excel
  • Add days exclude certain days of week in Excel
  • Add years to date in Excel

Grouping

  • Group numbers with VLOOKUP in Excel
  • Group numbers at uneven intervals in Excel
  • Map text to numbers in Excel
  • Running count group by n size in Excel
  • Calculate conditional mode with criteria in Excel

General

  • Delete Blank Rows at Once in Excel
  • Share Excel data with Word documents
  • Mark Workbook as Final in Excel
  • Basic error trapping example in Excel
  • Zoom Worksheet in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning