Populate calendar day cell with schedule information

calvin771

Board Regular
Joined
Jul 31, 2007
Messages
55
Book1
ABCD
1DateTimeCompletedName
27/1/20229:45John Doe
37/1/20229:45Jane Doe
47/2/202211:00Mr. Excel
Data


Using the above example data in Excel 365, I want to populate a calendar-like sheet similar to the below example:



I am attempting to use the TEXTJOIN function to accomplish this but am running into multiple issues. The first issue is that the times will not pull over formatted correctly (i.e. 9:45 is pulled over as 0.40625) and the second is that I need to return the values per row as the example above shows and not per column (e.g., incorrect formatted times followed by names). An example array formula is below:

Excel Formula:
=CONCAT(TEXTJOIN(REPT(" ",5),TRUE,IF(Data!$A$2:$A$4=July!F3,July!$B$2:$B$4,"")),TEXTJOIN(CHAR(10),TRUE,IF(Data!$A$2:A4=July!F3,Data!$D$2:$D$4,"")))

I'm not proficient enough with VBA if that's what is required so am looking for some assistance. Thanks in advance.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
How about
Excel Formula:
=TEXTJOIN(CHAR(10),,TEXT(FILTER(Data!$B$2:$B$4,Data!$A$2:$A$4=F3),"hh:mm")&REPT(" ",5)&FILTER(Data!$D$2:$D$4,Data!$A$2:$A$4=F3))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0
As a followup, I got #CALC! entries in empty cells until adding the last argument to the FILTER function:

Excel Formula:
=TEXTJOIN(CHAR(10),,TEXT(FILTER(Data!$B$2:$B$4,Data!$A$2:$A$4=F3,""),"hh:mm")&REPT(" ",5)&FILTER(Data!$D$2:$D$4,Data!$A$2:$A$4=F3,""))

Again, thanks a ton!
 
Upvote 0

Forum statistics

Threads
1,215,067
Messages
6,122,949
Members
449,095
Latest member
nmaske

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