Google sheet - simple importxml formula does not work - google-sheets

I have tried the below simple importxml formula in a cell
=importxml("https://en.wikipedia.org/wiki/List_of_T_postal_codes_of_Canada", "//td")
But this always returns a "formula parse error" message.
I don't get it, this example is soo simple. It should work fine.

I would make the assumption that you are from Canada. Canada (French) locale uses ; instead of , so most likely it has to do with the spreadsheet locale.
Replace , with ;:
=importxml("https://en.wikipedia.org/wiki/List_of_T_postal_codes_of_Canada"; "//td")
Another solution would be to change the locale settings, please read more here on how to do that.

Related

Google Sheet SUMIF returning an error! statement

pretty new to google sheets, my question could seems awkward but i'm struggling with a sumif in google sheets.
I'm using a sumif to sum up some values with a simple condition and i struggle to find the right way to do it. Assuming the documentation i do it well but i must be missing something because the result is always : ERROR!
See the example below
The example is simple, applying exactly what the documentation says but still not working.
I tried to make the cell format number for the condition, still not working.
I tried to make the condition a string by typing "=1", still not work. I tried to use a cell value in the condition B5 for example, still not working.. I'm desperate, i don't understand why this simple example is still not working.
If someone could help it will save my time.
Chances are that your spreadsheet is using a locale that expects formula arguments to be separated with semicolons instead of commas, like this:
=sumif(B5:B10; 1; C5:C10)
You can set the locale in File > Settings > Locale.

Conditional formatting that used to work in Google Sheets, not anymore

A few months back I used to use a conditional formatting to highlight duplicates in a column. The formula I used is: =COUNTIF(A:A, A1)>1.
It doesn't seem to be working anymore. When I try to add this as the custom formula, I get an error message: Invalid formula. I even opened a few older sheets to check, it still works on them. Any tips?
General Grievance's comment:
Change the , to a ;. I think your sheet might be in a different locale.

Google sheets Import Range

I don't think that importrange is a real formula I have spent hours on this and it doesn't work full stop.
The sheet name of the data I wish to import is Fire Safety Audit but it was originally sheet 1
=importrange(https://docs.google.com/spreadsheets/d/18B8KclREhEvOm9ZeOEEfpFSkTol1uxwlCt8kVfptO6I/edit#gid=2093530965";"fire safety audit"!A1:w1000")
=importrange(https://docs.google.com/spreadsheets/d/18B8KclREhEvOm9ZeOEEfpFSkTol1uxwlCt8kVfptO6I/edit#gid=2093530965";"sheet1"!A1:w1000")
I have tried so many different types of formulas with colons, commas and semi colons.
Every time no matter what I try the number 2093530965 remains in blue font and it says I have parse error. Not quite sure why Google make this so complicated and do not have any help for it whatsoever. In summary its crap.
I use importrange literally everyday for work, it definitely is a real formula ;) that said your main issue from those examples is that you are missing a " infront of your url, google sheets formulas are also command delimited not semi colon as in open office. Finally, you're entire sheet and cell reference needs to be in 1 set of quotes.
Example -
=importrange("https://docs.google.com/spreadsheets/d/SOMEID","SheetName!A:Z")
Once you have done that you are going to get a permissions error because you need permission to import data (even if you own both sheets). To fix this, hover over the cell with the error and click "Grant Access".
Try using the formula with the syntax in the documentation:
Syntax
IMPORTRANGE(spreadsheet_url, range_string)
So, if your Sheet is named Sheet1 change from this:
=importrange(https://docs.google.com/spreadsheets/d/18B8KclREhEvOm9ZeOEEfpFSkTol1uxwlCt8kVfptO6I/edit#gid=2093530965";"sheet1"!A1:w1000")
To this:
=importrange("https://docs.google.com/spreadsheets/d/18B8KclREhEvOm9ZeOEEfpFSkTol1uxwlCt8kVfptO6I/edit#gid=2093530965";"sheet1!A1:w1000")

Google Sheets - Parse Number / Currency

I have a spreadsheet in Google Sheets. I have a column with a set of strings e.g. '£3.36'. Now I wish for these to be treated as a number/currency and not as a string, as I am unable to mathematically manipulate them otherwise.
I have tried removing the £ by using =Right() and =LEN(), but unfortunately, sheets still considers them to be a string.
I have tried changing the format of the cell and selecting currency, but this does not work either.
I have also tried =TO_PURE_NUMBER(), but this didn't work for me either.
Has anybody got any suggestions?
All help is appreciated.
Scratch that. =right(x,len(x)-1) does actually work!

Cell/column/row divider between formula/import result

This is a Google Sheets case, but if you good enough with MS Excel and
know the solution, don't be shy and share it with the community. Your
experience could be relevant to all of us.
Hello over there! I still didn't find any relevant solution in google, so I post my problem here.
I have a sample sheet and I import data via formula to cell via:
=UNIQUE(INDIRECT(C$2&"!"&$O3)
which means import all unique values via formula from Sheet!Range:range
It works fine, and I receive necessary data like:
But I want to see it like this:
with X (1,2,3,etc) row/cell/column spaces between them. I guess that =SPLIT formula should help me with that, but when I use , as a separator, I receive only first value, not the whole array of results that I needed it to.
So is there any way to achieve the result that I show at the picture above via formula or Google Script?
SAMPLE TEST SHEET with EDIT permission here:
https://docs.google.com/spreadsheets/d/1eYeFI8nL39kLNDkcyyjeqV8tc9LwG7P7cn2NzUIB7Wo
=ARRAYFORMULA(SUBSTITUTE(TRANSPOSE(SPLIT(QUERY(
"♂"&UNIQUE(INDIRECT(F$2&"!"&$G2))&"♂♀",,999^99), "♂")), "♀", ""))

Resources