Seeking assistance to populate a list from a table

auto.pilot

Well-known Member
Joined
Sep 27, 2007
Messages
734
Office Version
  1. 365
Platform
  1. Windows
I searched and can't find anything quite like this. I have a table with times the range of D3:L3 and dates starting in B4 and below. I'd like users of this workbook to add an 'x' in time slots that are available and open. Thereafter, I'd like some code or formulas that would populate the list shown in column N. The colors are simply for posting to this forum and will not be used.

I have written a formula that populates a single cell, for example from the x in cell D4, I wrote a formula that produces the desired date and time format in cell N4.

I am struggling to populate a list like what is shown in column N. I guess I'd prefer a code-based approach.

1688582561278.png


Thanks in advance for any and all assistance.

Jim
 
I would prefer text if possible so that I can add the bullet point and a couple of spaces in the front. Thereafter, I will copy the list and paste it into an email.

Thanks
 
Upvote 0

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
How about
AvailableDates.xlsx
ABCDEFGHIJKLM
1
2Available
3Date9:00 AM10:00 AM11:00 AM12:00 PM1:00 PM2:00 PM3:00 PM4:00 PM5:00 PMEST
4Thursday06/07/2023xxx● Thursday 7/6 @ 9:00 AM EST
5Friday07/07/2023xx● Thursday 7/6 @ 12:00 PM EST
6Saturday08/07/2023● Thursday 7/6 @ 3:00 PM EST
7Sunday09/07/2023● Friday 7/7 @ 10:00 AM EST
8Monday10/07/2023xx● Friday 7/7 @ 1:00 PM EST
9Tuesday11/07/2023xx● Monday 7/10 @ 11:00 AM EST
10Wednesday12/07/2023x● Monday 7/10 @ 4:00 PM EST
11Thursday13/07/2023● Tuesday 7/11 @ 9:00 AM EST
12Friday14/07/2023● Tuesday 7/11 @ 2:00 PM EST
13Saturday15/07/2023● Wednesday 7/12 @ 10:00 AM EST
14Sunday16/07/2023
15Monday17/07/2023
16Tuesday18/07/2023
17Wednesday19/07/2023
18Thursday20/07/2023
19Friday21/07/2023
20Saturday22/07/2023
21Sunday23/07/2023
22Monday24/07/2023
23Tuesday25/07/2023
24Wednesday26/07/2023
25Thursday27/07/2023
26Friday28/07/2023
27Saturday29/07/2023
28Sunday30/07/2023
29Monday31/07/2023
Sheet1
Cell Formulas
RangeFormula
A4:A29A4=VLOOKUP(WEEKDAY(B4),$P$5:$Q$11,2,FALSE)
B4B4=TODAY()
B5:B29B5=B4+1
M4:M13M4=LET(d,TOCOL(IF(C4:K160="x",B2&" "&A4:A160&" "&TEXT(B4:B160,"m/d")&" @ ",1/0),2)&TOCOL(IF(C4:K160="x",C3:K3&" "&M3,1/0),2),FILTER(d,NOT(ISNA(d))))
Dynamic array formulas.
 
Upvote 1
Solution
Or... I have made this to complicated (common) and a date+time format would work! I am open to either. Thanks!
 
Upvote 0
How about
AvailableDates.xlsx
ABCDEFGHIJKLM
1
2Available
3Date9:00 AM10:00 AM11:00 AM12:00 PM1:00 PM2:00 PM3:00 PM4:00 PM5:00 PMEST
4Thursday06/07/2023xxx● Thursday 7/6 @ 9:00 AM EST
5Friday07/07/2023xx● Thursday 7/6 @ 12:00 PM EST
6Saturday08/07/2023● Thursday 7/6 @ 3:00 PM EST
7Sunday09/07/2023● Friday 7/7 @ 10:00 AM EST
8Monday10/07/2023xx● Friday 7/7 @ 1:00 PM EST
9Tuesday11/07/2023xx● Monday 7/10 @ 11:00 AM EST
10Wednesday12/07/2023x● Monday 7/10 @ 4:00 PM EST
11Thursday13/07/2023● Tuesday 7/11 @ 9:00 AM EST
12Friday14/07/2023● Tuesday 7/11 @ 2:00 PM EST
13Saturday15/07/2023● Wednesday 7/12 @ 10:00 AM EST
14Sunday16/07/2023
15Monday17/07/2023
16Tuesday18/07/2023
17Wednesday19/07/2023
18Thursday20/07/2023
19Friday21/07/2023
20Saturday22/07/2023
21Sunday23/07/2023
22Monday24/07/2023
23Tuesday25/07/2023
24Wednesday26/07/2023
25Thursday27/07/2023
26Friday28/07/2023
27Saturday29/07/2023
28Sunday30/07/2023
29Monday31/07/2023
Sheet1
Cell Formulas
RangeFormula
A4:A29A4=VLOOKUP(WEEKDAY(B4),$P$5:$Q$11,2,FALSE)
B4B4=TODAY()
B5:B29B5=B4+1
M4:M13M4=LET(d,TOCOL(IF(C4:K160="x",B2&" "&A4:A160&" "&TEXT(B4:B160,"m/d")&" @ ",1/0),2)&TOCOL(IF(C4:K160="x",C3:K3&" "&M3,1/0),2),FILTER(d,NOT(ISNA(d))))
Dynamic array formulas.
I will give this a try. Thanks!
 
Upvote 0
This solution is extraordinary, like I'm watching the Excel Olympics. I never in my dreams thought that this could be accomplished with formulas.

fluffismyhero

Jim
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
For anyone who may search and find this post at a later date, I made one small modification to Fluff's excellent formula. When I copied and pasted the original formula into another sheet, the time formats did not display correctly. Here's the updated formula, pasted here as a picture so that I could identify the updated section in red font.

1688659531908.png
 
Upvote 0

Forum statistics

Threads
1,223,929
Messages
6,175,457
Members
452,643
Latest member
gjcase

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