+ Reply to Thread
Results 1 to 5 of 5

Test if column has any values

  1. #1
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Question Test if column has any values

    I would like to use this Sub but it is giving me the wrong result.
    Please Login or Register  to view this content.
    What I would like to do is just test the Col to see if there is any data at all in it. The Sub above is giving me a MsgBox "Not Empty" even when I see that the cells are empty & dont have formulas either. "I" is a helper Col that was populated & then deleted. My code runs & imports more data but on the 2nd go round "I" may or may not have data in it hence the test.

    In summary I am looking for a quick & dirty way to test a Col for data [Could be a formula text or numbers].
    Is that possible or am I asking too much from Excel?

    TIA any help offered is greatly appreciated.
    Last edited by dlow; 08-16-2014 at 07:38 PM.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Test if column has any values

    You may try this to see if this works as per your requirement.
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Re: Test if column has any values

    Yup, BoOM BaNG!!!

    Now if I may inquire about what you did there? Did you concatenate two functions? Wow did not know you could do that.
    What is even more interesting to me is how the 2nd is modified."), "*?")"
    Please Login or Register  to view this content.
    I would like to know what its called or something so I could learn about that snazzy trick.
    Thx for sharing you time & knowledge.
    +1Rep Point for you Good Sir Brovo
    Last edited by dlow; 08-17-2014 at 02:32 AM.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Test if column has any values

    You're welcome. Thanks for the feedback.

    The first one is checking if the specified range contains a number and the second one is checking if the specified range contains a text. Both the function are used in IF with AND logical statement and if both are evaluated to be True, it returns the msg "Empty". Try these functions on your sheet to see how they work.

  5. #5
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Re: Test if column has any values

    Yes it works sorry, & the thread is marked as "Solved." Thanks again for helping me out.

    "Yup, BoOM BaNG!!!" was some of my American slang or "Pow Ping" say it after doing something really awesome. Anyways thanks your amazing, all the best sir.

+ 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. Logical test false values skip to next row for next test
    By Schecter89 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-23-2018, 06:36 AM
  2. Replies: 3
    Last Post: 08-21-2013, 07:10 PM
  3. P Values/T-test
    By jjykim in forum Excel General
    Replies: 4
    Last Post: 07-10-2013, 10:11 AM
  4. Replies: 3
    Last Post: 09-26-2012, 09:48 AM
  5. Pull sub-test scores from test w/best overall test score (PSAT)
    By PowerSchoolDude in forum Excel General
    Replies: 0
    Last Post: 11-19-2009, 08:29 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