Category Archives: Excel

How to extract domain from a URL in Excel

This is just a quick tip. Let’s say that you’ve got “″ in cell B1 in Excel, but you want to display “”. You can use this formula:

=SUBSTITUTE(MID(B1, FIND(“//”, B1)+2, FIND(“/”, B1, FIND(“//”, B1)+2)-8), “www.”, “”)

This isn’t perfect as it assumes you always use “http://”, ┬ábut it works pretty well for a quick, easy fix.