Go Back

Get page from URL

To get a page from URL while working on excel spreadsheet, a formula can be used that comprises on many excel functions like SUBSTITUTE, RIGHT, REPT, and TRIM.


The formula to get a page from URL in excel worksheet is given below

=TRIM(RIGHT(SUBSTITUTE(url,"/",REPT(" ",100)),100))


Firstly, the above-mentioned formula substitute forward slashes by 100 spaces. From Right, it removes 100 characters thereby cleaning this utilizing TRIM function. The substitution is achieved by SUBSTITUTE and REPT like this:

=SUBSTITUTE(B5,”/”,REPT(” “,100))

At that point, RIGHT function removes last 100 letters of the sequence that is provided by SUBSTITUTE. At last, TRIM evacuates all driving and trailing characters and provides the result.


In this example, we have inserted two website links in the input list i.e. B5 and B6. The formula is entered in the C5 of the output list as shown in the figure.  

Figure 1 Example to get the page from URL in Excel


  • In the above formula, the usage of 100 is subjective.
  • It speaks to the maximum characters found after last forward “/” in the actual content.


Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

I like to get the employee report from one page to other page.
Solved by T. Q. in 16 mins
Hi I need help with page breaks. I can't get rid of automatic breaks and on page layout it goes from page 1 to page 3.
Solved by C. W. in 12 mins
Trying to get running totals to transfer from multiple pages to main page
Solved by X. W. in 25 mins

Leave a Comment