Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Google Sheets – Extracting a specific URL from a website

I have a URL in "Column B" in the attached sheet. I require "Business Website URL"
in Column C (Company Website). Right now, I am doing it manually, opening the URL in "Column B", finding the business website URL and copy pasting the "Business Website URL" in Column C. Is there any automated way in Google sheets to copy the "Business Website URL". Attached an example sheet for reference

https://docs.google.com/spreadsheets/d/1uRplK6RisRycqR5fUQcLeHHDm8wpRf2mFEjDuo5SzlA/edit?usp=sharing

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Type in C5:

=IMPORTXML(B5,"//a[@class='bxl w-button']/@href")

This formula visits the url specified in B5, and looks for a element with bxl w-button class, returning the href attribute.

See relevant documentation.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading