QUERY multiple ranges in Google Sheets

user172131

New Member
Joined
Dec 10, 2019
Messages
18
Office Version
365, 2019, 2016, 2013, 2011, 2010, 2007
Platform
Windows, MacOS, Mobile, Web
this won't work can you help?

=QUERY('Unsorted RdsdsRdds'!A2:J & 'Unsorted 2sa32'!A2:F"select * )
 

6StringJazzer

Active Member
Joined
Jan 27, 2010
Messages
372
There is no built-in function called QUERY. Tell us more about what you are doing.

Explain what "won't work" means. What result are you expecting and what result are you getting instead?

The syntax is invalid. You have an unmatched " and may be missing a & symbol as well. What is supposed to be the result of the expression inside the parentheses?

And please give at least a little thought to your title.
 

MARK858

MrExcel MVP
Joined
Nov 12, 2010
Messages
11,477
Office Version
365, 2010
Platform
Windows, Mobile
There is no built-in function called QUERY
Hi @6StringJazzer, the QUERY function that the OP is referring to is a Google sheets function and not an Excel function (the OP started a duplicate thread where I asked them if it was a Google sheets function they were trying to get an answer for).
I hope this clarifies the question a bit.
 

MARK858

MrExcel MVP
Joined
Nov 12, 2010
Messages
11,477
Office Version
365, 2010
Platform
Windows, Mobile
Also a good title would help
Anything mentioning Google sheets would have been a help in this case ;) luckily I knew that Google sheets had a QUERY function and I hadn't long glanced at this thread when the OP posted the duplicate (now locked by a Moderator) thread.
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
34,323
Office Version
365, 2019, 2016, 2010
Platform
Windows, MacOS
You can do something like this:

=QUERY({'Unsorted RdsdsRdds'!A2:J;'Unsorted 2sa32'!A2:F},"WHERE Col1 <>''")

the WHERE clause is to avoid returning all the blank rows specified in your ranges.
 

Forum statistics

Threads
1,081,716
Messages
5,360,819
Members
400,600
Latest member
Stuckagainandagain

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top