+ Reply to Thread
Results 1 to 4 of 4

Importrange 2 different url- how to remove the blank cells between the spreadsheets Data

  1. #1
    Registered User
    Join Date
    05-07-2024
    Location
    Kerala India
    MS-Off Ver
    GoogleSheets
    Posts
    14

    Importrange 2 different url- how to remove the blank cells between the spreadsheets Data

    I was able to importrange from two sheets but the problem is due to range mentioned in first sheet there are blank row between the data of two sheets.

    =QUERY({IMPORTRANGE("179zBHujwfCU-RX5378E7u5lfiVc5sNlK95ikemijRkY","'7 May 2024 - 20 May 2024'!H253:X270"); IMPORTRANGE("1AVAPqGRvAffQ1ANAdjzU5cYMGLvXIqZqy8CgsAqxZLM","'7 May 2024 - 20 May 2024'!I74:Y100")}, "select Col1,Col2,Col3,Col4,Col5,Col6,Col7,Col8,Col9,Col10,Col11,Col12,Col13,Col14,Col15,Col16,Col17")

    This results in 1st sheet data sets followed by blank cells and then by the 2nd spreadsheet data set, is there a way to remove the blank cells? if yes, every time each spreadsheet was updated will the master column adjust as well?

    Additionally, would just want to remove the blank cells between the two separate spreadsheets/url. The blanks within each column from the data set should remain next to each other

    after importance the blank row between the two data should be deleted. or is there a way to check the last non blank cell of sheet 1 and import only that range
    Last edited by maheshmethal; 06-05-2024 at 02:48 AM. Reason: addition in title

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,102

    Re: Importrange 2 different url- how to remove the blank cells between the spreadsheets Da

    You can do that by changing the query statement to include a where Col__ is not null condition.

    So for example, from this:
    "select Col1,Col2,Col3,Col4,Col5,Col6,Col7,Col8,Col9,Col10,Col11,Col12,Col13,Col14,Col15,Col16,Col17"

    To this:
    "select Col1,Col2,Col3,Col4,Col5,Col6,Col7,Col8,Col9,Col10,Col11,Col12,Col13,Col14,Col15,Col16,Col17 where Col1 is not null"
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

  3. #3
    Registered User
    Join Date
    05-07-2024
    Location
    Kerala India
    MS-Off Ver
    GoogleSheets
    Posts
    14

    Re: Importrange 2 different url- how to remove the blank cells between the spreadsheets Da

    Its working fine in my Test tracker with less data as intended but when I execute it in the original tracker it throws an error message "in ARRAY_LITERAL an array literal was missing values for one or more row" any idea why its so.? But col1 has no missing values.
    Last edited by maheshmethal; 05-18-2024 at 12:50 AM. Reason: Additional Information

  4. #4
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,102

    Re: Importrange 2 different url- how to remove the blank cells between the spreadsheets Da

    As explained in your previous enquiries, you need to make sure the data is clean and complete.

    This is especially important with QUERY function.

    If you need more help then please provide sample files.

    Don't forget to make sure the settings are for Editor, otherwise theres not much we can do with the files.

+ 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] Google Sheets: Dragging down cells with IMPORTRANGE function
    By cjvdg in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 10-27-2020, 07:30 PM
  2. Replies: 9
    Last Post: 11-23-2016, 12:22 PM
  3. [SOLVED] Cocatenate Range of Cells in a column, remove blank cells, and stack text in a cell
    By paxile2k in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2014, 07:47 PM
  4. Replies: 5
    Last Post: 08-26-2013, 06:26 PM
  5. [SOLVED] P:L:E:A:S:E !!! Help! Cannot remove blank cells
    By vasya in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-20-2012, 12:47 PM
  6. [SOLVED] How to remove blank cells
    By Bren1987 in forum Excel General
    Replies: 3
    Last Post: 07-08-2012, 11:55 AM
  7. [SOLVED] Remove Blank Cells within each row
    By David in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2006, 02:40 PM

Tags for this Thread

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