Data Validation not working how I want or I'm not using it correctly.

Rease

New Member
Joined
Jan 16, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi I'm adjusting our existing Absence Schedule and I want to create rules that prohibit too many staff off in any department at one time; the number will vary depending on department Accounts =1, Sales =2, CAD =1, Laser =2, Press =1, Goods In/Out =1

I can easily get a total count of the number of Holidays booked in for the employees but whenever I try to apply Data Validation to the cells I either can't enter a "H" character at all or I get no stop warning.

I've tried two methods one is getting a total count of H's and the doing the Data Validation on that total count cell, this just shows a tiny exclamation triangle on said cell but doesn't stop the user from entering in three holidays in the Programming department.


1673867644541.png


second method was to apply the data validation to the three cells and use the count formula to check if the number of H's entered in these three cells go above 1 and stop the user from doing this, what happens is I can't enter any sort of character at all, its all invalid.


1673868050502.png



I feel like this is simple but I'm missing something, all I want it to do is stop the user typing out a 2nd "H" and flagging up an error saying Holiday clash you can't have more than 1 person off in this department.

Go easy on please, its my first time asking online for assistance.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi & welcome to MrExcel.
How about
Excel Formula:
=COUNTIFS($G$16:$G$18,"H")<2
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,657
Messages
6,173,629
Members
452,525
Latest member
DPOLKADOT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top