Vba Macro Help -Possibly a fomula

DaveR

Board Regular
Joined
May 10, 2006
Messages
176
What I am trying to achieve is this; I have a 'Date of refferal' in Column H, what I want to happen it that when this is filled in, Column I then offers two days which are either the following Wednesday, or the Wednesday after that?

All help greatfully recieved.
 
Just a bit of tweeking? Although you seem to be saying that there is no summary of bookings per day held anywhere ... is that right?
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
The summary of booking would simply be contained in Column J

Referral Date MACPP Panel Date Time of Panel
15-Jun-11 22-Jun-11 9:00AM
16-Jun-11 22-Jun-11 9.40AM

So in the above example if someone on a new line selected 22-Jul-11, then those dates used (9.00 and 9.40) would not be available from the pick list. (I.e. you can never book two events at the same time).
 
Upvote 0
Yes, I get the logic ... I don't think you see the scale of the problem. You want an in-cell drop-down to be available for any particular date, and yet there are no summaries by date. Are you expecting a list to be created on the fly as someone navigates to a particular cell on a row, for the date of that row? Without having a summary somewhere I would think that's the only way ... unless someone else on here has some ideas ... I may have missed an easy solution maybe???
 
Upvote 0
As i'm playing with the concept I think I am begininf to grasp that I suspect there isn't a simply solution....

I'm currently playing with having my list of times on a different sheet (Named range) but the bit that is stumping me currently is how I link that to the specific date.

Happy to hear any other ways you may think this can be achieved.
 
Upvote 0
The thing is, you are expecting "specific date" to be whatever date that is for the row that activecell is on.
 
Upvote 0
yep thats right!

I'm currently imagining a sheet with a long list of every wednesday for the next three years with exactly the same data!

15-6-11 22-6-11 29-6-11 8-7-11

With my list of times below each one. Following the procedure at http://www.contextures.com/xlDataVal03.html


It doesn't appear a particularly elegant solution? and it also doesn't resolve the problem of linking the date requirement into dropdown list.

Tricky isn't it!
 
Upvote 0
I can imagine a summary of times booked per date, with corresponding blank slots per date too ... you'd have to have a defined name per date to be able get it into the dropdown. Creating that many names is easy if the referenced ranges are all the same size ... would you mind having blanks at the end of the drop-down, after the available slots?
 
Upvote 0
Say that this is an entry sheet:

Excel Workbook
ABCD
1Referral DateMACPP Panel DateTime of PanelOverlap check
215-Jun-1101-Jun-1110:20FALSE
315-Jun-1115-Jun-1110:00FALSE
415-Jun-1115-Jun-1109:40FALSE
516-Jun-1115-Jun-1111:20FALSE
615-Jun-1122-Jun-1110:00FALSE
716-Jun-1122-Jun-1109:00FALSE
815-Jun-1122-Jun-1109:20FALSE
916-Jun-1129-Jun-1109:00FALSE
1015-Jun-1129-Jun-1110:40FALSE
1116-Jun-1129-Jun-1111:20FALSE
1215-Jun-1106-Jul-1111:00FALSE
1316-Jun-1106-Jul-1110:00FALSE
1415-Jun-1106-Jul-1109:40FALSE
Sheet6


( the Overlap Check is necessary if it's possible for people to change the date without re-choosing the time )

then .... ( see next post )
 
Upvote 0
... this would be the summary and empty slots sheet:




I couldn't get the full width into Excel Jeanie, but you get the idea.

Names have been created by selecting J2:R6 and doing Create Names ( left column ).

In the entry sheet you'd have Data Validation for the times to be:
=INDIRECT("Slot_"&TEXT(B2,"ddmmmyy"))
... adjust ref as necessary.

The only caveat that I can think of is that no text entries must appear in the time choice area of the entry sheet ... not even blanks ( "" ) like those at the end of the in-cell drop-downs.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,275
Members
452,902
Latest member
Knuddeluff

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