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

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)

Related

Importhtml transpose formatting

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

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}

Missing some of the data when using ImportRange together with Query function [duplicate]

This question already has answers here:
Query is ignoring string (non numeric) value
(2 answers)
Closed 5 months ago.
The screenshot below is the data that I want to export to another google sheet:
The screenshot below is my destination google sheet with data imported from the google sheet above:
May I know why ALL is missing in Cell CD14 when I import the data using IMPORTRANGE & QUERY? How should I fix it so that everything will be imported? Thank you.
Query has issues with mixed data types. See also here
To work around that you can either format column CD as text (in the source table) or convert everything to text after it is imported.
=Arrayformula(iferror(query(importrange(...., ...)&"", "Where Col5 = 'Transmit'")))
You should be able to keep all original data types by using FILTER rather than QUERY, e.g.:
=IFERROR(FILTER(IMPORTRANGE(NameList!C3,"Sheet9!C14:J18"),IMPORTRANGE(NameList!C3,"Sheet9!G14:G18")="Transmit"))
I will add that, if you plan to be importing more than this one formula's worth of data using IMPORTRANGE, it will be more efficient to use IMPORTRANGE to import into its own sheet in your destination spreadsheet the entire range you'll ever want to reference from it, and then write your processing formulas referencing that new sheet rather than by making individual IMPORTRANGE calls (which will slow down your sheet). If you do use the one IMPORTRANGE call to get all the data you'll need into the destination sheet, you can just hide it and leave it in the background if you like.

I cant import data from another big sheet

Im having trouble importing data from my another sheet. Its quite big, has over 500 rows and to 100 columns. (I dont know if thats important but it has about 50 sheets, I want to import from first biggest one)
Importhtml and importdata take too long to load and then say that source is too big.
But what I want is importrange and that says internal error all the time.
Do you have any advice how can I import my data? Maybe even how to change source so it can be imported from?
Sheet I want import to
The function to use is IMPORTRANGE
=IMPORTRANGE("XXXXXXXXXX";"Prices!A1:AJ")
(where XXXXXXXXX is the sheet ID)
Pro tip
But what I want is importrange and that says internal error all the time.
A good practice is to first link the two sheets by using a very small range like:
=IMPORTRANGE("XXXXXXXXXX";"Prices!A1:A3")
and then change the range to meet your needs
=IMPORTRANGE("XXXXXXXXXX";"Prices!A1:AJ")
Try coupler.io.
It has a free plan and allows to COPY the data from one spreadsheet to another on a schedule. It means you can split your calculations, make heavy ones on one spreadsheet and then copy results to the one when you work with them.
It also allows to import from CRM, financial apps etc, but your case is covered with GSheet -> Gsheet import.

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