Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Extract data with helper column in Excel
  • How to get last row in mixed data with blanks in Excel
  • How to get address of first cell in range in Excel
  • How to use Excel VLOOKUP Function
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions

Data Analysis Examples

  • How to perform a t-Test in Excel
  • Conditional Formatting Data bars Examples in Excel
  • How to combine 2 or more chart types in a single chart in Excel
  • Use Data Form to input, edit and delete records in Excel
  • How To Create Frequency Distribution in Excel

Data Validation Examples

  • Excel Data validation unique values only
  • Excel Data validation with conditional list
  • Data validation must not exist in list
  • Prevent invalid data entering in specific cells
  • Excel Data validation must contain specific text

How to get page from URL in Excel

by

To extract the page, or the part of a path after the last forward slash (/), you can use a formula based on several Excel functions: TRIM, RIGHT, SUBSTITUTE, and REPT.

Formula

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

Explanation

In the example shown, the formula in C5 is:

Worked Example:   How to extract domain from email address in Excel
=TRIM(RIGHT(SUBSTITUTE(B5,"/",REPT(" ",100)),100))

How this formula works

At the core, this formula replaces all forward slashes (/) with 100 spaces, then extracts  100 characters from the RIGHT and cleans this up with the TRIM function.

Worked Example:   How to extract name from email address in Excel

The replacement is done with SUBSTITUTE and REPT here:

SUBSTITUTE(B5,"/",REPT(" ",100))

Then, the RIGHT function extracts the last 100 characters of the string returned by SUBSTITUTE.

Finally, TRIM removes all leading and trailing space characters and returns the result.

Worked Example:   How to create email address from name in Excel

Note: the use of 100 in this formula is arbitrary, and represents the maximum number of characters to be found after the final forward slash (/) in the original text. Adjust to suit your use case.

Post navigation

Previous Post:

How to extract name from email address in Excel

Next Post:

How to get top level domain (TLD) in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • Get position of 2nd 3rd and more instance of character in Excel
  • PHONETIC function: Description, Usage, Syntax, Examples and Explanation
  • How to split text with delimiter in Excel
  • How to use double quotes inside a formula in Excel
  • How to convert numbers to text using TEXT function in Excel
  • Add workdays to date custom weekends in Excel
  • Get first day of previous month in Excel
  • Get last working day in month in Excel
  • Extract date from a date and time in Excel
  • Count day of week between dates in Excel
  • Compound Annual Growth Rate CAGR formula examples in Excel
  • RECEIVED function: Description, Usage, Syntax, Examples and Explanation
  • Calculate payment for a loan in Excel
  • XNPV function: Description, Usage, Syntax, Examples and Explanation
  • MIRR function: Description, Usage, Syntax, Examples and Explanation
Acronyms, Abbreviations, Initialism & What They Stand For
© 2021 xlsoffice. All Rights Reserved | Teal Smiles