Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Excel – Get Domain Name From URL

Posted on September 7, 2016 By David Kittell

This formula will give you a clean base path of a given URL

Example:

URL Just Domain Base Path
http://www.amazon.com/Totally-Free-kindle-Books/lm/R27UG52OAM3TFX amazon.com www.amazon.com
=IF(ISERROR(FIND("//www.",A2)), MID(A2,FIND(":",A2,4)+3,FIND("/",A2,9)-FIND(":",A2,4)-3), MID(A2,FIND(":",A2,4)+7,FIND("/",A2,9)-FIND(":",A2,4)-7))
=MID(A2,FIND(":",A2,4)+3,FIND("/",A2,9)-FIND(":",A2,4)-3)
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code Excel Microsoft Office

Post navigation

Previous post
Next post

Related Posts

Microsoft Azure SQL – Create SQL User

Posted on October 13, 2016

In this example I create a Read-Only user but this will work with any access as long as you change the db_datareader access role to what you need In SQL Management Studio open a “New Query” with [master] database USE master GO IF EXISTS ( SELECT * FROM sys.database_principals WHERE…

Read More

Android Contacts – Clear/Remove Notes

Posted on December 11, 2013October 26, 2015

SELECT data1 FROM data INNER JOIN mimetype ON mimetype_id = mimetypes._id WHERE mimetype LIKE "%note%" AND length(data1) > 0 UPDATE data SET data1 = NULL FROM data INNER JOIN mimetype ON mimetype_id = mimetypes._id WHERE mimetype LIKE "%note%" Originally Posted on December 11, 2013Last Updated on October 26, 2015 All…

Read More

Excel Rand

Posted on August 11, 2015October 26, 2015

Great if you are creating random passwords, more examples at the reference link below. =CHAR(RANDBETWEEN(65,90))& CHAR(RANDBETWEEN(65,90)) & CHAR(RANDBETWEEN(65,90)) & CHAR(RANDBETWEEN(65,90)) =CHAR(RANDBETWEEN(65,90))& CHAR(RANDBETWEEN(65,90)) & CHAR(RANDBETWEEN(65,90)) & CHAR(RANDBETWEEN(65,90)) & CHAR(RANDBETWEEN(65,90)) & CHAR(RANDBETWEEN(65,90)) & CHAR(RANDBETWEEN(65,90)) & CHAR(RANDBETWEEN(65,90)) Reference: http://excel.tips.net/T003872_Generating_Random_Strings_of_Characters.html Originally Posted on August 11, 2015Last Updated on October 26, 2015 All information on…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes