Checking Bookings - VBA Help Needed

Nat1978

New Member
Joined
Aug 3, 2015
Messages
24
Hi Guys,

Hoping someone could help me. I'm using Excel for Mac 15.39.

I have a spreadsheet with two sheets, shown below:

1. Calendar

23/10/1724/10/1725/10/1726/10/1727/10/1730/10/1731/10/1701/11/1702/11/1703/11/17more dates --->
John Doe
Jane Doe

<tbody>
</tbody>





This sheet has 60+ people listed with week day dates along the top.

2. Tasks

TaskStart DateEnd DateContentStatusAssigned
P124/10/1725/11/17TTBookedJohn
P223/10/1730/10/17ADBookedJane
P326/10/1702/11/17TD

<tbody>
</tbody>






This sheet has 100+ Tasks listed.

What I am trying to do:

I am trying to get the data in the Sheet called Tasks to fill cells in Sheet called Calendar like this:

23/10/1724/10/1725/10/1726/10/1727/10/1730/10/1731/10/1701/11/1702/11/17more dates ---->
John DoeP1
TT
P1
TT
P3
TD
P3
TD
P3
TD
P3
TD
P3
TD
P3
TD
Jane DoeP2
AD
P2
AD
P2
AD
P2
AD
P2
AD
P2
AD

<tbody>
</tbody>
Currently I am updating as needed manually on a daily basis.

Couple of things to note:

Sometimes Tasks for a single person overlap - if this is the case currently I create a new row underneath and show overlap in Tasks this way - ideally I'd want to try and do the same so for the example above....if task P3 started on the 25/10/17 it would look like this:

Also if another task was lined up to Joe e.g P4 TT 31/10/17 - 02/11/17 it would fill the first row if it was empty as shown, rather than create another row...if both rows were full however it would create another row....sorry if this sounds confusing but hopefully below shows what I mean:

23/10/1724/10/1725/10/1726/10/1727/10/1730/10/1731/10/1701/11/1702/11/17more dates ---->
Joe DoeP1
TT
P1
TT
P4
TT
P4
TT
P4
TT
(merged with
above cell)
P3
TD
P3
TD
P3
TD
P3
TD
P3
TD
P3
TD
P3
TD
Jane DoeP2
AD
P2
AD
P2
AD
P2
AD
P2
AD
P2
AD

<tbody>
</tbody>
I'm hoping someone could help me? I've done a bit of VBA in the past but I was not sure how start doing this!?!
 
Last edited:

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,215,013
Messages
6,122,694
Members
449,092
Latest member
snoom82

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