
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Extract First or First Two Words from Text Strings in Google Sheets
Organising and managing vast amounts of information effectively is essential in today's data-driven environment. To get the desired information when working with text data in Google Sheets, it is frequently necessary to extract particular chunks of text strings. Extracting the first or first two words from a text stream is a frequent requirement.
In this tutorial, we'll show you how to use Google Sheets to extract the first or first two words from text strings. This step-by-step manual will give you the skills and resources you need, regardless of your level of experience, to do this assignment quickly. You will have a thorough understanding of how to work with text strings in Google Sheets to extract the precise data you require at the end of this course.
Extract First or First Two Words from Text Strings
Here we will first use a formula to get any one of the values, then use the autofill handle to complete the task. So let us see a simple process to know how you can extract the first or first two words from text strings in a Google Sheet.
Step 1
Consider a Google Sheet where you have a list of sentences similar to the below image.
First, click on an empty cell, in this case cell B2, and enter the formula as =regexextract(A2,"[\w]* [\w]*") and click enter to get the first value. In the formula, A2 is the address of the cell containing a sentence.
Empty cell > Formula > Enter.
Step 2
Then fill all values using the autofill handle to complete the task.
This is how you can extract the first or first two words from text strings in Excel.
Conclusion
In this tutorial, we have used a simple example to demonstrate how you can extract the first or first two words from text strings in a Google Sheet to highlight a particular set of data.