I'm trying to import some Spotify stats from a table on a site into Google Sheets. I was wondering if it's possible to insert a blank row before the total for each artist, and if it's possible to make it bold? I'm currently using basic queries like this:
=QUERY(IMPORTHTML("https://chartmasters.org/spotify-streaming-numbers-tool/?artist_name=&artist_id=25pbZ2yTnog5SBbk7WyfNn&displayView=Disco", "table", 1),"select Col2,Col1,Col3 offset 1",0)
Thank you for any help.
Related
I am tracking my stock purchases using Google sheets. I have separated the stocks that I have purchased into their own sheets and have an overview page
I want the data in the external sheets to automatically populate the overview list, where the overview stays up to date with the source sheets, and remain sorted by date.
This is the outcome I am looking for, though I made it manually:
Example sheet:
https://docs.google.com/spreadsheets/d/1okVUHw7DKDbzIwNHE1f38Ew81dEO_n27nrgyYV9zLzs/edit?usp=sharing
Try below query formula. See the sheet link harun24hr.
=QUERY({QUERY({VAP.ASX!A2:A,INDEX(SUBSTITUTE(VAP.ASX!G2:I2&SEQUENCE(ROWS(VAP.ASX!A2:A),1,1,0),"1","")),VAP.ASX!B2:E},"where Col1 is not null",0);
QUERY({UMAX.ASX!A2:A,INDEX(SUBSTITUTE(UMAX.ASX!G2:I2&SEQUENCE(ROWS(UMAX.ASX!A2:A),1,1,0),"1","")),UMAX.ASX!B2:E},"where Col1 is not null",0)},"order by Col1",0)
Google-sheet Link
URL1, URL2, URL3 all contain one table each.
I am currently importing each in different sheets.
Is there anyway to import them continuously in the same spreadsheet?
Update1: The number of rows in tables vary everyday, so I have to do it manually. I would like to know if there is a way to combine two importhtml functions with query or concat?
Something like =importhtml (url1, table,2) & importhtml (url2, table,2)
Update2: I have attached sample file link here
https://docs.google.com/spreadsheets/d/1VdFMzRTwcaFAglGNpqvzGytdz_mqohtxGgAywKlLi0U/edit?usp=sharing
In A1 there's one table and in I1 there is another.
This is stock market data so it changes everyday. I would like to know if there is a way to combine the formulas?
EDIT
(following OP's request)
This worked perfectly. Is there anyway to loose the header row of the second table...
Please inclose the IMPORTHTML functions in a QUERY
={QUERY(IMPORTHTML("xxx","table",1), "where Col1 is not null",1);
QUERY(IMPORTHTML("yyy","table",1), "where Col1 is not null offset 1",0)}
Please notice that in the second QUERY we use offset 1",0.
This will eliminate the headers of the second table.
PRO TIP
Since you now have everything in queries, you can also take advantage of all the many, so very flexible query properties/clauses like select, order by, group-by etc.
I am currently importing each in different sheets, is there anyway to import them continuously in the same spreadsheet?
Most likely yes. It highly depends on the formulas you use and the structure of the tables.
If they all have the same amount of columns you can probably create an array like
={IMPORTHTML("xxx","table",1);
IMPORTHTML("yyy","table",1)}
IMPORTHTML("zzzz","table",1)}
The above formula will stack the tables one on top of the other.
(hard to give a definite answer without further info and expected results)
Link to sample sheet - https://docs.google.com/spreadsheets/d/1nKQXHwVO8KjsOy5qvjzh-s-YYRUYlAoH-3aXYbwcKsA/edit?usp=sharing
I have a report that's downloaded from the google ads console which looks like this:
I get a report from the client which attributes leads to google ads campaigns like this:
I want to combine both these tables together to make them look like this:
If you look at the data in the first to tables, you'll see that the report the client shares with me has leads attributed to 24th March. This date is not present in the report that I got out of the google ads console. Using a sumifs formula will not capture all the leads that I get from the client's report.
Essentially, to get the data from both tables in the output table, I need to do a full outer join.
I'm not sure how to do that in google sheets. Any help you can give me would be greatly appreciated!
I made a new tab in your sample called MK.Help.
I then put this formula in cell L3:
=ARRAYFORMULA(QUERY({A3:G;{H4:I,IFERROR(ROW(H4:H)/{0,0,0,0}),J4:J}},"select Col1,Col2,SUM(Col3),SUM(Col4),SUM(Col5),SUM(Col6),SUM(Col7) where Col1 is not null group by Col1,Col2 label SUM(Col3)'Impressions',SUM(Col4)'Clicks',SUM(Col5)'Cost',SUM(Col6)'Leads',SUM(Col7)'Offline Leads'"))
That do what you're hoping?
I'm creating a google sheet where I want to display a Query on Sheet A, and have it look through data on Sheet B.
My sheets tabs names are the following:
Sheet A = List
Sheet B = Master Database
Currently, I'm using the following formula on Sheet A:
=SELECT(Sheet'Master Database'!A:K, WHERE 'Master Database'!C CONTAINS ‘”,'List'!B5,”‘”)
However, I'm getting Error, Formula parse error. Please help!
Thanks!
On Google Sheets, there isn't a built-in function called SELECT. To learn what are the available functions see Google Sheets Functions List. Maybe you are looking for QUERY function.
By the other hand the references and quotes are wrong. See Reference data from other sheets
I would like to use a formula in Google Sheets to lookup a key and populate a set of rows based on the key match. For example, I want to search Column A for the number 2 and get all the rows that have the number 2 and the corresponding column values. I want to do this in Google Sheets.
It sounds like FILTER or QUERY should work. See if these work as you want:
=FILTER(Sheet1!A:Z,Sheet1!A:A=2)
=QUERY(Sheet1!A:Z,"where A=2")