I want to extract the sale info from this link with importxml
link
My formula:
substitute(substitute(to_text(index(IMPORTXML(strong textLINK;"//div['before-sticky-nav']//div['trust-signals col-group content no-banner']//div['show-lg show-xl show-tv shop-info col-lg-7 pl-lg-3']//p['trust-signal-row text-gray-lighter']/span[3]");1));" Sales";"");" Sale";"")
The formula has been working for 1 month, yesterday it didn't work. I've tried many variations of the xpath still no luck.
Any ideas?
=VALUE(REGEXREPLACE(REGEXEXTRACT(QUERY({ARRAY_CONSTRAIN(IMPORTDATA(
"https://www.etsy.com/shop/1000Lightyear"), 4000, 1)},
"WHERE Col1 CONTAINS 'mr-xs-2 pr-xs-2 br-xs-1"">'"),
"\>([0-9 A-Za-z]+)\<"),
" Sales| Sale", ""))
Related
I wanted to query data from multiple sheets but couldn't find the correct formula. I used the below formula and it worked fine with querying from one sheet.
=QUERY('2022'!A1:S38, "Select B,H where R='N' and S=TRUE order by H")
Then I used the below formula hoping that I could derive the information from 2 sheets but it didn't work. Appreciate if someone could help me on this
=QUERY({'2022'!A1:S38;'2023'!A1:S38}, "Select B,H where R='N' and S=TRUE order by H")
use Col references:
=QUERY({'2022'!A1:S38; '2023'!A1:S38},
"select Col2,Col8
where Col18='N'
and Col19=TRUE
order by Col8")
Asked this same question before and got the answer and it works fine too. This is how I want the answer in the formula I give.
Please read : Match lookup value with importHTML and combine tables in Soogle Sheet
#rockinfreakshow Thank You so much for this answer. Sir please answer me according to my formula.
---------------------------------------------------------------------------------------------------------------------------------
I want the answer in the same way, but I match the lookup value from another url link with them in the same way as the answer comes from the formula I show and I want the answer.
I have this formula. And I get the answer well. Which you will get with the result in the link of google sheet below.
1st URL : https://www.screener.in/screens/881782/rk-all-stocks/?limit=25&page=1
=arrayformula(
lambda(
baseUrl, pageStart, pageEnd,
query(
reduce(
importhtml(baseUrl & pageStart, "table"),
sequence(pageEnd - pageStart, 1, pageStart + 1),
lambda(
result, pageNumber,
{
result;
iferror(
importhtml(baseUrl & pageNumber, "table"),
iferror(sequence(1, 11) / 0)
)
}
)
),
"where Col1 is not null", 1
)
)(
"https://www.screener.in/screens/881782/rk-all-stocks/?limit=25&page=", 1, 57
)
)
Result Screenshot
2. And there is another table in which I want to match the lookup value of the first table and all the values of that table. Which I have tried. Within this google sheet and you can also try this google sheet.
2nd URL with match 1st URL Record : https://www.screener.in/screens/881791/rk-holding/?page=1
=BYROW(B2:B,LAMBDA(bx,IF(bx="",,IFNA(QUERY(IMPORTHTML("https://www.screener.in/screens/881791/rk-holding/?page=1", "table",1),"Select Col12, Col13 Where Col2='"&bx&"'",0)))))
If I use this formula I get only 25 data.
Result Screenshot
If I use this formula I get only 1 page of data. As this url link has more than 165 pages.
i expected result
I only get as much data as in the first formula. Next to them i.e next to ROCE you need column number 12 and 13 from another URL link. Lookup values match and look for the data next to them. Lookup value column number will be 2. Which I have tried in this google sheet and you can also try.
try this in google sheet : OPEN GOOGLE SHEET
Thanks
Updated the solution in your sheet here
I have a Google Forms where I'm capturing data in the following format.
Name:Karslten [0023]
Level:1
You managed to complete:
Burpies:30
Squats:45
Bench:29
Crunch:43
TotalLoss: 981
Name:Jaeger [0119]
Level:3
You managed to complete:
Burpies:40
Squats:53
Bench:45
Crunch:53
TotalLoss: 1253
Name:Fostyne [0003]
Level:1
You managed to complete:
Burpies:24
Squats:38
Bench:25
Crunch:32
TotalLoss: 758
I would like to know if it will be possible to use Google Sheets formula to use the data and format it into rows and columns in a specific way. One form entry can contain data for multiple persons.
The format I want to achieve should look like this and all new entries must be appended to the new result sheet.
Screenshot for the format I want from Google Sheets
Here is a link to a dummy editable Google Sheets with the same data. I hope some knowledgeable people can help me achieve this. Thanking you in advance.
try:
=ARRAYFORMULA(QUERY(IFERROR(SPLIT(FLATTEN(TRIM(REGEXREPLACE(
'Form Responses 1'!B2:B&CHAR(10)&SPLIT(SUBSTITUTE('Form Responses 1'!C2:C,
"Name:", "×Name:"), "×"), "(.+:)", ))), CHAR(10))), "where Col2 is not null", ))
I am looking to build a phrase counter using importxml on google sheets. I have the initial formula complete and functioning most of the time, but there are a few issues.
Here is the formula:
=COUNTIF(SPLIT(REGEXREPLACE(lower(concatenate(IMPORTXML("https://www.hawkinsfamilylaw.co.uk/", "/html/body", "en_US"))), A39, SUBSTITUTE(A39, " ", "")), " "), SUBSTITUTE(A39, " ", ""))
With A39 being the phrase "divorce services".
As you can see from this page (https://hawkinsfamilylaw.co.uk/), 'divorce services' is mentioned once, but the formula is not registering this phrase.
Other phrases work, but for some reason the formula isn't finding this phrase.
Is this an issue with the importxml function, or is there a reason that this particular phrase isn't being found which is related to the structure of the formula?
Many thanks,
Sean
I am trying to extract a couple of elements using the =importXML function in Google sheets from this source: https://www.ibm.com/homepage_sitemap.xml
=IMPORTXML("https://www.ibm.com/homepage_sitemap.xml","//url[*]/loc")
It is throwing me a N/A error. Below picture is what I would like to extract. Also, href= against each hreflang value but I am stuck at the first extraction.
You can try using this formula:
=IMPORTXML("https://www.ibm.com/homepage_sitemap.xml","//*[local-name() ='url']/*[local-name() ='loc']")
try:
=IMPORTDATA("https://www.ibm.com/homepage_sitemap.xml")
and to get url:
=ARRAYFORMULA(QUERY(REGEXEXTRACT(
IMPORTDATA("https://www.ibm.com/homepage_sitemap.xml"),
"(http.+/)"""), "where Col1 <> '#N/A'"))