Data validation referring to cell that has count if function :: MrExcel Message Board


 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

Data validation referring to cell that has count if function
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

SlinkRN
Board Master


Joined: 30 Oct 2002
Posts: 116
Location: Illinois
Flag: Usa

Status: Offline

 Reply with quote  

Data validation referring to cell that has count if function

Hi there!
I have been trying to have a cell not allow a certain character if another cell already has counted 10 of that group of characters in that column.
For example, cell B2 has a sumproduct function that counts up a total of all "E", "p", "Q", and "O" entries in column 2 (about 100 rows in the column). I want to be able to stop someone from entering another E, p, Q, or O in column 2 if cell B2 already has a total of 10. I want a box to pop up and say something like "This shift is full, choose another". I've been playing around with it, but I can't get it to do that. Any ideas?

Column B

=sumproduct(--exact(B4:B104,{"E","O","Q","p"}))

E
O
E
Q
E
E
p

etc.
Thanks Slink

Post Fri Sep 19, 2003 4:43 pm 
 View user's profile Send private message

Andrew Poulsom
MrExcel MVP


Joined: 22 Jul 2002
Posts: 8266

Flag: Uk

Status: Offline

 Reply with quote  

Re: Data validation referring to cell that has count if func

The validation formula:

=B2<=10

should work. You can set the error message on the Error Alert tab.

Post Fri Sep 19, 2003 4:46 pm 
 View user's profile Send private message

SlinkRN
Board Master


Joined: 30 Oct 2002
Posts: 116
Location: Illinois
Flag: Usa

Status: Offline

 Reply with quote  

Re: Data validation referring to cell that has count if func

I thought that would work too, but it doesn't. I thought maybe it was because it was based on a sumproduct formula instead of an actual number.

Post Fri Sep 19, 2003 4:48 pm 
 View user's profile Send private message

Andrew Poulsom
MrExcel MVP


Joined: 22 Jul 2002
Posts: 8266

Flag: Uk

Status: Offline

 Reply with quote  

Re: Data validation referring to cell that has count if func

You probably need:

=$B$2<=10

if it's applied to a range. It worked for me.

Post Fri Sep 19, 2003 4:53 pm 
 View user's profile Send private message

SlinkRN
Board Master


Joined: 30 Oct 2002
Posts: 116
Location: Illinois
Flag: Usa

Status: Offline

 Reply with quote  

Re: Data validation referring to cell that has count if func

Ooops! Sorry, Andrew - I spoke too soon. That DOES work - I just tried it. I must not have been putting the = before the B2. Thank you so much, the simplest little thing was driving me CRAZY!! Thanks again! Slink

Post Fri Sep 19, 2003 4:54 pm 
 View user's profile Send private message
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.