PC Review


Reply
Thread Tools Rate Thread

data validation across multiple columns

 
 
AKrobbins
Guest
Posts: n/a
 
      6th May 2011
I'm attempting to include a stop message when a person enters "0"
across multiple columns. The data entry person has the option to use
"1" or "0", however if they use zeros across the multiple columns I
want the person to be alerted to this error. Here is the the data
structure:

ID V1 V2 V3
1 0 0 0
2 1 0 0

I'm currently using this formula to flag cases that reported all "0"
in the three columns: =IF(SUM(V1:V2)=0,"Missing", "NA".

However I want to use the data validation tool instead so the person
doing the data entry gets a warning that a data entry error occurred.
I used the above formula in Data Validation: Customs and when I tested
to see if an error message came up after entering "0" in all three
columns no message came up. I am not macro savvy so I was hoping I can
solve this issue with formula. Any help is appreciated.
 
Reply With Quote
 
 
 
 
Claus Busch
Guest
Posts: n/a
 
      6th May 2011
Hi,

Am Fri, 6 May 2011 07:38:42 -0700 (PDT) schrieb AKrobbins:

> ID V1 V2 V3
> 1 0 0 0
> 2 1 0 0
>
> However I want to use the data validation tool instead so the person
> doing the data entry gets a warning that a data entry error occurred.
> I used the above formula in Data Validation: Customs and when I tested
> to see if an error message came up after entering "0" in all three
> columns no message came up. I am not macro savvy so I was hoping I can
> solve this issue with formula. Any help is appreciated.


V1 in column B, V2 in C ans so on. Select B22 and then Data Valisation
and the formula:
=AND(B2<2,COUNTIF($B2:$D2,0)<=1)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
 
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
Data Validation on multiple columns NDBC Microsoft Excel Misc 3 19th Aug 2009 03:22 AM
Data Validation & multiple columns =?Utf-8?B?Qm9i?= Microsoft Excel Misc 1 9th Apr 2007 10:24 AM
Data Validation using multiple columns =?Utf-8?B?Qm9i?= Microsoft Excel Programming 4 6th Apr 2007 04:26 AM
Data Validation & multiple columns =?Utf-8?B?Qm9i?= Microsoft Excel Programming 6 5th Apr 2007 01:46 PM
Data validation for Multiple columns NC Microsoft Excel Misc 2 11th May 2005 01:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:31 AM.