PC Review


Reply
Thread Tools Rate Thread

Check range of cells for non-null values

 
 
Dale Fye
Guest
Posts: n/a
 
      13th Dec 2007
I need to create a report (worksheet) that is populated with references to
values that are missing in a "data sheet". But rather than enter one row for
each missing value, if all of the cells from C1:M1 (just an example) are
empty, I want to do enter just a single row in my report worksheet.

I can write a function to loop through the range of cells, but wanted to
know if there is an easier way, somesort of WorksheetFunction that will do
this, given that some of the data that should be in those cells is text, and
some is numeric.

Thanks.
--
Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.

 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      13th Dec 2007
if worksheetfunction.counta(Range("C1:M1")) = 0 then
'enter code if all cells are empty
end if


end if

"Dale Fye" wrote:

> I need to create a report (worksheet) that is populated with references to
> values that are missing in a "data sheet". But rather than enter one row for
> each missing value, if all of the cells from C1:M1 (just an example) are
> empty, I want to do enter just a single row in my report worksheet.
>
> I can write a function to loop through the range of cells, but wanted to
> know if there is an easier way, somesort of WorksheetFunction that will do
> this, given that some of the data that should be in those cells is text, and
> some is numeric.
>
> Thanks.
> --
> Don''t forget to rate the post if it was helpful!
>
> email address is invalid
> Please reply to newsgroup only.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check if the values in a range of cells are greater than 0 DP Microsoft Excel Worksheet Functions 3 19th Mar 2010 01:31 PM
check for FALSE values in a range of cells in VBA Dave F Microsoft Excel Misc 2 7th Aug 2007 04:12 PM
Check that all cells in a range have same values Finny388 Microsoft Excel Programming 2 11th Jul 2007 04:45 PM
Check null for range objects kaon Microsoft Excel Programming 2 24th Aug 2004 09:46 AM
How to check for null values =?Utf-8?B?TWF0dEg=?= Microsoft ASP .NET 1 23rd Jan 2004 04:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:41 AM.