Fill cells with data based on dates?

tezza

Active Member
Joined
Sep 10, 2006
Messages
375
Office Version
  1. 2016
  2. 2010
Platform
  1. Windows
  2. Web
Hi All,

Hope you can help.

I've created a dynamic calendar but would like it to auto populate based on the dates and initials below it (see image of manually entered data for example purpose).

What is the best way to achieve this please?

Below is the link to the sheet that is in google drive which is view only to keep the original data in place but you should be able to copy it:
Dynamic Calendar

dynamic calendar image.jpg


Thank you.
Terry
 
Glad to help & thanks for the feedback.
Hi Fluff

After extensive use, which has been great, due the the number of entries it now struggles with the load and runs pretty slow (rough 5-6 seconds after Enter is pressed to process). Is there an alternative method that would help it run quicker by any chance?

Kind regards
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
You could try
VBA Code:
Function tezza(Dcl As Range, DRng As Range) As String
   Dim Ary As Variant
   Dim i As Long
   
   Ary = DRng.Value2
   
   For i = 1 To UBound(Ary)
      If Dcl.Value >= Ary(i, 1) And Dcl.Value <= Ary(i, 3) Then
         tezza = tezza & "," & Ary(i, 5)
      End If
   Next Cl
   tezza = Mid(tezza, 2)
End Function
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,927
Members
449,094
Latest member
teemeren

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