App Tutorial

Extract Numbers from Strings in Google Sheets: A Guide

Jason Gong
App automation expert
Apps used
Google Sheets
April 15, 2024

Learn to extract numbers from strings in Google Sheets using REGEX functions and built-in tools like LEFT, RIGHT, and MID. For more complex data, add-ons like Power Tools simplify the process without formulas.

This guide provides multiple methods to suit various user needs.

Streamline your Google Sheets data extraction process with Bardeen's automation playbooks.

How to Extract Numbers from Google Sheets

Extracting numbers from strings in Google Sheets is a common task that can be accomplished using various methods, including formulas and add-ons. This guide covers several techniques to help you efficiently extract numerical data from mixed content within cells.

Looking to streamline your Google Sheets tasks? Bardeen offers powerful automation playbooks to save you time and reduce errors. Download Bardeen now!

Extract Numbers from String Google Sheets

One of the primary methods for extracting numbers from strings in Google Sheets involves using the REGEXEXTRACT, REGEXREPLACE, and REGEXMATCH functions. These functions allow you to specify patterns (regular expressions) to match and extract or replace text.

Google Sheets REGEX Extract

To extract numbers using REGEXEXTRACT, you can use a formula like:


This formula extracts the first sequence of digits from a string. For extracting multiple numbers or more complex patterns, adjust the regular expression accordingly.

For extracting all numbers by removing non-numeric characters, use REGEXREPLACE:


This formula replaces anything that's not a digit with an empty string, effectively leaving only numbers.

Google Sheets Extract Number from String

An alternative method to extract numbers, including integers, decimals, and negative signs, is:


This formula is useful for extracting numbers with more complexity, such as decimals and negatives, from a string.

Extract Numbers from Cell Google Sheets

Besides regular expressions, you can use built-in functions like LEFT, RIGHT, and MID to extract numbers based on their position within the string. These functions are particularly useful when the structure of the cell content is consistent.

For example, to extract the first 6 characters from the left:


To extract 2 characters from the right:


And to extract a substring from the middle:


Combine these with SEARCH to locate and extract numbers relative to specific text within the string.

Formula-free Ways to Extract Data from Google Sheets Cells

For those preferring not to use formulas, Google Sheets add-ons like Power Tools offer user-friendly interfaces for extracting numbers, text, and other data types without writing formulas. These tools provide options for extracting data based on specific criteria, including text case, position, and patterns.

Additionally, the Split Date & Time tool within Power Tools can separate date and time from timestamps, simplifying the extraction process for date-related numbers.

Discover more about enhancing your Google Sheets experience with add-ons and automations in our blog posts on addons for Google Sheets, how to automate Google Sheets, and explore our collection of Google Sheets automations.

Whether you're dealing with simple or complex data, Google Sheets provides multiple methods to extract numbers efficiently, catering to various user preferences and requirements.

Automate Google Sheets Data Tasks with Bardeen

Extracting numbers from Google Sheets can be a manual task requiring complex formulas or scripts. However, for those looking to streamline their workflows and automate data extraction and processing, Bardeen offers a suite of powerful automation playbooks. Whether you're dealing with large datasets, performing regular updates, or integrating data across platforms, Bardeen's playbooks can save you time and reduce errors. Automate your Google Sheets tasks to focus more on analysis and insights.

  1. Copy Google News for a keyword and save results to Google Sheets: This playbook automates the collection of Google News articles based on keywords and directly saves the results into Google Sheets. It's an efficient way to keep track of news trends or mentions without manual searches and data entry.
  2. Extract Emails from Google Search Results to Google Sheets: Perfect for lead generation and research, this playbook automates the extraction of email addresses from Google Search results and compiles them in Google Sheets, streamlining outreach and data collection efforts.
  3. Scrape Redfin Listings Contact Numbers to Google Sheets: Real estate professionals can benefit from this playbook by automating the extraction of contact numbers from Redfin listings into Google Sheets, facilitating an organized approach to lead generation and market research.

Other answers for Google Sheets

How to Disable Download Option in Google Sheets

Learn how to disable downloads in Google Sheets by adjusting share permissions and protecting sheets, enhancing data security.

Read more
How to Download Specific Parts of Google Sheets

Learn how to download specific parts of Google Sheets using the sheet's GID for efficient data sharing and analysis. Streamline your workflow today.

Read more
How to Download Images and Charts from Google Sheets

Learn how to download images and charts from Google Sheets directly or from a URL list to Google Drive, including step-by-step instructions.

Read more
How to Convert Google Sheets to Excel

Learn to download Excel from Google Sheets in a few steps, ensuring file compatibility and offline access. Perfect for Excel users.

Read more
Effective Methods to Convert Numeric Dates to Written Months

Learn how to convert numeric dates to written months in Google Sheets using TEXT function, custom formatting, and more for enhanced data presentation.

Read more
Convert Time to Text in Google Sheets

Learn how to convert time to text in Google Sheets using the TEXT function and built-in formatting options for clear data presentation.

Read more
how does bardeen work?

Your proactive teammate — doing the busywork to save you time

Integrate your apps and websites

Use data and events in one app to automate another. Bardeen supports an increasing library of powerful integrations.

Perform tasks & actions

Bardeen completes tasks in apps and websites you use for work, so you don't have to - filling forms, sending messages, or even crafting detailed reports.

Combine it all to create workflows

Workflows are a series of actions triggered by you or a change in a connected app. They automate repetitive tasks you normally perform manually - saving you time.

get bardeen

Don't just connect your apps, automate them.

200,000+ users and counting use Bardeen to eliminate repetitive tasks

Effortless setup
AI powered workflows
Free to use
Reading time
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
By clicking “Accept”, you agree to the storing of cookies. View our Privacy Policy for more information.