+ Reply to Thread
Results 1 to 18 of 18

Looking for formula to return array of data excluding blank cells.

  1. #1
    Registered User
    Join Date
    07-28-2022
    Location
    USA
    MS-Off Ver
    365
    Posts
    13

    Looking for formula to return array of data excluding blank cells.

    I have three columns, N, O, and P. The cells are pulling in values from another worksheet. Because of the way this particular spreadsheet is (it's one that is meant to be filled by users in my department, and some may fill it with less data than others), some of the cells are blank. I am trying to create a list of the cells that only contain values from N, O, and P into V, W, and X, but I am stumped. I've spent far too long on this without asking a question. I am hoping this makes sense!

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Looking for formula to return array of data excluding blank cells.

    Hello and Welcome to the Forum,

    It somewhat makes sense, but a sample file of what you have and what you expect always helps.

    If you do really have O365, then try the Filter formula.

    =FILTER(N2:N100,N2:N100<>"")
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    07-28-2022
    Location
    USA
    MS-Off Ver
    365
    Posts
    13

    Re: Looking for formula to return array of data excluding blank cells.

    Thanks Jeff! I did try the filter formula, but I kept getting a spill error. Attaching here, a quick glance of the spreadsheet. Typically, the info in columns A-L is being pulled in from a different tab, but I've just pasted the values in those columns for now.
    Attached Files Attached Files

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Looking for formula to return array of data excluding blank cells.

    Ok, well those cells are not really blank, they appear to be zero. I can't download your sheet for some reason, but how about try...

    =FILTER(A2:A37,LEN(A2:A37)>1)

  5. #5
    Registered User
    Join Date
    07-28-2022
    Location
    USA
    MS-Off Ver
    365
    Posts
    13

    Re: Looking for formula to return array of data excluding blank cells.

    Yeah I should have mentioned that they were returning zero values but holding formulas. I have tried to resave the file in a different way so maybe it's possible to open it? I tried that formula as well and got a spill.
    Attached Files Attached Files

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Looking for formula to return array of data excluding blank cells.

    Before we try anything else, I suspect you haven't listed everything in column AA from column N. Hopefully this was just a sample. What about Semi Reporting and Quarterly? These are listed twice in column N, but they also have different dates in column P. What are you intending to do with those duplicate values?

    Have you considered just using a pivot table?

  7. #7
    Registered User
    Join Date
    07-28-2022
    Location
    USA
    MS-Off Ver
    365
    Posts
    13

    Re: Looking for formula to return array of data excluding blank cells.

    So.... this whole thing is a part of a much larger project. The intent is to have the admin input the dates on the "Input Data" tab - on the "formula central" tab - which is the sample I sent over before, it calculates dates based off of the original date and so forth.
    Once that is done, it would fill in the "fact sheet" and the calendar is changed based off of that. Then, the button will print to pdf to their desktop (I have disabled the macro on this file, but I did get that to work!)
    I will tell you that I KNOW this is not the bet way to do this, but - I am not the most proficient in excel, and I've just started with VBA, so I hesitated to send any other info - but here it is!
    Attached Files Attached Files

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Looking for formula to return array of data excluding blank cells.

    Not sure I have a good solution. Let me post the thread in our help area to see it anybody has something to offer.

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Looking for formula to return array of data excluding blank cells.

    is that what you want?
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-28-2022
    Location
    USA
    MS-Off Ver
    365
    Posts
    13

    Re: Looking for formula to return array of data excluding blank cells.

    Yes! how did you do that?

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Looking for formula to return array of data excluding blank cells.

    Use Power, Luke!
    this is Power Query with a simple M
    (M is a Power Query language)
    You've Power Query build-in

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    07-28-2022
    Location
    USA
    MS-Off Ver
    365
    Posts
    13

    Re: Looking for formula to return array of data excluding blank cells.

    Oh! I have not really stepped into Power Query yet…. No time like the present? *I am one with the Force. The Force is with me.*

    Thank you for this! I’ll give it a go.

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,362

    Re: Looking for formula to return array of data excluding blank cells.

    Is this what you are after:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Looking for formula to return array of data excluding blank cells.

    Quote Originally Posted by ecubugg View Post
    Oh! I have not really stepped into Power Query yet…. No time like the present? *I am one with the Force. The Force is with me.*
    Thank you for this! I’ll give it a go.
    Look at first line (link) in my SIG

  15. #15
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,362

    Re: Looking for formula to return array of data excluding blank cells.

    Or were you looking for something like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,362

    Re: Looking for formula to return array of data excluding blank cells.

    Is this resolved now?


    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  17. #17
    Registered User
    Join Date
    07-28-2022
    Location
    USA
    MS-Off Ver
    365
    Posts
    13

    Re: Looking for formula to return array of data excluding blank cells.

    I went back today to try this, and for whatever reason, it's not giving me a spill today!!!! So, this is awesome and worked perfectly. Thank you so much

  18. #18
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Looking for formula to return array of data excluding blank cells.

    Happy to know to have your solution and thank you for the rep and marking the thread as solved.

+ 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. Return blank cell for IFS formula for Vlookup data with blank cells.
    By kmac1903 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-23-2023, 10:04 AM
  2. [SOLVED] Array formula to select best data from a row ignore blank cells
    By Pewil-2324 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-14-2021, 04:19 PM
  3. [SOLVED] Excluding blank cells in formula
    By Bob1955 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-28-2020, 02:41 AM
  4. Array formula to return a table excluding rows meeting a certain criteria
    By puckman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2013, 07:54 AM
  5. array formula: How to aggegrate data, removing blank cells?
    By tim594 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-05-2013, 02:37 PM
  6. Excluding blank cells from a range of data
    By Consty1 in forum Excel General
    Replies: 5
    Last Post: 10-11-2012, 03:19 PM
  7. Sorting data excluding blank cells
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2008, 11:09 AM

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