How to count numbers in text format in a google sheets - google-sheets

I am importing a excel data to google sheets. Upon importing the numbers in excel sheet changes its format to text.
now the functions like countif() and sumif() doesnt work when the numbers are in text format?
Please suggest any work around for this ?
Thanks in advance
Preeths

Select all the cells which are numbers and change the format to numbers (Use the format menu to format as Number). Keep in mind the Spreadsheet settings and locale for the setting of decimal separator (comma or point).

Related

How to i change the date time format on Google Sheets?

I am working on a datasheet on Google sheets and I am trying to change values in column (D) to date time format, so I went to Format<number<date time. But only a few values are getting converted and the rest remain the same. Please see below-
Screenshot of column D
The values aligned on right are converted and the left ones aren't. I even tried paint format, trim white spaces but it didnt work. Please suggest a way on how to resolve this error. Also, there are 49623 values in column D.
thank you
Your spreadsheet is set to a locale that uses the mm/dd/yyyy date format, while your data is using the dd/mm/yyyy date format. That means that the dates where the day of the month is less than or equal to 12 will get converted to dates incorrectly, and the rest of the data will remain as text strings.
To make it work, choose File > Settings > Locale and choose a locale that matches your data, then repaste the data to convert it correctly.
The "49623 values" are dateserials that can be converted to dates by formatting them in a date format. See this answer for an explanation of how date and time values work in spreadsheets.

Is there a way to hide decimals after a certain value in Google Sheets?

In a Google Spreadsheet, I have a price for stocks displaying. I would like to remove the decimals if the price is over $1,000. I am half way there using MROUND function and TEXT function:
=iferror(TEXT(IF(googlefinance(B2,"price")<1000,googlefinance(B2,"price"),MROUND(googlefinance(B2,"price"),1)),"$###,###.##"))
I still get the .00 at the end, or just a . for companies over $1,000. Any way anyone knows to remove this?
Instead of using the TEXT function, how’s applying this custom number format?
[>1000]$#;[<=1000]$###,###.00
To apply a custom number format:
Select the cells you want to apply it to.
Format > Number > Custom number format
Enter the format in the input field and click Apply.
More on the custom number format:
A Complete Guide To The Google Sheets Custom Number Format

How to Regexextract whole words that contain a mixture of text and numbers in Google Sheets

I am trying to make this formula work for a mixture of text and numbers. It works for text that contain 4 numbers only. How can I manipule this to match specific words e.g Text Text 50 or even random 2020 text.
I need to hardcode the words into the formula or using INDIRECT cell reference.
The formula I got.
=ArrayFormula(IF(A:A="",,TRIM(IFERROR(REGEXEXTRACT(A:A,"^([øa-zA-Z-\/ ]+)"))&IFERROR(REGEXEXTRACT(A:A," [0-9]{4}")))))
I simpler terms I want the formula to extract these specific words as they are without trimming them. This formula works for other strings except ones that are a mixture of numbers and text.
I tried to edit my formula like this but I wasn't successful.
=ArrayFormula(IF(A:A="",,TRIM(IFERROR(REGEXEXTRACT(A:A,"^([[:Text Text 50:]][[:random 2020 text:]][øa-zA-Z-\/ ]+)"))&IFERROR(REGEXEXTRACT(A:A," [0-9]{4}")))))
The link to my spreadsheet - https://docs.google.com/spreadsheets/d/1BYW-QzqRA8vIBWazDSZhbUZ_TCbVAPYSI-1hFthfrew/edit?usp=sharing
If you enter the texts you are looking for in a separate column (say into E1:E3), you can use this formula:
=IFERROR(ArrayFormula(REGEXEXTRACT(A:A,JOIN("|",E1:E3))),"")
If you want hardcode, just use:
=IFERROR(ArrayFormula(REGEXEXTRACT(A:A,"AC Reggiana 1919|B93 Copenhagen|Etar 1924 Veliko T..")),"")

Hide row numbers and column letters in Google Spreadsheets

Simple one I know, but I can't seem to find a way to hide the row numbers and column letters on a Google Sheet.
I know that you can do it on MS Excel but is it possible to do it on Sheets?
This is not possible
You may want to take a look at File > Publish to the web. Spreadsheets published this way are read-only and do not show row numbers or column labels.
See https://support.google.com/drive/answer/37579 and https://support.google.com/drive/answer/55244 for more info.

Dollar symbol not getting summed in Google spreadsheet

I want to manage my expenses using a google spreadsheet. The problem is that I use dollars and euros. I write the numbers like $23 and €25. The sum function works properly for the euro symbol, but it returns zero for the $ sign.
I set up a small example here:
https://docs.google.com/spreadsheets/d/1_mg6xxsae2ybDHXQAqGLddXmJMDsYaaGkkhRY2YIIQc/edit#gid=0
Both columns has the same sum function, but only one works. Why?
Thanks in advance.
---EDIT:
I updated the example with some data of the real world. And I changed the timezone of the spreadsheet to the one that corresponds to me (spain). I highlighted two examples in the sheet2. As you can see, the examples are using the correct currency format, but the sum stills zero. The same configuration in the sheet1 works nicely.
I'm starting to think the problem is the timezone of the spreadsheet.
https://docs.google.com/spreadsheets/d/1Hi8DDafrej7544mVEj1e4iEI-j6n6Vu2LttYaDYurOg/edit?usp=sharing
The same addition works for the sheet above.
I formatted column A it as Currency $ and Column C as Currency British Pound (There is an option when you click at Format to add more currency and there you can pick Pounds). Looks like the addition works in this case.
$ is a character used in formulas to anchor row or column references. Try writing the number without symbols at all, and instead set the format accordingly instead.
http://www.gcflearnfree.org/googlespreadsheets/14.3

Resources