Description:
When staff codes like IT-2024-0187 pack a department, year, and serial number into one cell, extracting pieces manually—or missing a short code with a typo—is easy to get wrong. In this quick tutorial, you'll see how LEN checks character counts to spot typos, while LEFT, MID, and RIGHT split codes cleanly and preserve leading zeros like 0187.
What you'll see in this video:
Using =LEN(A8) to count characters and spot a typo where a code (OP-2024-045) has 11 characters instead of 12
Extracting the 2-letter department (IT, HR, OP, AC) with =LEFT(A8,2)
Pulling the 4-digit year (2024, 2023, 2022) starting at position 4 with =MID(A8,4,4)
Grabbing the last 4 characters for the serial number with =RIGHT(A8,4)—and why text results keep leading zeros (0187) intact
Formulas shown:
Count characters / spot typos: =LEN(A8)
Department (first 2 chars): =LEFT(A8,2)
Year (4 chars from pos 4): =MID(A8,4,4)
Serial (last 4 chars): =RIGHT(A8,4)
Which Excel text or code-parsing trick should we cover next? Drop your ideas in the comments and subscribe for more practical spreadsheet tricks!
#Excel #ExcelTips #LEFT #MID #RIGHT #LENFunction #ExcelTutorial #SpreadsheetTips #MicrosoftExcel #Shorts
Share this link via
Or copy link
























