How to Convert Text to Number In Google Sheets (4 Easy Ways)

Table of Contents

Table of Contents

When working with data in Google Sheets, you might face cases where numbers are stored as text. This can cause problems with calculations and data analysis. That means you can’t use them for calculations until you convert them.

Thatโ€™s why Google Sheets provides several simple ways to convert text to numbers. In this article, weโ€™ll learn some easy techniques to convert text to real numbers in Google Sheets. These methods are simple and do not need any special skills.

Key Takeaways

Here is a step-by-step guide to apply ARRAYFORMULA function to convert text to number in Google Sheets:

โžค Click on the first cell of Column B that is next to A2 cell.
โžค In B2 cell, type the formula =ARRAYFORMULA(VALUE(A2:A10)). We include A2 to A10 in the formula because we want to convert all the text to numbers in those cells.
โžค Press Enter.
โžค This formula will now convert all the values in Column A into numbers and display them in Column B.

Text numbers in column A converted to real numbers in column B in Google Sheets


1

Using the VALUE Function

The easiest way to convert text to numbers in Google Sheets is using the VALUE function. It takes a text string that looks like a number, such as 123 stored as text, and turns it into a real number. You can then apply formulas like SUM, AVERAGE, or other calculations without any issues. Google Sheets has no NUMBERVALUE function (Excel has one), so VALUE is the function to use. It reads any number, date or time format Google Sheets understands, and text it cannot read returns an error.

Hereโ€™s how you can use the VALUE function:

โžค Click on the first cell in Column B which is next to the text number in A2 cell.

Numbers stored as text in column A with cell B2 selected

โžค In B2 cell type this formula:

=VALUE(A2)

This formula tells Google Sheets to take the text in cell A2 and convert it into a real number.

VALUE formula typed in cell B2

โžค Press Enter. Now youโ€™ll see the actual number appear in cell B2.

Number returned by VALUE in cell B2

โžค Next, drag down the small blue dot of the square which is at the bottom-right corner of the cell to apply this formula to the entire column.

VALUE formula filled down column B

It looks the same as before, but now itโ€™s a number that you can use in calculations.


2

Applying REGEXREPLACE with VALUE Function

If a cell has both numbers and other characters, you can use REGEXREPLACE to keep only the numbers, then use the VALUE function to turn it into a real number. This method is helpful when your data includes things like words, commas, or currency signs. The formula cleans it up so you can use the number in calculations.

Here is how you can apply this formula:

โžค Select cell B2 and type the following formula:

=VALUE(REGEXREPLACE(A2, "[^\d.]", ""))

REGEXREPLACE inside VALUE typed in cell B2

โžค Press Enter and youโ€™ll see the number appear without the extra text or symbols. This formula removes everything from A2 that is not a number or a dot. That includes the minus sign, so -$45 becomes 45. Two numbers in one cell also join up: 3 boxes of 12 becomes 312.

Number pulled out of mixed text in cell B2

โžค Drag the fill handle down to apply the formula to the rest of the column.

Cleaned numbers filled down column B


3

Inserting ARRAYFORMULA Function for Bulk Conversion

If you want to change a whole column of text numbers to real numbers all at once, you can use ARRAYFORMULA. This lets you apply one formula to many cells without copying it down one by one.

Here is a step-by-step guide to apply this formula:

โžค Click on the first cell of Column B that is next to A2 cell.
โžค In B2 cell, type the following formula. We are including A2 to A10 as the cell range inside the formula because we want to convert all the text to numbers in those cells.

=ARRAYFORMULA(VALUE(A2:A10))

ARRAYFORMULA with VALUE typed in cell B2 for A2:A10

โžค Press Enter.

Whole range converted to numbers by one ARRAYFORMULA

โžค This formula will now convert all the values in Column A into numbers and display them in Column B.

Now you donโ€™t have to drag anything like previous methods, the formula automatically applies to all rows in that range.


4

Multiplying by 1 to Convert Text to Number

This is one of the fastest and easiest ways to turn text into numbers in Google Sheets. When you multiply a text number by 1, Google Sheets automatically treats it as a real number.

Here is you can apply this function:

โžค Click on the first empty cell in Column B that is next to A2 cell.
โžค Type this formula in cell B2:

=A2*1

Formula multiplying A2 by 1 in cell B2

Explanation
This formula commands Google Sheets to multiply the text number in A2 by 1. Since multiplying by 1 doesnโ€™t change the value, it just converts it into a real number.

โžค Now, press Enter. Youโ€™ll see the text value of A2 cell converted to the real number in the B2 cell.

Text value in A2 returned as a number in B2

โžค Drag the blue dot or fill handle down to copy the formula to the other rows in Column B.

Multiply by 1 formula filled down column B


Practice Resources

Get our practice workbook or necessary files that we have worked with to prepare this article.

Convert Text to Number In Google Sheets [Make a Copy]


Frequently Asked Questions

How do I fix a number stored as text in Google Sheets?

Sometimes, a number is stored as text in a cell. For example, you might see “123” in a cell, but Google Sheets treats it like a word, not a number. This can stop your formulas from working.

To fix it, you can use the VALUE function. Type this formula in another cell: =VALUE(A2) and click Enter. It will convert text into the real number.

How do I get a numeric value from a string in Google Sheets?

To do this, you can use the REGEXREPLACE function to keep only the numbers, and then use VALUE to turn it into a real number. Type this formula into B2 cell: =VALUE(REGEXREPLACE(A12, “[^\d.]”, “”)) and then click Enter.


Wrapping Up

Converting text to numbers in Google Sheets helps your data work properly. If numbers are stored as text, your formulas might not work, and your results could be wrong. It can also cause problems when you try to add numbers, make charts, or sort data.

Google Sheets offers some powerful formulas that can save you time and hassle. These formulas turn text into real numbers, so you can do calculations, create charts, and analyze data without any trouble. To change how the converted numbers look, see how to change the number format in Google Sheets.

Facebook
X
LinkedIn
WhatsApp
Picture of Sazeda Rahman

Sazeda Rahman

Sazeda Rahman Setu holds a BSc and MSc in Mathematics from National University, providing a strong foundation in analytical and logical thinking for spreadsheet work. Since May 2025, she has gained hands-on experience with Excel and Google Sheets, focusing on formulas, functions, troubleshooting, and step-by-step tutorials. She enjoys creating example datasets and clear guides to help beginners solve spreadsheet problems.
We will be happy to hear your thoughts

      Leave a reply


      Excel Insider
      Logo