Check a users input based on a Validation selection, Start and End time

-emma-

Board Regular
Joined
Jul 14, 2006
Messages
180
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am needing to capture working times from new staff members. This is something I have done for quite some time, but I am looking at making this easier for me and put some checking in there so the users can see where they have an error.

In the attached image is a snippet of what the sheet looks like.

A2 and below is a Validation List of 4 possible options, shown in A6:A9 for ease. What I require is a check that looks at what the user has put in A2 and then either B2 or C2 depending.
If A2 = 08:00 B2 needs to be equal or earlier than A2
If A2 = 09:00 B2 needs to be equal or earlier than A2
If A2 = 17:00 C2 needs to be equal or later than than A2
If A2 = 18:30 C2 needs to be equal or later than than A2

The result will show in E2 with either a tick or a cross showing if completion was correct or not correct.

Hope this is makes sense and I hope someone with much more knowledge can help me out with this :)

Thank you for your time.

Emma
 

Attachments

  • TimeSheet.JPG
    TimeSheet.JPG
    47.3 KB · Views: 7

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Maybe something like this, it doesnt bother checking times 3 and 4 as you use validation. If it isnt 1 and 2 then it must be 3 or 4.

=IF(OR(A2=8/24,A2=9/24),IF(B2<=A2,"OK","No Good"),IF(C2>=A2,"OK","No Good"))
 
Upvote 0
Solution
Maybe something like this, it doesnt bother checking times 3 and 4 as you use validation. If it isnt 1 and 2 then it must be 3 or 4.

=IF(OR(A2=8/24,A2=9/24),IF(B2<=A2,"OK","No Good"),IF(C2>=A2,"OK","No Good"))
This works perfectly, thank you :)
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,376
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