Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6337249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:13:03+00:00 2026-05-24T19:13:03+00:00

I have a named range of data, called ‘data’. I’m trying to find a

  • 0

I have a named range of data, called ‘data’. I’m trying to find a formula or array formula that will return data in a new range of cells, but will all the blank rows missing.

i.e. data is:

row   x    y    
1     A    77    
2          
3     B    23    
4     A    100    
5    

And my new range is:

row    x    y    
1     A    77    
3     B    23    
4     A    100    

It’s ok if the blank rows end up at the end of the array. So far I am stumped

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:13:06+00:00Added an answer on May 24, 2026 at 7:13 pm

    You should use the special cells method for this. Either with vba or Manually.

    Manually

    2007/2010

    Select column A
    Home Tab -Find & Select – Goto Special – Blanks – Ok
    Home Tab – Delete Cells – Entire Row – Ok

    VBA

    Sub DeleteBlanks()
        Activesheet.Columns(1).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
    End Sub
    

    If you want to leave the original data intact and copy the range to another sheet try something like:

    Sub DeleteBlanks()
    
        Dim vArray As Variant
        '// Get an array of your data
        vArray = Sheet1.UsedRange
        '// Copy the data to another sheet
        Sheet2.Range("A1").Resize(UBound(vArray, 1), UBound(vArray, 2)).Value = vArray
        '// Delete blanks
        Sheet2.Columns(1).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
    
    End Sub
    

    FORMULA

    If you really need a formula take a look here:

    Remove Blanks – Array Formula

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a range named STATE. I want to set data validation in range
I have an array of a few million numbers. double* const data = new
I have an array of data that is coming in to the VBA code
I have a named range called items spanning 3 cols and 10 rows. In
For example, I have a named range A10—A20 as Age ; how do I
I have two named instances of SQL Server 2008 and am trying to set
i have class named Group i tried to test configuration: var cfg = new
In the root of my application I have 5 named slots (layers) that I
I have a data fetching method that uses jQuery.ajax() to fetch xml files. /*
We have a pile of old databases in archives that have a column named

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.