Display the Last Six Digits of Hyperlink URLs in Excel
Question details
Display only the final six digits of each task URL while preserving the full hyperlink destination.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- An exported report contains full task URLs that need shorter, clickable labels.
- Observed behavior
- Each cell should show the final six digits and open the original task URL when clicked.
Check that the full URL is the cell value, not just the destination behind different display text, and that the URL ends with the six digits you want to show.
Create a hyperlink with a six-digit display label
Use this formula when each source cell contains the full URL and its last six characters are the desired digits.
In an empty cell beside the first URL, such as B1, enter =HYPERLINK(A1,RIGHT(A1,6)). Replace A1 with the cell containing the full URL if needed.
Select the formula cell and drag its fill handle down the column to create a clickable label for each URL.
Click a resulting six-digit label and confirm that it opens the original task URL.

Create Short Hyperlink Labels in WPS Spreadsheet
Use HYPERLINK and RIGHT in WPS Spreadsheet to show the last six characters of each URL while linking to the full address.
- 1. Open the report: Open WPS Spreadsheet and use Open to select the report containing the full URLs.
- 2. Enter the formula: In an empty cell next to the first URL, enter =HYPERLINK(A1,RIGHT(A1,6)), adjusting A1 to match the URL cell.
- 3. Fill the column: Select the formula cell and drag the fill handle down alongside the remaining URLs.
- 4. Check the result: Click a six-digit label to verify that it opens the full task URL, then use File > Save to save the workbook.

Frequently Asked Questions
What if the URL does not end with the task digits?
RIGHT(A1,6) returns the final six characters, so it will not isolate the task ID if extra parameters or characters follow it. Adjust the formula to extract the ID based on the URL's structure.
Can the formula extract a URL hidden behind existing link text?
No. HYPERLINK(A1,RIGHT(A1,6)) uses the value in A1. If A1 displays different text from its hyperlink destination, obtain the full URL in a cell before using the formula.
Can I hide the column containing the full URLs?
Yes. Select the source URL column, right-click its header, and choose Hide. Keep the column in the workbook because the hyperlink formulas reference it.
Can I use TEXTAFTER instead of RIGHT?
If the desired ID is the text after an equals sign, you can use =HYPERLINK(A1,TEXTAFTER(A1,"=")) in a version of Excel that supports TEXTAFTER. It returns all text after the first equals sign, not necessarily six digits.




