+ Reply to Thread
Results 1 to 19 of 19

Error - The Query Returned More Data Than Will Fit On A Worksheet

  1. #1
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Error - The Query Returned More Data Than Will Fit On A Worksheet

    I'm trying to calculate possibilities of some cases with power query and power query gives this error.

    How to fix this?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    Don't try to process so many rows of data. If the resulting query exceeds the maximum rows in Excel, you will be stopped in this way.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    I am not using PQ, so this may not help you but; check the "External Data Properties" and try the settings (related with inserting rows) in the attached picture.

    Attachment 686305

  4. #4
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    When I click your link It says Invalid Attachment specified...

    ??

  5. #5
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    Can I split the data which Power Query create and import in this way?

  6. #6
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    Don't know why it is so .....

    I tried to attach the file again ...
    Attached Images Attached Images

  7. #7
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    I could not find that menu. Where is it?

  8. #8
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    You can activate the menu by right clicking in the table and select "Properties" in "Table Tools>Design" tab.
    Attached Images Attached Images

  9. #9
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    I'll create data from this range with power query. However I can't take data onto Excel because of this error.

    So I don't have any table yet.



    I don't understand where I right click.

    I randomly created an empty table and right click it but there is no properties option. ??
    Attached Files Attached Files
    Last edited by zanshin777; 07-11-2020 at 04:17 PM.

  10. #10
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    Click any cell in the table range and then, click "Properties" that you see in the "Data" tab.

  11. #11
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    There is no properties in the data tab.

    Check it out.
    Attached Images Attached Images

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    No - not a new table. Click anywhere in one of the tables created by your queries (connections) and the properties option becomes available.
    Attached Images Attached Images

  13. #13
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    @zanshin777;

    See the picture below....

    As you see, cell C6 is selected in the table range and the red arrow shows the "Properties" menu button.

    Change the options related with inserting rows of data and see the effects, if it helps...
    Attached Images Attached Images
    Last edited by Haluk; 07-12-2020 at 09:29 AM.

  14. #14
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    I tried what you suggested. I get the same error.

    On the pop-up menu It says;


    "To continue and display as much of the data as will fit, click OK"


    1) I clicked OK but I guess this time returned data does NOT include all of the data. Right?

    2) If so, Is there a way to split and transfer the output data to different workbooks?

    3) Is there any other advanced software which I can manage this whole process?

    4) There is also a thread here;

    https://www.excelforum.com/excel-gen...readsheet.html

    Does it work?

    I can't open the link. It says "Your request has been blocked. "

    How can I increase the capacity of Excel Workbook?
    Last edited by zanshin777; 07-12-2020 at 12:49 PM.

  15. #15
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    I'm trying to calculate possibilities of some cases with power query and power query gives this error.
    If the calculations can be done in a pivot table, possibly using DAX formulas in power query, then you might consider loading the query into a data model.
    The video linked below may be of some help also.
    https://www.youtube.com/watch?v=Nmn6qUJvWWY
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  16. #16
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    Quote Originally Posted by JeteMc View Post
    If the calculations can be done in a pivot table, possibly using DAX formulas in power query, then you might consider loading the query into a data model.
    The video linked below may be of some help also.
    https://www.youtube.com/watch?v=Nmn6qUJvWWY
    I watched the video.

    I don't understand how can I use Power Pivot in my case.

    He imports the data with Power Pivot method from a folder including a couple of files.

    However I do not have a file to import.

    I made Power Query calculated the permutations. Now how to import this with Power Pivot method?

    ??

  17. #17
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    I am not sure that I understand what you are attempting to accomplish.
    It appears that each column is a table (R1...R7) and if the table is too large to fit on a worksheet I assume that means that it has more than 1048576 rows.
    When work on the table is completed in power query, instead of choosing "Close and Load" choose "Close and Load to..." then choose both connection only and add to data model.
    If the above suggestion isn't helpful then perhaps uploading a file that includes an example of what has been done in power query will help someone to understand.
    Let us know if you have any questions.

  18. #18
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    I'm trying to calculate all the possiblities with power query;

    A1-B1-C1-D1-E1-F1-G1
    A2-B1-C1-D1-E1-F1-G1
    A3-B1-C1-D1-E1-F1-G1
    A1-B2-C1-D1-E1-F1-G1
    A1-B3-C1-D1-E1-F1-G1
    ...

    1) I create named ranges along the columns R1-R7

    2) Go to "Data - Get External Data - From Other Sources - From Microsoft Query - New Data Source - OK"

    3) Move the columns R1-R7 to the right side.

    4) Go to "File - Return Data to Microsoft Excel"

    However I can not import that data calculated with power query because data is so big.

    So how can I do that?
    Last edited by AliGW; 07-17-2020 at 08:20 AM. Reason: Please don't quote unnecessarily!

  19. #19
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    Re: Error - The Query Returned More Data Than Will Fit On A Worksheet

    If Excel can not do this can I import Power Query to mySQL then split the data there?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Web query returned no data into Excel
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-31-2014, 02:06 PM
  2. Formulas in adjacent columns of returned data from MS Query
    By tram303 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-29-2014, 11:57 AM
  3. Replies: 0
    Last Post: 05-14-2013, 04:39 PM
  4. Error: This Web query returned no data
    By Mike Chamberlain in forum Excel General
    Replies: 1
    Last Post: 02-23-2006, 09:25 PM
  5. This query returned no data
    By Tjeerd in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-22-2005, 05:05 PM
  6. Waiting for data to be returned from Microsoft Query
    By bclakey in forum Excel General
    Replies: 0
    Last Post: 06-30-2005, 08:05 PM
  7. The Web query returned no data
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2005, 05:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1