Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 76
Default Counting cells with Invalid Data

XL2003

I am circling invalid data at the end of my worksheet_change event so the
user can see what is wrong. Is there a way to count, or even a boolean
command so I know not to show the user the final tally?

Depending on which cell has invalid data, sometimes the spreadsheet will
still calculate it's total values. If I could paste a count (TRUE) into cell
E50, then E49 could be set to only display the total if E50 is zero (FALSE).

TIA, Brad
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Counting cells with Invalid Data

It depends upon what determines invalid, but all you need to do is loop
through the data and test against that rule, incrementing a counter as you
go.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Brad E." wrote in message
...
XL2003

I am circling invalid data at the end of my worksheet_change event so the
user can see what is wrong. Is there a way to count, or even a boolean
command so I know not to show the user the final tally?

Depending on which cell has invalid data, sometimes the spreadsheet will
still calculate it's total values. If I could paste a count (TRUE) into

cell
E50, then E49 could be set to only display the total if E50 is zero

(FALSE).

TIA, Brad



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting cells that contain data Karl Excel Discussion (Misc queries) 2 October 14th 06 07:18 PM
Counting cells with data jimbob Excel Discussion (Misc queries) 3 November 26th 05 11:00 PM
Counting cells with data in them Dave Peterson[_3_] Excel Programming 3 September 18th 04 07:25 PM
Counting cells with data in them SunTzuComm Excel Programming 0 September 18th 04 12:59 AM
Counting cells with data in them Tony Excel Programming 0 September 17th 04 10:11 PM


All times are GMT +1. The time now is 02:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"