When I use the same formula =VALUE(SUBSTITUTE(INDEX(SPLIT(A2,"€"),1),",".")) and the same input text 17,70 € in different sheets within the same Google sheet, I get different results. Why?
and
It's difficult to know for sure without seeing the sheets, but it's probably down to one of the values being formatted as a number and the other as text.
Alternatively, it might be a difference in the 'locale' setting if you have two different sheets.
Related
How can complex numbers be formatted in Google sheets? If for instance I have the following complex number in a cell, with both real and imaginary part too long for my needs,
=COMPLEX(1.23456789, 0.987654321)
which would be displayed as
1.23456789+0.987654321i
where is the format accessible so that it is displayed as in the following?
1.23+0.99i
this maybe:
=COMPLEX(ROUND(1.23456789,2), ROUND(0.987654321,2))
I want to calculate averages in a column but only on selected rows, depending on specific values in another column. I see that I should probably use AVERAGEIF or AVERAGEIFS, but somehow it does not work, not even if I copy and paste the example from Google's help. I did experience the same in multiple browsers and with both versions of the function. What can be the problem?
Do you need to adjust the formula for your locale?
=AVERAGEIFS(A1:A10;B1:B10;">20")
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..")),"")
I made a spreadsheet in google sheets in my last company which highlighted all my rows based on my qualifying conditions. I can't remember what conditional formatting I used.
I have tried the =IFAND and =AND functions along with others.
This is what I am trying to do:
If column B says DTC, even if something else is also in cell, and the dates are between two ranges I want it highlighted. Then I will have multiple rules that vary in dates and words. I have attached a new demo sheet to help.
https://docs.google.com/spreadsheets/d/1yX_Ohfdz0uRKvOB8hvOpcO2sb5dSaAP6Zw-aR_HzK2E/edit?usp=sharing
The formula I have in there now is =AND($B2="DTC",E$2>=DATE(2017,10,1),E$2<=DATE(2018,10,1))
To find both DTC and DTC-DCL with a wildcard try using if with search like this:
=if(and(search("DTC*",$B2),$E2>=date(2017,10,1),$E2<=date(2018,10,1)),"true","false")
I have two sheets in my Google spreadsheet, "input" and "output".
On my "input" sheet I have multiple values,
which always have a certain letter in front of them.
On the other sheet "output" I want to add all values together for each letter
and then be able to multiply this result with another value.
The values sometimes are whole numbers, other times they hav decimal places.
I tried the following functions to extract only the number without the letter,
but then the extracted value was not a number that I could continue to use for other math functions such as multiplications.
=REGEXEXTRACT(XX;"[0-9]+")
=REGEXEXTRACT(XX;"[0-9]*\.[0-9]+")
=REGEXEXTRACT(XX; "\d+")
=SUM(SPLIT(XX;CONCATENATE(SPLIT(XX;".0123456789"))))^
If I tried to use "=VALUE(XX)" I got a weird number.
Also this formulars are only for one cell,
but I want the formula to work on the whole "input" sheet.
Therefor it must be used in combination with something like
=SUMIF('input'!A:Z; "XXXX"; 'input'!A:Z)
...at least this is my best guess.
I linked a sample sheet below, can you help me out guys?
Many thanks in advance!
Google Spreadsheet Test
For getting the sum of the cells which have letter "E" at the beginning, try the following formula:
=sum(arrayformula(iferror(regexextract(input!A1:H100,"E ([\d.+]*)")*1)))