Search code examples
google-sheetsgoogle-apps

How to prevent Google Spreadsheet from interpreting commas as thousand separators?


Currently, pasting 112,359,1003 into Google Sheets automatically converts the value to 1123591003.

This prevents me from applying the Split text to columns option as there are no commas left to split by.

Split text into Columns image

Note that my number format is set to the following (rather than being Automatic):

Number format option selected

Selecting the Plain text option prevents the commas from being truncated but also prevents me from being able to use the inserted data in formulas.

The workaround for this is undesirable when inserting large amounts of data: select cells that you expect to occupy, set to Plain Text, paste data, set to back to desired number format.

How do I disable the automatic interpretation by Google Spreadsheet of the commas in my pasted numeric values?


Solution

  • You can not paste it in any number format, because of the nature of numerical format types. It will parse it into an actual number and physically store it in this format. Using plaintext type, like you are, is the way to go for this.

    However, there are some options to perform these tasks in a slightly different way; - you might be able to use CSV-import functionality, which prevents having to change types for a sheet. - you can use int() function to parse the plaintext value into an int. (and combine this with lookup functions).