---
title: "Years and months of service as text | PracticeExcel"
description: "Practice DATEDIF in a live spreadsheet: show years and months of service as text, like \"6 years, 8 months\"."
canonical_url: "https://practiceexcelonline.com/practice/datedif/datedif-years-and-months"
locale: en
meta:
  "og:description": "Practice DATEDIF in a live spreadsheet: show years and months of service as text, like \"6 years, 8 months\"."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Years%2Band%2Bmonths%2Bof%2Bservice%2Bas%2Btext%2Cdescription_~UHJhY3RpY2UgREFURURJRiBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IHNob3cgeWVhcnMgYW5kIG1vbnRocyBvZiBzZXJ2aWNlIGFzIHRleHQsIGxpa2UgIjYgeWVhcnMsIDggbW9udGhzIi4%2Ceyebrow_DATEDIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIkhpcmVkIiwiRGF0ZSIsIlNlcnZpY2UiXX0seyJuIjoyLCJjZWxscyI6WyJKdW4gMTUsIDIwMTgiLCJNYXIgMSwgMjAyNSIsIiJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9wcmFjdGljZS9kYXRlZGlmL2RhdGVkaWYteWVhcnMtYW5kLW1vbnRocyI%2Cs_WYipcVN86e523u1_.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Years and months of service as text | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Years%2Band%2Bmonths%2Bof%2Bservice%2Bas%2Btext%2Cdescription_~UHJhY3RpY2UgREFURURJRiBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IHNob3cgeWVhcnMgYW5kIG1vbnRocyBvZiBzZXJ2aWNlIGFzIHRleHQsIGxpa2UgIjYgeWVhcnMsIDggbW9udGhzIi4%2Ceyebrow_DATEDIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIkhpcmVkIiwiRGF0ZSIsIlNlcnZpY2UiXX0seyJuIjoyLCJjZWxscyI6WyJKdW4gMTUsIDIwMTgiLCJNYXIgMSwgMjAyNSIsIiJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9wcmFjdGljZS9kYXRlZGlmL2RhdGVkaWYteWVhcnMtYW5kLW1vbnRocyI%2Cs_WYipcVN86e523u1_.png"
---

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

# **Years and months of service as text**

**Premium**

In C2, show the service from A2 to B2 as "6 years, 8 months". Join DATEDIF with "y" for the whole years, the text " years, ", DATEDIF with "ym" for the months left over and " months".

C2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Hired | Date | Service |  |  | |
| 2 | Jun 15, 2018 | Mar 1, 2025 |  |  |  | |
| 3 |  |  |  |  |  | |
| 4 |  |  |  |  |  | |
| 5 |  |  |  |  |  | |
| 6 |  |  |  |  |  | |
| 7 |  |  |  |  |  | |
| 8 |  |  |  |  |  | |

**Premium lesson**

## **Unlock DATEDIF 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:**Week numbers and weekends****Loans: PMT and NPER**

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/practice/datedif/datedif-years-and-months)

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/datedif/datedif-years-and-months#webpage","description":"Practice DATEDIF in a live spreadsheet: show years and months of service as text, like \"6 years, 8 months\".","name":"Years and months of service as text","url":"https://practiceexcelonline.com/practice/datedif/datedif-years-and-months","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/datedif/datedif-years-and-months#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/datedif/datedif-years-and-months#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/datedif/datedif-years-and-months"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/datedif/datedif-years-and-months#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":"DATEDIF","item":"https://practiceexcelonline.com/practice/datedif","position":3},{"@type":"ListItem","name":"Years and months of service as text","position":4}]},{"@id":"https://practiceexcelonline.com/practice/datedif/datedif-years-and-months#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I show years and months between two dates in Excel?","acceptedAnswer":{"@type":"Answer","text":"Join two DATEDIFs, =DATEDIF(A2,B2,\"y\")&\" years, \"&DATEDIF(A2,B2,\"ym\")&\" months\". \"ym\" gives the months after the whole years."}},{"@id":"https://practiceexcelonline.com/practice/datedif/datedif-years-and-months#/schema/learning-resource/1","@type":"LearningResource","description":"Practice DATEDIF in a live spreadsheet: show years and months of service as text, like \"6 years, 8 months\".","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"Years and months of service as text","teaches":"DATEDIF"},{"@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.
