---
title: "TRIM, PROPER and UPPER practice exercises | PracticeExcel"
description: "Practice TRIM, PROPER, UPPER and LOWER in a live spreadsheet by cleaning up names and codes."
canonical_url: "https://practiceexcelonline.com/practice/trim-proper-upper"
locale: en
meta:
  "og:description": "Practice TRIM, PROPER, UPPER and LOWER in a live spreadsheet by cleaning up names and codes."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VFJJTSwgUFJPUEVSIGFuZCBVUFBFUiBwcmFjdGljZSBleGVyY2lzZXM%2Cdescription_~UHJhY3RpY2UgVFJJTSwgUFJPUEVSLCBVUFBFUiBhbmQgTE9XRVIgaW4gYSBsaXZlIHNwcmVhZHNoZWV0IGJ5IGNsZWFuaW5nIHVwIG5hbWVzIGFuZCBjb2Rlcy4%2Ceyebrow_Excel%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiTmFtZSBhcyBpbXBvcnRlZCIsIkNsZWFuIG5hbWUiXX0seyJuIjoyLCJjZWxscyI6WyIgIEFubmEgICBCZXJnICIsIiJdfV0sInRhcmdldCI6WzEsMV19fQ%2Cp_Ii9wcmFjdGljZS90cmltLXByb3Blci11cHBlciI%2Cs_0Ju1XLYXr4qs1BGa.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "TRIM, PROPER and UPPER practice exercises | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VFJJTSwgUFJPUEVSIGFuZCBVUFBFUiBwcmFjdGljZSBleGVyY2lzZXM%2Cdescription_~UHJhY3RpY2UgVFJJTSwgUFJPUEVSLCBVUFBFUiBhbmQgTE9XRVIgaW4gYSBsaXZlIHNwcmVhZHNoZWV0IGJ5IGNsZWFuaW5nIHVwIG5hbWVzIGFuZCBjb2Rlcy4%2Ceyebrow_Excel%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiTmFtZSBhcyBpbXBvcnRlZCIsIkNsZWFuIG5hbWUiXX0seyJuIjoyLCJjZWxscyI6WyIgIEFubmEgICBCZXJnICIsIiJdfV0sInRhcmdldCI6WzEsMV19fQ%2Cp_Ii9wcmFjdGljZS90cmltLXByb3Blci11cHBlciI%2Cs_0Ju1XLYXr4qs1BGa.png"
---

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

# **TRIM, PROPER and UPPER practice exercises**

Tidy up text that came from somewhere else: strip extra spaces, and fix names and codes typed in the wrong case.

[**Start the first exercise**](https://practiceexcelonline.com/practice/trim-proper-upper/trim-extra-spaces)

PROPER(TRIM(

1. [**1****Remove extra spaces with TRIM**In B2, use TRIM to remove the extra spaces from the name in A2.](https://practiceexcelonline.com/practice/trim-proper-upper/trim-extra-spaces)
2. [**2****Fix the case of names with PROPER****Premium**In B2, use PROPER to write the name in A2 with a capital first letter in each word.](https://practiceexcelonline.com/practice/trim-proper-upper/proper-capitalize-names)
3. [**3****Clean a code with UPPER and TRIM****Premium**In B2, clean up the code in A2 so it has no extra spaces and is all capitals. Put TRIM inside UPPER.](https://practiceexcelonline.com/practice/trim-proper-upper/upper-trim-clean-codes)
4. [**4****Fix messy names with PROPER and TRIM****Premium**The name in A2 has extra spaces and the wrong capitals. In B2, clean it up to "Maria Lopez". Put TRIM inside PROPER.](https://practiceexcelonline.com/practice/trim-proper-upper/proper-trim-clean-names)

## **Functions in this topic**

- [**PROPER**](https://practiceexcelonline.com/functions/proper)
- [**TRIM**](https://practiceexcelonline.com/functions/trim)

## **Read the guide**

- [**Free Excel course online: learn Excel from your first formula to job-ready**](https://practiceexcelonline.com/learn/how-to-learn-excel)
- [**VLOOKUP vs XLOOKUP vs INDEX MATCH: which lookup to use**](https://practiceexcelonline.com/learn/vlookup-vs-xlookup-vs-index-match)
- [**How to clean data in Excel with formulas**](https://practiceexcelonline.com/learn/clean-data-in-excel)

```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/trim-proper-upper#webpage","description":"Practice TRIM, PROPER, UPPER and LOWER in a live spreadsheet by cleaning up names and codes.","name":"TRIM, PROPER and UPPER practice exercises","url":"https://practiceexcelonline.com/practice/trim-proper-upper","@type":["WebPage","CollectionPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/trim-proper-upper#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/trim-proper-upper"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/trim-proper-upper#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":"TRIM, PROPER and UPPER practice exercises","position":3}]},{"@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.
