+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Count number of consecutive blank cells using script

  1. #1
    Registered User
    Join Date
    08-31-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    9

    Count number of consecutive blank cells using script

    Hi,

    I am new to Excel. Please help me with the below problem:
    I want to write a script which will count the number of consecutive blank cells in a column. for eg: Assume A1 contains "one" and A5 contains "five". the cells in between A1 and A5 are empty. i want to get a count of the number of blank cells in between A1 and A5, using script. Is there any way i could achieve this?

    Regards,
    Anu

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Count number of consecutive blank cells using script

    Use COUNTBLANK, why do you need VBA?

    IN vba,
    Please Login or Register  to view this content.
    Last edited by royUK; 08-31-2010 at 04:18 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Count number of consecutive blank cells using script

    Hi, This code will count the Maximum number of Consecutive Blank Cells in column "A" .
    Please Login or Register  to view this content.
    Regards Mick

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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