Data Validation Questions

TheSubject

New Member
Joined
Feb 16, 2016
Messages
23
Hi, I have a few data validation questions which I'm struggling with.

Firstly I am trying to make a bookings form, so am looking for a dropdown with every fifteen minutes between open and close. Now, Time as a data validation does not provide a drop down, so I am doing it based on a list of available times. Because a) our opening times vary across the week, and b) my dynamic list of times will exclude fully booked periods, I need the source of the list to vary in length to avoid a load of blanks. Basically - what the "ignore blanks" tick box is ASSUMED to do, before you quickly learn it doesn't. What is the work around to achieve this? I have tried googling and have copy and pasted a load of different options but once I've edited them from row to column and the example cells to mine etc, I just don't get the results.

Secondly, I am entering a box for the customer to enter an email address. I am still reading up on excel sending emails, but I want to ensure they type in a correct email address, i.e. to not allow them to submit without at least it having an @ sign in it! Again data validation: does contain an @ sign, and maybe a . Is this possible?

Thanks in advance for all your help,

G
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Use sheet formulas to make a list of these 15 minute intervals on a sheet.
An example would be put the start time in A1, the end time in A2
In B1, put =A1
In B2, put =IF(B1>=$A$2,"",B1+TIME(0,15,0)) and drag down.

Then for the list source of your validation list =OFFSET(B1,0,0,COUNT(B:B),1)

That will have the list change depending on the A1 and A2 entries.
Controlling the black-out periods and changing start times is all done in the sheet (the formulas in column B)

Note that the format of the drop down list (9:00 vs. 9:00 AM) is controled by the formatting of the cells in column B, the format shown in the cell after an item is selected comes from that cell's number formatting.
 
Upvote 0

Forum statistics

Threads
1,214,804
Messages
6,121,652
Members
449,045
Latest member
Marcus05

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