Obtaining an IP address from a web domain - google-sheets

I would like to retrieve an IP address for any given domain, e.g. google.com would return the IP address 172.217.18.174.
Using the following line on Google Sheets I always get the error
"Imported XML content can not be parsed."
=importxml("http://xml.utrace.de/?query=google.com","//ip")
And I also tried the following ones without luck:
=importxml("http://xml.utrace.de/?query=google.com","//results/result/ip")
=importxml("http://xml.utrace.de/?query=google.com","/*")
Any help is highly appreciated.

=REGEXREPLACE(QUERY(IMPORTDATA("http://xml.utrace.de/?query="&A20),
"where Col1 contains 'ip'"), "<ip>|</ip>", "")
=INDEX(IMPORTHTML("https://tools.keycdn.com/geo?host="&A20, "table", 1), 1, 2)

Related

How to get the YouTube channel name from the url

I want to use the importxml in the spreadsheet to get the YouTube channel name from the url, but I get the following error.
How can I solve this?
use:
=REGEXEXTRACT(QUERY(FLATTEN(IMPORTDATA(A4)),
"where Col1 contains '\x22channelName\x22:\x22'", 0), ":\\x22(.+)\\x22$")

Google Sheets QUERY IMPORTRANGE formula

enter link description hereI'm trying to get a return of all Active jobs but I keep getting the error message #value!; "Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: A". Here is the formula I used.
=QUERY({IMPORTRANGE("SheetKey","employeeName1!A18:V1000"); IMPORTRANGE("SheetKey","employeeName2!A19:V1000");IMPORTRANGE("SheetKey","employeeName3!A19:V1000");IMPORTRANGE("SheetKey","employeeName4!A19:V1000")},"SELECT A, B, C, D, E WHERE E = 'Active'")
I tried replicating your issue by making a copy of your provided sample sheet but apparently, the formula works after making a copy of the sheet. Please see attached screenshot.
I suggest trying to copy it first making a new sheet with the same content and see if it will also solve your problem.
use:
=QUERY({
IMPORTRANGE("SheetKey", "employeeName1!A18:V1000");
IMPORTRANGE("SheetKey", "employeeName2!A19:V1000");
IMPORTRANGE("SheetKey", "employeeName3!A19:V1000");
IMPORTRANGE("SheetKey", "employeeName4!A19:V1000")},
"select Col1,Col2,Col3,Col4,Col5
where Col5 = 'Active'")
I took out the IMPORTRANGE and just used a query formula for the other sheets and it worked perfect. Thanks for the input everybody.

How to sort email addresses from google forms to one unique email?

Today I created a google form that saves automatic results to google sheets.
The idea is that I send e-mail correspondence, but sometimes there are jokers who enter a different age, name, but the same e-mail. I would like to sort this from the results obtained into another sheet called "sort", people who are over 23 years of age.
I created the formula:
=UNIQUE(QUERY(ask!A:D;"Select * Where D>=23"))
And it working correct.
Now how to add options to the formula already created above, so that it shows only one email address so that they do not duplicate each other? (Regardless of the name or age column ...)
I would like it to look like this in its final form:
Please help :)
perhaps try:
=UNIQUE(Ask!B2:C)
or try:
=SORTN(Ask!A2:D, 9^9, 2, 2, 0)

Summarise pupil info together / present in a manageable meaning manner in Google Sheets

We use a school management system to track pupil attainment over a year. This comes out of the system in a raw format like this... https://docs.google.com/spreadsheets/d/1LyMgxUJZ_D9TfR-aHM5HdFjPCf9goqvfEYud0ywIp54/edit?usp=sharing
I am really struggling with the best way to present this information. I have been looking at Google Data Studio and Google Sheets trying to reduce the number of empty cells to make it useful. I am hopeful that someone with a bit more expertise can pull this info together into something simplified that I could use for Data Studio.
Just for context we track pupils twice a year and thats what the tracking periods are. At one point a WG (working grade) is entered and then later in the year another one is entered.
We need the pupil name, User ID, stage and reg class
We only need the Teacher, Tracking Period and WG fields (all the rest can be removed)
We also need the name of the subject so we know what subject the WG is for.
I'm really open to ideas on how to configure/query this into a different format so any help is very much appreciated.
hard to tell... add new sheet:
paste in A1:
=TRANSPOSE(QUERY(TRANSPOSE('School Tracker'!A1:GK),
"where Col2 matches
'User ID|Forename|Surname|Stage|Reg\. Class|Teacher|Tracking Period|WG'", 0))
or more compact:
=ARRAYFORMULA(QUERY(TRANSPOSE(QUERY(TRANSPOSE({TRIM(
QUERY(QUERY(TRANSPOSE(QUERY(TRANSPOSE('School Tracker'!A1:GK),
"where Col2 matches
'User ID|Forename|Surname|Stage|Reg\. Class|Teacher|Tracking Period|WG'", 0)),
"offset 2", 0),,999^99)); TRANSPOSE(QUERY(TRANSPOSE('School Tracker'!A1:GK),
"where Col2 matches
'User ID|Forename|Surname|Stage|Reg\. Class|Teacher|Tracking Period|WG'", 0))}),
"where Col1 is not null", 0)),
"offset 1", 0))

google_spreadsheet: query from another spreadsheet

I'm trying to run this command
=QUERY( ImportRange( "1GPxWbG1B8WWXWgam-qJXstDCZ_TB0btQwTxwt9iaa8A" ,
"C_Detailed" ) , "select B where A = '"&Sheet3!$A$2&"'")
But I get an Error:
Unable to parse query string for Function QUERY parameter 2:
NO_COLUMNB
I also tried to call it as the column title (date), but it has no effect.
I can't use vlookup because I have to check the equality between dates.
As for it- how do I check equality between dates of format dd/mm/yyyy?
I have been reading multiple websites, and I have discovered that if you are using the new Google Sheets, you must use the entire link when you are calling for the URL in the first part of your formula. Also, you may want to make your spreadsheet so that people trying to help you can view the document. You can do this by going into sharing settings > advanced > Click Change (where it says specific people can access) > change to people anywhere on the web can find and view.

Resources