+ Reply to Thread
Results 1 to 6 of 6

NULL cells and cells with data

  1. #1
    Forum Contributor
    Join Date
    08-03-2009
    Location
    Cary, NC
    MS-Off Ver
    Excel 2016
    Posts
    109

    NULL cells and cells with data

    I know this will tell me how many rows I have:

    Please Login or Register  to view this content.
    But I have a column of data with empty cells interspersed. How do I find the first cell in the column with data in it?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: NULL cells and cells with data

    Hello bishoposiris,

    To find the first cell in a column with data on the active sheet :
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    08-03-2009
    Location
    Cary, NC
    MS-Off Ver
    Excel 2016
    Posts
    109

    Re: NULL cells and cells with data

    We're close. This is my code currently:

    Please Login or Register  to view this content.
    Here is my range G2:G15 (EditLastRow is 15 in this case):

    Please Login or Register  to view this content.
    Your code sets EditDateCell to 2/18/2014 18:17 which is the last row. How do I make it set EditDateCell to 2/18/2014 1:00 which is the first row?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: NULL cells and cells with data

    Hello bishoposiris,

    Sorry, I forgot to set the starting point to the last cell. The next cell will then be the first con empty cell.

    Corrected Code
    Please Login or Register  to view this content.
    ```

  5. #5
    Forum Contributor
    Join Date
    08-03-2009
    Location
    Cary, NC
    MS-Off Ver
    Excel 2016
    Posts
    109

    Re: NULL cells and cells with data

    Super! One last piece...

    What's the correct syntax to make this work:

    Please Login or Register  to view this content.
    I've tried:

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    but I keep getting errors. EditDataCell is

    Please Login or Register  to view this content.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: NULL cells and cells with data

    Hello bishoposiris,

    This should work.
    Please Login or Register  to view this content.

+ 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. Counting the non-null cells in a range with noncontinguous cells in a round-robin
    By StudentTeacher in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-08-2011, 07:28 AM
  2. Replies: 1
    Last Post: 11-13-2011, 04:03 AM
  3. Not Null Cells
    By cxi in forum Excel General
    Replies: 1
    Last Post: 06-01-2011, 08:14 AM
  4. [SOLVED] Checking that any cells are null
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 10:05 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