---
title: "Flip \"Last, First\" with TEXTAFTER | PracticeExcel"
description: "Practice TEXTAFTER and TEXTBEFORE in a live spreadsheet: turn \"Last, First\" into \"First Last\"."
canonical_url: "https://practiceexcelonline.com/practice/substitute-textbefore-textafter/textafter-flip-names"
locale: en
meta:
  "og:description": "Practice TEXTAFTER and TEXTBEFORE in a live spreadsheet: turn \"Last, First\" into \"First Last\"."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~RmxpcCAiTGFzdCwgRmlyc3QiIHdpdGggVEVYVEFGVEVS%2Cdescription_~UHJhY3RpY2UgVEVYVEFGVEVSIGFuZCBURVhUQkVGT1JFIGluIGEgbGl2ZSBzcHJlYWRzaGVldDogdHVybiAiTGFzdCwgRmlyc3QiIGludG8gIkZpcnN0IExhc3QiLg%2Ceyebrow_~U1VCU1RJVFVURSwgVEVYVEJFRk9SRSBhbmQgVEVYVEFGVEVS%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiTmFtZSBpbiB0aGUgSFIgZXhwb3J0IiwiTmFtZSJdfSx7Im4iOjIsImNlbGxzIjpbIkJlcmcsIEFubmEiLCIiXX1dLCJ0YXJnZXQiOlsxLDFdfX0%2Cp_Ii9wcmFjdGljZS9zdWJzdGl0dXRlLXRleHRiZWZvcmUtdGV4dGFmdGVyL3RleHRhZnRlci1mbGlwLW5hbWVzIg%2Cs_fMCHTf7LKfiTo8K1.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Flip \"Last, First\" with TEXTAFTER | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~RmxpcCAiTGFzdCwgRmlyc3QiIHdpdGggVEVYVEFGVEVS%2Cdescription_~UHJhY3RpY2UgVEVYVEFGVEVSIGFuZCBURVhUQkVGT1JFIGluIGEgbGl2ZSBzcHJlYWRzaGVldDogdHVybiAiTGFzdCwgRmlyc3QiIGludG8gIkZpcnN0IExhc3QiLg%2Ceyebrow_~U1VCU1RJVFVURSwgVEVYVEJFRk9SRSBhbmQgVEVYVEFGVEVS%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiTmFtZSBpbiB0aGUgSFIgZXhwb3J0IiwiTmFtZSJdfSx7Im4iOjIsImNlbGxzIjpbIkJlcmcsIEFubmEiLCIiXX1dLCJ0YXJnZXQiOlsxLDFdfX0%2Cp_Ii9wcmFjdGljZS9zdWJzdGl0dXRlLXRleHRiZWZvcmUtdGV4dGFmdGVyL3RleHRhZnRlci1mbGlwLW5hbWVzIg%2Cs_fMCHTf7LKfiTo8K1.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **Flip "Last, First" with TEXTAFTER**

**Premium**

In B2, turn the name in A2 into "Anna Berg". Join TEXTAFTER and TEXTBEFORE around ", " with a space between them.

B2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Name in the HR export | Name |  |  |  | |
| 2 | Berg, Anna |  |  |  |  | |
| 3 |  |  |  |  |  | |
| 4 |  |  |  |  |  | |
| 5 |  |  |  |  |  | |
| 6 |  |  |  |  |  | |
| 7 |  |  |  |  |  | |
| 8 |  |  |  |  |  | |

**Premium lesson**

## **Unlock SUBSTITUTE, TEXTBEFORE and TEXTAFTER and every other lesson**

This is a premium lesson. Premium lets you solve it and every other lesson, take the timed mock tests, and earn certificates you can share on LinkedIn.

Next with premium:**Dates and DATE****EDATE and EOMONTH**

It comes up in this mock test: [**Excel test for admin jobs**](https://practiceexcelonline.com/tests/excel-test-for-admin-jobs)

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/practice/substitute-textbefore-textafter/textafter-flip-names)

Need help?

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/textafter-flip-names#webpage","description":"Practice TEXTAFTER and TEXTBEFORE in a live spreadsheet: turn \"Last, First\" into \"First Last\".","name":"Flip \"Last, First\" with TEXTAFTER","url":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/textafter-flip-names","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/textafter-flip-names#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/textafter-flip-names#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/substitute-textbefore-textafter/textafter-flip-names"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/textafter-flip-names#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel practice exercises","item":"https://practiceexcelonline.com/practice","position":2},{"@type":"ListItem","name":"SUBSTITUTE, TEXTBEFORE and TEXTAFTER","item":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter","position":3},{"@type":"ListItem","name":"Flip \"Last, First\" with TEXTAFTER","position":4}]},{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/textafter-flip-names#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I switch \"Last, First\" to \"First Last\" in Excel?","acceptedAnswer":{"@type":"Answer","text":"=TEXTAFTER(A2,\", \")&\" \"&TEXTBEFORE(A2,\", \") takes the part after the comma, a space, then the part before it."}},{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/textafter-flip-names#/schema/learning-resource/1","@type":"LearningResource","description":"Practice TEXTAFTER and TEXTBEFORE in a live spreadsheet: turn \"Last, First\" into \"First Last\".","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"Flip \"Last, First\" with TEXTAFTER","teaches":"SUBSTITUTE, TEXTBEFORE and TEXTAFTER"},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
