how to extract number sets in parentheses from Google sheet - regex

How to extract and split this set of numbers (314.81+10.00)+0.00 to each column
expected result:

Try in W1
=ARRAYFORMULA(value(split(regexreplace(V1, "\(|\)",), "+")))
and see if that works?

like this:
=SPLIT(REGEXREPLACE(A1, "\(|\)", ), "+")
and ArrayFormula would be:
=ARRAYFORMULA(IFERROR(SPLIT(REGEXREPLACE(A1:A, "\(|\)", ), "+")))

Well, in for a penny, in for a pound.
=split(substitute(substitute(A2,"(",""),")",""),"+",1,1)
You need to format the fields as "0.00".

Related

Google Sheets ARRAYFORMULA to skip blank rows

How to make my ARRAYFORMULA(A1 + something else) to stop producing results after there are no more values in A1 column, eg. to skip blank values. By default it gives endlessly "something else".
Here is my demo sheet:
https://docs.google.com/spreadsheets/d/1AikL5xRMB94BKwG34Z_tEEiI07aUAmlbNzxGZF2VeYs/edit?usp=sharing
Actual data in column A1 is regularly changing, rows are being added.
I tried the others and they didn't work. This does though:
=ARRAYFORMULA(filter(A1:B;A1:A<>"";B1:B<>""))
use:
=ARRAYFORMULA(IF(A1:A="";;A1:A+1000))
You can try this formula =ARRAYFORMULA(IF(ISBLANK(A1:A),"",(A1:A + B1:B))) if this works out for you.
Reference:
https://support.google.com/docs/answer/3093290?hl=en

Importhtml Query Extract Between String

I'm trying to find a formula that fits two tables
=QUERY(IMPORTHTML(A1,"table", 16), "Select Col4")
output is
Page 1/10Page 2/10Page 3/10Page 4/10Page 5/10Page 6/10Page 7/10Page 8/10Page
9/10Page 10/10
Another:
=QUERY(IMPORTHTML(A2,"table", 16), "Select Col4")
output is
Page 1/3Page 2/3Page 3/3
I want to extract the digits between "space" and "/" Is there a way to do this in this formula itself?
I then tried this
=transpose(SPLIT(REGEXREPLACE(A2,"Page|/10","~"),"~",0,1))
This also doesn't work since I have to manually change /10 to /3 in the second formula
Is there any way to achieve this for both data?
The sheet is here
try:
=ARRAYFORMULA(IF(ROW(A1:B)<=(1*{
REGEXEXTRACT(IMPORTXML(A1, "//option[#value='21']"), "\d+$"),
REGEXEXTRACT(IMPORTXML(B1, "//option[#value='21']"), "\d+$")}),
ROW(A1:B), ))

Thickbock data validation in googlespreadsheet how to return multiple values

I created a googlespreadsheet here: https://docs.google.com/spreadsheets/d/1K5oc6-XcgMTUSCICr9GguxHWkrm1UuMhnzXu9Rn3ngY/edit?usp=sharing
I would like to return values from all the "checked" thickboxes in a single row like the image below.
Can I do this using a formula?
use:
=ARRAYFORMULA(REGEXREPLACE(""&TRIM(TRANSPOSE(QUERY(TRANSPOSE(IF(A2:C=TRUE,
{A1&",", B1&",", C1}, )),,9^9))), ",$", ))
While it can be done in an arrayformula for the whole column, you might try this simple JOIN() formula, dragged down the column. Starting in D2:
=IFERROR(JOIN(", ",FILTER(A$1:C$1,A2:C2)))

Apply formula for rows with first occurence of text

I want to achieve something like the image below:
How can I do it?
use this formula:
=ARRAYFORMULA(IF(COUNTIFS(A:A, A:A, ROW(A:A), "<="&ROW(A:A))=1,
"first occurance", ))
Looks like this normal Excel formula works just fine.
Assuming your data starts from cell A1, insert following formula
=IF(COUNTIF($A$1:A1,A1)=1,"First Occurrence","")
Then copy down as much as you need.

How to convert dots to commas decimal notations using excel formula

Let's say the user enters 1.234.567,89 or 1,234,567.89 or 1 234 567,89 in any excel cell one by one and in all the above cases the user should get 1234567,89 in the output cell.
Excel
Try TEXT() with a custom format:
=TEXT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,",",""),".","")," ",""),"[>=100]#\,#0;#")
Google Spreadsheets
Try using REGEXREPLACE():
=TEXT(REGEXREPLACE(TEXT(A1,"#"),"[ ,.]",""),"[>=100]#\,#0;#")
=ARRAYFORMULA(IF(LEN(A1:A),
IFERROR(REGEXREPLACE(A1:A, "\s|\.", ),
REGEXREPLACE(""&A1:A, "\s|\.", ",")), ))