Data validation to prevent keying in of specific text.

tcca85

New Member
Joined
Jun 24, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi experts,

Kindly assist, I'm trying to plan roster for my team, they can only work a maximum of 8 consecutive days.
So the work days cells, I will key as "1" and "off" will be off days. So I want validation to prevent me from keying "1" after 8 consecutive consecutive "1".

Or in more details is it possible to detect 8 consecutive different text "position" from a list of table which lists labelled?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Welcome to the MrExcel board!

I think that we would need to see a sample of your worksheet layout. MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Hi, you will need to adjust the formula to match the location of your data. This assumes that the first cell in the plan is in A1 and the validation starts in cell in A9 (there's no point in putting validation in previous cells as they cant possibly be in error.

the formula is:
Excel Formula:
=sum(A1:A9)<9
 
Upvote 0

Forum statistics

Threads
1,215,169
Messages
6,123,412
Members
449,098
Latest member
ArturS75

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