+ Reply to Thread
Results 1 to 13 of 13

Trying to compile list of data into another list without blanks

  1. #1
    Registered User
    Join Date
    05-15-2019
    Location
    United States
    MS-Off Ver
    2016
    Posts
    6

    Trying to compile list of data into another list without blanks

    Hello,
    I have looked through some posts about this topic, but i can't seem to get anything to work. I have an O.O.S. list which lists a set of trucks and trailers that have been put out of service. I probably should start by stating that this is a google sheets document. I am not for sure how much that makes a difference. The process starts by a mechanic filling out a form, the raw data then populates under the O.O.S. Form tab. I created a new tab to help make the data aesthetically pleasing called O.O.S. Record and it is under the Current O.O.S. heading. The mechanic can put the unit back into service using a different form, which will take the unit off of the current out of service record.

    I would like to essentially create a dashboard / another tab that actively lists the units currently out of service. Basically I would like the current out of service list to not have blanks. Actually, if that could be done on o.o.s. record tab and also on a separate tab that would be great. FYI units will be subtracted and added to the lists. Any help would be greatly appreciated.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Trying to compile list of data into another list without blanks

    This can be accomplished quickly with Power Query, but only if you are using excel 2010 or later. It will not work with Google Sheets. If this is something that will work for you, post back and I will work it up. With PQ, every time you update the "Form" and click on Refresh it will update the output. Please advise.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    05-15-2019
    Location
    United States
    MS-Off Ver
    2016
    Posts
    6

    Re: Trying to compile list of data into another list without blanks

    I am not familiar with PQ, but I looked at some videos online about it and i don't think it will work for our everyday use of google sheets. It is nice with google sheets because those who have access can access it and see live updates as it is happening. Does PQ do that?

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Trying to compile list of data into another list without blanks

    Once you have developed your query in PQ, any updates to the original data is processed and immediately updated by clicking on the Refresh button. You usually have to select the refresh twice. Once to get the updated info into the query and once to reload the data back to excel. Very slick and immediate.

  5. #5
    Registered User
    Join Date
    05-15-2019
    Location
    United States
    MS-Off Ver
    2016
    Posts
    6

    Re: Trying to compile list of data into another list without blanks

    Sounds like I could look into that, but is there a way to get blanks out of the data in google sheets? You can see the different equations I tried in row 5.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Trying to compile list of data into another list without blanks

    I don't work with Google Sheets and am not familiar with their protocols. Is there a filter feature where you can unselect blanks?

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Trying to compile list of data into another list without blanks

    As an aside if you are interested and I don't know how this will work or be adapted to Google Sheets, here is a Macro that will list all the Out of Service to the OOS Record tab. Hopefully, you can adapt this as needed for the Google Sheets.

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-15-2019
    Location
    United States
    MS-Off Ver
    2016
    Posts
    6

    Re: Trying to compile list of data into another list without blanks

    I haven't found a filter to do that. I just know that Google Sheets is almost a basic form of Excel, but there are a lot of things you can do in Excel that you can't do in Sheets. As far as I know, any formula would work, but one to take out blanks is somehow not working. I appreciate the help though.

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Trying to compile list of data into another list without blanks

    Look at this link which I googled "Filter Blank Cells in Google Sheets"

    https://www.benlcollins.com/spreadsh...lter-function/

  10. #10
    Registered User
    Join Date
    05-15-2019
    Location
    United States
    MS-Off Ver
    2016
    Posts
    6

    Re: Trying to compile list of data into another list without blanks

    I found query on google sheets that asks for Google Visualization API Query Language? I tried the filter equation and it still not working. I don't know if it has something to do with the fact that I have code in each cell of the O.O.S. columns?

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

    Re: Trying to compile list of data into another list without blanks

    Not familiar with google sheets however here is a formula based solution that may work.
    1. Modify the formulas in columns A:B so that instead of the Value if False being a space it is null i.e.: =IF(COUNTIF('O.O.S. Form'!B:B,E5)>(COUNTIF('Return to Service'!B:B,E5)),E5,"")
    2. The array entered formula* that populates columns K:L with Trucks and Trailers is: =IFERROR(INDEX(A$4:A$54, MATCH(0, IF(ISBLANK(A$4:A$54), 1, COUNTIF(K$4:K4,A$4:A$54)), 0)),"")
    *Array entered formulas are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    I noticed that after employing step 1, the values in columns P:R also arranged without the blank rows.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  12. #12
    Registered User
    Join Date
    05-15-2019
    Location
    United States
    MS-Off Ver
    2016
    Posts
    6

    Re: Trying to compile list of data into another list without blanks

    Thank you for the help!!! The first formula works, but the second formula had an "Iterative calculation" error. Their is a setting that controls this in google sheets under "file" then "spreadsheet settings" then "calculation" tab. It is turned off in settings, then when i turn it on it gives me 2 values to adjust. The first is "Max number of iterations" which it defaults to 50. The second is "Threshold" and it defaults to .05. When I saved that, the results were just blank instead of errors. I tried one of the other formula's I found when searching online and this one seems to work for the time being:
    =ArrayFormula(IFERROR(INDEX($A:$A,SMALL(INDEX(($A$4:$A$54="")*10^10+ROW($A$4:$A$54),0),ROW(A1))),""))

    Thank you both for your help!!

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

    Re: Trying to compile list of data into another list without blanks

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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] data validation list without blanks
    By thedunna in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2019, 04:34 PM
  2. Replies: 8
    Last Post: 09-15-2016, 05:11 PM
  3. Replies: 0
    Last Post: 03-12-2015, 12:50 PM
  4. [SOLVED] List unused items from data validation list without blanks
    By L plates in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-27-2015, 09:02 AM
  5. Condense list of data that contains some blanks to just a list of data
    By joemsimth in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2013, 10:48 AM
  6. Replies: 10
    Last Post: 11-03-2011, 11:22 AM
  7. [ Data Validation > List ] with Blanks
    By macky1730 in forum Excel General
    Replies: 2
    Last Post: 10-27-2010, 03:14 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