VBA to determine a resource's next available date

AeroBB

New Member
Joined
Mar 4, 2016
Messages
1
Hi I'm a VBA novice looking for a solution that must be obvious, but not to me!
I have a voluntary/charity resource that is only available on specified days of the week.
So set up simple 1-D array in the spreadsheet with True or False, starting at Monday... ending Sunday
This enables the user of the spreadsheet to alter the daily availability but not alter (mess about) with formulas or code :)
An individual requests a date and I am looking for the spreadsheet and/or VBA to offer the next possible available day.

For example item is only available Tuesday, Wednesday and Thursday's,
Individual requests a date some way in the future which is a Friday, offer date is therefore the following Tuesday.
How can this "Tuesday" date be "calculated"?

Robustness is key as the resource availability changes, e.g. no longer available on Wednesdays but now on Friday
So this would make the original request above now available on the requested day.
(Clearly any resultant date clashes would be require human intervention!)

Any help/assistance much appreciated
Chris

(fyi on Excel for Mac V15)
 

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.

Forum statistics

Threads
1,223,248
Messages
6,171,021
Members
452,374
Latest member
keccles

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