+ Reply to Thread
Results 1 to 5 of 5

How to check if a column has any cells with data

  1. #1
    Forum Contributor
    Join Date
    02-18-2013
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2016
    Posts
    221

    How to check if a column has any cells with data

    Hello!

    Is there a way to highlight data in a column? Let's say I have a long column, where I want to check if there are any cells with data in it. How do I do this?

    Thanks,

    excelactuary

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: How to check if a column has any cells with data

    If column D has no data then

    =COUNTA("D:D")

    will display zero
    Gary's Student

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How to check if a column has any cells with data

    Here's something to try:
    • Select the Row_1 cell of the column
    • Press: END Press: Down Arrow
    That will find any cell with contents...or it will select the last possible row of the column

    or to simply test if any cell has contents:
    This regular formula returns the count of non-blank cells in Col_A: =COUNTA(A:A)

    If you want to flag them, try Conditional formatting using this kind of formula test: =COUNTA(A1)

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    02-26-2012
    Location
    Riga
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: How to check if a column has any cells with data

    Or you can press CTRL+Arrow and it will select the nearest cell that is not empty in that dirrection.

  5. #5
    Forum Contributor
    Join Date
    02-18-2013
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2016
    Posts
    221

    Re: How to check if a column has any cells with data

    Thank you for the excellent advice!

+ 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