Data Validation

Perksy_no1

Well-known Member
Joined
Oct 27, 2011
Messages
598
Office Version
  1. 365
Platform
  1. Windows
Hi There,

I'm have some problems with data validation. What im trying to do is stop people over planning a line past the planned finish time.

In column g you put in an amount that generates a finished time in column k

I've tried to put the following validation in column g so that it stops you putting to large an amount in column g based on whether its an early or late shift. Early shift finishes at 14:25 late shift 10:55.

=IF(B15="Early",IF(K15< time(14,25,0),true,false),if(k15< time(10,55,0),true,false))<time(14,25,0),true,false),if(k15<time(10,55,0),true,false))
<time(14,25,0),true,false),if(k15<time(10,55,0),true,false))
<time(14,25,0),true,false),if(k15<time(10,55,0),true,false))
<time(14,25,0),true,false),if(k15<time(10,55,0),true,false))
<time(14,25,0),true,false),if(k15<time(10,55,0),true,false))
<time(14,25,0),true,false),if(k15<time(10,55,0),true,false))


But it wont let me put any value into column g.

Thanks in advance for any help you can offer

Mark

Hi there just to add something else to the post the validation depends on whether in column be there is either early or late shift in there
</time(14,25,0),true,false),if(k15<time(10,55,0),true,false))
</time(14,25,0),true,false),if(k15<time(10,55,0),true,false))
</time(14,25,0),true,false),if(k15<time(10,55,0),true,false))
</time(14,25,0),true,false),if(k15<time(10,55,0),true,false))
</time(14,25,0),true,false),if(k15<time(10,55,0),true,false))
</time(14,25,0),true,false),if(k15<time(10,55,0),true,false))
 
Last edited by a moderator:

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
I don't see how you can restrict the entries like you want to, you may be able to, but, you could use Conditional Formatting

and have the cell in column "G" turn red if they enter the wrong amount.

Try this formula in Conditional Formatting for G15;

=OR(AND(B15="Early",K15>TIME(14,25,0)),AND(B15="Late",K15>TIME(22,55,0)))

(Also, I am figuring that you mean for the late time to be 10:55 at night...)
 
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,367
Members
449,080
Latest member
Armadillos

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