UrbanPro

Learn MS Office Software Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is the Google Sheets function to extract a URL from a cell that contains text and the wanted URL?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

Home Tutor for Computer Course

Personally I would use MID() which is a bit shorter and more elegant function. This will find a URL anywhere within the input string - start, middle or end. For an input string in cell A2 this is the formula: =MID(A2,FIND("http",A2),FIND(" ",A2,FIND("http",A2))-FIND("http",A2)) Description of...
read more

Personally I would use MID() which is a bit shorter and more elegant function. This will find a URL anywhere within the input string - start, middle or end.

For an input string in cell A2 this is the formula:

  1. =MID(A2,FIND("http",A2),FIND(" ",A2,FIND("http",A2))-FIND("http",A2))

Description of how it works. First the MID() formula, it extracts text from a string. It takes three inputs: (1) the input string, (2) where to start extracting and (3) the length of the text to extract.

(1) The input string is the contents of cell A2.

(2) The place to start: where “http” is found, FIND(A2,”http”). The value returned to MID() will actually be at the location of the “h” in “http”. This will work for “https” urls too because they still have “http” in them.

(3) Then I do a bit of subtraction. URLs do not have any spaces in them. So if I can find the first space after the URL I can use that to get the length of the URL. I use FIND() to find a space. FIND() has an optional third argument which is to start looking at the location I desire. So I set that location to be where “http” was found using the same formula as before. Since that will return the location within the whole input string and not the length of just the URL I need to subtract from it. I subtract the location of “http” using FIND("http",A2).

read less
Comments

Related Questions

How do you deal with large data sets in Excel?
large data sets is a problem, even the most excel Kings are having this problem. most easy way is to break down all the function, pivot and formulas to values. If thats not an option, try to split the...
Ajay
0 0
5

What is use of VBA? Can you explain it?

Hi Venkat, As per my opinion and experience, we are using VBA for reducing the repetitive task in excel. For example: Suppose every day you are preparing an attendance tracker in which you will mark present/absent...
Venkat
0 0
5
How to become an expert or tutor in UrbanPro ?
You need to register as tutor, and you can choose which skill you expert I mean which you want to teach and give all the information.
Jenil
How do I rename a worksheet in MS Excel?
Double click the worksheet name, then replace the existing name with a new name and press the enter key
Dhanshri
1 0
7

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

MS Excel: Formulas and Functions: Listed by Category
MS Excel: Formulas and Functions: Listed by Category Worksheet formulas are built-in functions that are entered as part of a formula in a cell. These are the most basic functions used when learning Excel....

How To Create Cutom List And Its Advantages?
You must have observed when you are typing Month names, Excel suggests the next Month Name. Also, you can drag the cursor using the anchor at the right bottom of cell and the series of month...

What is Microsoft Access?
Microsoft Access has been around for some time, yet people often still ask me what is Microsoft Access and what does it do? Microsoft Access is a part of the Microsoft Office Suite. It does not come with...

Did you know about Shortcuts of Excel
Ctrl+Shift+F3 Create name by using names of row and column labels Insert, Name, Create Ctrl+Shift+F6 Previous Window Window, ... Ctrl+Shift+F12 Print File,...

Hidden Gems of MS Excel - Data Validation - Circle Invalid Data
Q) You apply Data Validation to a range of Cells. e.g. You apply Data Validation Drop-down List of 5 Indian Cities: Indore, Lucknow, Mumbai, New Delhi, Pune, to a range of Cells What if invalid data...

Recommended Articles

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Looking for MS Office Software Training ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for MS Office Software Training Classes?

The best tutors for MS Office Software Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn MS Office Software Training with the Best Tutors

The best Tutors for MS Office Software Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more