Importhtml transpose formatting - google-sheets

I'm trying to import data with the importhtml function into a specific format within google sheets. Below I have an example of what the original import looks like and I am trying to format it to look like the 2nd example. Is that possible where each date has it's own column with the event to the right of it?
The tricky part is this list will auto update every week with new events so aggregating the correct dates/times into their own columns with the correct events... don't think it's possible with the widget I’m extracting from but if anyone has any ideas would greatly appreciate the suggestions.
If this works I’ll be using it to create a synced calendar with google/apple.
Here is the formula I am using: =importhtml("https://sslecal2.investing.com?columns=exc&importance=2,3&features=datepicker,timezone&countries=5&calType=week&timeZone=8&lang=1","table","1")
And here is the link to the spreadsheet if you need it
https://docs.google.com/spreadsheets/d/1IC_ZqKbLgMLksCXral5eXZcSf6CVDtTSsBxMNmbrhzo/edit?usp=sharing

You can hide the columns as a result of the import and in blank cells use
={TRANSPOSE(INDEX(IMPORTHTML(E1, "table", 1),,1)),TRANSPOSE(INDEX(IMPORTHTML(E1, "table", 1),,2))}
Share the link of the sheet so we can help you better

Related

How to import specific data from another spreadsheet in google sheet?

I'm trying to import specific data from another worksheet using the below formula. Reason being not to let other party to get hold of all the information, only the necessary data for them to work on.
Currently this formula not working. Any suggestions on how I can make it work?
=FILTER(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1h2Qbxs-SuFpcPZzB3-2-VzBh3FTA9dH5_oOmtgTpBSs/edit#gid=0","Sheet1!$A:$D"),IMPORTRANGE("https://docs.google.com/spreadsheets/d/1h2Qbxs-SuFpcPZzB3-2-VzBh3FTA9dH5_oOmtgTpBSs/edit#gid=0","Sheet1!$B:$B=Nepal!$B$2"))
Im trying to get data only related to Agent Ali.
Link to the test spreadsheet: https://docs.google.com/spreadsheets/d/1h2Qbxs-SuFpcPZzB3-2-VzBh3FTA9dH5_oOmtgTpBSs/edit?usp=sharing
You mention:
Im trying to get data only related to Agent Ali.
You can use this simple query formula:
=QUERY(IMPORTRANGE("______","Sheet1!A1:D"),"where Col2='Ali'",1)
(As always do modify ranges according to your needs)

Can I import a column from one Google Sheets sheet to another, but with distinct filter?

I've tried using the ARRAYFORMULA('NamedRange')
However, the items a duplicated on the other sheet and I only want to import one entry of each item (filtered as distinct).
I used UNIQUE('NamedRange') - seems like it's working.
If anyone has a different way of doing this, please comment.

Google Sheets - referencing data from another sheet "DataSheet!A1:A" want to be able to import a new sheet and update that reference... best way?

I'm not well-versed in Google Sheets or anything related to it really, but i'm doing basic google sheet formula stuff at the moment for my business, I am importing data from somewhere else and have copied over data from the import into my stats sheet using the basic copy formula
"DataSheet!A1:A"
later on, the Data Sheet will have to be updated with another imported sheet that will match in rows/columns but with new values...
... How do I reference/copy over columns from another sheet, while making it easy to update with a new import later on?
perhaps try:
={DataSheet!A1:A; DataSheet2!A1:A}

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), "♂")), "♀", ""))

How to get index value for a cell in order to reference a sheet

I am making a UI to easily access data from other sheets. The sheet names are the years from 2009-2019, and I have a drop down list in one of the cells that I want to use as a reference to the particular sheet I want to use.
I've seen people using the =indirect() function but I was not able to get it to work
What works:
=INDEX('2009'!C1:C100,C26)
What doesn't work:
=INDEX(indirect("C11")!C1:C100,C26)
where C11 is the value of the drop-down menu
Any help would be appreciated as I do not have very much experience with google sheets.
source sheet: here
it's because indirect("C11")!C1:C100 is not a valid range. try:
=INDEX(INDIRECT(C11&"!C1:C100"), C26)

Resources