Function Problems

Display the Last Six Digits of Hyperlink URLs in Excel

Rana GarciaRana Garcia Nov 18, 2026 869 views

Question details

Display only the final six digits of each task URL while preserving the full hyperlink destination.

Display the Last Six Digits of Hyperlink URLs in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the formula

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.

2
Fill down

Select the formula cell and drag its fill handle down the column to create a clickable label for each URL.

3
Test a link

Click a resulting six-digit label and confirm that it opens the original task URL.

Create a hyperlink with a six-digit display label
Keep the source URLs: The formulas reference the original URL cells, so keep those cells in the workbook. If a cell contains different display text with a hyperlink attached, the formula uses that text rather than extracting the hyperlink destination.
Work with hyperlinks in WPS

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. 1. Open the report: Open WPS Spreadsheet and use Open to select the report containing the full URLs.
  2. 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. 3. Fill the column: Select the formula cell and drag the fill handle down alongside the remaining URLs.
  4. 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.
Display short, clickable labels for task URLsOpen and edit Microsoft Excel XLSX filesFill formulas down a column for exported reports
microsoft office alternative - wps office

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.