+ Reply to Thread
Results 1 to 8 of 8

Find Range of blank cells

  1. #1
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Find Range of blank cells

    Hi

    It’s no good, I just can’t seem to get this right so need to ask for some help.

    I need to find a range of blank cells within a fixed range of rows and columns.

    So I’m trying to find the first (xlUp) or last (xlDown) row of blank cells across columns P1:S1
    and between Rows 6 to 600, so P1:S600. What ever combination I’ve tried has failed!!

    Can any one suggest how to do this?

  2. #2
    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,344

    Re: Find Range of blank cells

    Create a helper column. In the helper column, use COUNTBLANK to count the cells in columns P:S for each row. Then Filter on the helper column for value 4 to give you all rows with 4 blank cells.
    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


  3. #3
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Find Range of blank cells

    range in this case as you meant (P1:S600)

    to find start cell before nonblank cell try this formula (array formula)
    {=ADDRESS(MIN(IF(range<>"";ROW(range)))-1;MIN(IF(range<>"";COLUMN(range))))}

    to find last cell try use this one (array formula)

    {=ADDRESS(MAX(IF(range<>"";ROW(range)))+1;MAX(IF(range<>"";COLUMN(range))))}

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Find Range of blank cells

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

    or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by avk; 02-04-2017 at 08:02 PM. Reason: Posting Problem


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Find Range of blank cells

    It is to find position of last blank row of cells in a range for the Sub to know where to add the new data.

    Like:
    Please Login or Register  to view this content.
    Sorry not done a very good job of explaining

    Due to other replies posted this may not be necessary, but will do it any way.

    Will give suggestions a go, many thanks

  6. #6
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Find Range of blank cells

    It is to find position of last blank row of cells in a range for the Sub to know where to add the new data.

    Like:
    Please Login or Register  to view this content.
    Sorry not done a very good job of explaining

    Due to other replies posted this may not be necessary, but will do it any way.

    Will give suggestions a go, many thanks

    Sorry about double post!!
    Last edited by julhs; 02-04-2017 at 08:09 PM.

  7. #7
    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,344

    Re: Find Range of blank cells

    Suggest you post a sample workbook with some typical data.

    What's in the other columns?

  8. #8
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Find Range of blank cells

    Solved on Vba & Macros section

    Thread link; http://www.excelforum.com/showthread.php?t=1172925
    Attached Files Attached Files
    Last edited by julhs; 02-08-2017 at 01:36 AM. Reason: Link to resolution

+ 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] Formula to find the last cell value in a column range that contains blank cells
    By Bonzopookie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-29-2014, 07:50 PM
  2. Find & select 1st blank cell in a range of formulated column cells
    By jnbroek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2013, 09:26 AM
  3. find number of data in a range IGNORE FORMULAS, BLANK cells
    By ccsmith in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2013, 11:57 AM
  4. [SOLVED] Find first non-blank cell after a group of blanks copy offset cells, find next blank, loop
    By gwsampso in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-21-2012, 06:11 AM
  5. if find blank in specfic ranges then blank the specfic range cells
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2012, 11:19 AM
  6. VBA code to find blank cells within a range
    By pcbpinoy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2011, 12:24 AM
  7. [SOLVED] find range of non-blank cells in colum
    By DJS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-26-2006, 05:30 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