Google Sheet Query Formula - arrays

Is there any way that without importing the data in helping sheet we can use vlookup as I have created in Sheet1 to lookup the values from other sheet “Directly” by using IMPORITNG (Query formula?
Here is current formula.
=ArrayFormula({"Comments";IF(A2:A="","",IFERROR(VLOOKUP(TRIM(A2:A)&B2:B&"|"&C2:C&D2:D,{TRIM('Sheet1 Import'!A2:A)&'Sheet1 Import'!B2:B&"|"&'Sheet1 Import'!C2:C&'Sheet1 Import'!D2:D,'Sheet1 Import'!E2:E},2,FALSE),"*** NOT FOUND ***"))})
But above formula is taking the data from helping sheet I am trying to create a formula that directly match the result and take relevant data from another sheet.
I have created this formula but its not working ?
=INDEX(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1x7ofB9Rt-y5_DlaxQVIZK_ZKR8sqBHVxAu3ZZlU13YA/edit#gid=0", "Sheet1!E:E"),MATCH(1,(A2,IMPORTRANGE("https://docs.google.com/spreadsheets/d/1x7ofB9Rt-y5_DlaxQVIZK_ZKR8sqBHVxAu3ZZlU13YA/edit#gid=0", "Sheet1!A2:A")(B2,IMPORTRANGE("https://docs.google.com/spreadsheets/d/1x7ofB9Rt-y5_DlaxQVIZK_ZKR8sqBHVxAu3ZZlU13YA/edit#gid=0", "Sheet1!B2:B")(C2,IMPORTRANGE("https://docs.google.com/spreadsheets/d/1x7ofB9Rt-y5_DlaxQVIZK_ZKR8sqBHVxAu3ZZlU13YA/edit#gid=0", "Sheet1!C2:C"),0)))))
Sheet links
https://docs.google.com/spreadsheets/d/1x7ofB9Rt-y5_DlaxQVIZK_ZKR8sqBHVxAu3ZZlU13YA/edit#gid=0
https://docs.google.com/spreadsheets/d/1_9Vumt1a-1WnrXAHOpJd1GUTQ3jLjPifwGyKlDDRyi0/edit?usp=sharing

From the question
Is there any way that without importing the data in helping sheet we can use vlookup as I have created in Sheet1 to lookup the values from other sheet “Directly” by using IMPORITNG (Query formula?
One way is to add the VLOOKUP formula on the source spreadsheet then import the result. Another way is to use Google Apps Script.

Related

Google Sheets: Using Transpose on an array in other tabs & identifying the tab by

I would appreciate some help, please.
I have a google sheet with many tabs with data going horizontally.
I would like to create a formula that imports and transposes the data into a vertical list.
However, I want to be able to type in (or drop-down list) to select the tab which the transpose formula to look at. I cannot get anything to work. I have tried this
=TRANSPOSE(A1&!B2:J2)
To add to that if it could use a lookup (vlookup or hlookup) to find the correct row to transpose then that would be great also.
I have set up a test sheet below. Please help. Many Thanks Tim https://docs.google.com/spreadsheets/d/1Menn6Z1mLl8wYOrcdQFnfs7Lp0dbC9UJe1S3AQRcOS0/edit#gid=0
You should not use IMPORTRANGE to work with data that exists anywhere in the same spreadsheet. IMPORTRANGE is for use retrieving data from a separate spreadsheet.
Instead, delete your current Sheet1!A2 formula and replace it with this:
=ArrayFormula(TRANSPOSE(INDIRECT(A1&"!B16:J16")))
I also added a new sheet ("Erik Help") with an advanced formula that accomplishes your lookup using whatever is types in B1. If whatever is typed in B1 exists in Column A of the selected sheet, the results of that row will be retrieved. If no match is found, IFERROR will return "No Match Found."
That formula, in 'Erik Help'!A2:
=ArrayFormula(IFERROR(QUERY(TRANSPOSE(INDIRECT(A1&"!B"&VLOOKUP("*"&B1&"*",{INDIRECT(A1&"!A:A"),ROW(INDIRECT(A1&"!A:A"))},2,FALSE)&":"&VLOOKUP("*"&B1&"*",{INDIRECT(A1&"!A:A"),ROW(INDIRECT(A1&"!A:A"))},2,FALSE))),"Select * WHERE Col1 Is Not Null"),"No Match Found"))

Google Spreadsheet, how to grab row from other sheet using vlookup?

I got two sheets in my google spreadsheet:
MC
Items (rather big)
In "MC i got a column with different Item Names.
I need to find the matching ID from sheet "Items".
Created a vlookup for it, but cant get it to work - everything looks okay to me.
Link to sheet:
https://docs.google.com/spreadsheets/d/1Yif8Cf1g1pPI38YFCffDKQ1tE-08SWPSfRAv-TdWXTw/edit?usp=sharing
=VLOOKUP(B2,Items!$A$2:B,2,false)
What am I doing wrong here?
try:
={"id"; ARRAYFORMULA(IFNA(VLOOKUP(B2:B, {Items!B:B, Items!A:A}, 2, 0)))}

Import data from another sheet using ID but only some columns

I have a google sheet like this :
And another one like this :
I want in the second google sheet to pull data from the first sheet that matches those IDs
I have tried index & match, vlookup, lookup but none of them got me to my point especially with using importrange to pull data from the second file I couldn't solve my
Thanks in advance for your help
This is where I am trying to make the magic happen if you are wondering :
https://docs.google.com/spreadsheets/d/1TZYo641Av4SHaHLjSPuAZv3DSnVw0pqSubbtsiYw8Uk/
use:
=ARRAYFORMULA(IFNA(VLOOKUP(A2:A, {Mother!B:B, Mother!A:A, Mother!C:D}, {2,3,4}, 0)))

Google Sheet Query referencing cell data as part of Sheet Name Source

I have been working on querying multiple sheets of data and would like the text string from one of the cells to determine which sheet that row is querying but can not figure out how to do it. This is the most recent formula I have tried:
=QUERY(INDIRECT("B"&"2")&"!"&$2:$1000)
Cell B2 contains the name of the other sheet I am trying to query.
try:
=QUERY(INDIRECT(B2&"!2:1000"))
or:
=QUERY(INDIRECT(B2&"!B2:B1000"))

Array Formula from Google Sheets to Excel INDEX MATCH MATCH

this topic has been discussed in some formats, but not specifically this one. I have used an array formula in Google Sheets that works, but does not work when exported to Excel. Can you help me modify the formula so that it works in Excel?
=ArrayFormula(index('Technical Lookup Tables'!J14:L17, MATCH(C39&C40,'Technical Lookup Tables'!H14:H17&'Technical Lookup Tables'!I14:I17,0)))
This is what the reference table looks like:
And this is the output:
This formula can be written in Excel as a non-array formula:
=index('Technical Lookup Tables'!J14:L17, MATCH(C39&C40,index('Technical Lookup Tables'!H14:H17&'Technical Lookup Tables'!I14:I17,0),0))

Resources