Extract a Tire Size from Variable-Length Text in Excel
Question details
Extract a tire size from a cell when the surrounding text varies in length.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains tire descriptions with sizes such as 285/45R19 or P185/60R15 in different positions.
- Observed behavior
- The desired result is the tire size without the surrounding text, including the P prefix when present.
Check that the tire size contains the first slash in each cell and that three digits immediately precede it. Note that 285/45R19 has nine characters, while P185/60R15 has ten.
Extract a nine-character tire size with MID and FIND
Use this formula when the required size starts with three digits and does not need a P prefix.
If the source text is in A2, click B2 or another empty cell.
Type =MID(A2,FIND("/",A2)-3,9) and press Enter. FIND locates the first slash, and MID returns nine characters starting three positions before it.
Drag the fill handle at the bottom-right corner of B2 down the column, then check the results against several source cells.

Include an optional P prefix in the extracted size
Use this formula for a mix of nine-character sizes and ten-character sizes with a P prefix.
Extract tire sizes with formulas in WPS Spreadsheets
Use MID and FIND in WPS Spreadsheets to extract a tire size from variable-length text, then fill the formula down your worksheet.
- 1. Open the worksheet: Open WPS Spreadsheets and use Open to select the workbook containing your tire descriptions.
- 2. Choose an output cell: If the first description is in A2, click an empty cell such as B2.
- 3. Enter a formula: For a nine-character size, enter =MID(A2,FIND("/",A2)-3,9) and press Enter. To retain an optional P prefix, use the prefix-aware formula in the second solution above.
- 4. Fill and check: Drag the fill handle down from B2 and check the extracted sizes against the source text.

Frequently Asked Questions
Why does the formula remove the P from P185/60R15?
The nine-character formula starts three positions before the slash, at the first digit. P185/60R15 is ten characters long, so use the prefix-aware formula in the second solution to include P.
What happens if the cell contains another slash before the tire size?
FIND("/",A2) locates the first slash, so the formula may extract the wrong text. Remove or account for earlier slashes before using these formulas.
Why does the nine-character formula return an error?
FIND returns an error if A2 has no slash. Check the source cell for a slash and confirm that at least three characters precede it.
Can I apply the formula to an entire column?
Enter the formula in B2, then drag its fill handle down alongside the source cells. Excel adjusts the A2 reference for each row.




