Lookup/Match Based on Multiple Details (non-VBA)

default_name

Board Regular
Joined
May 16, 2018
Messages
180
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hey guys,

I am trying to set up a spreadsheet to fill in time slots based on day and time information.
There are two sheets in the workbook (Calendar and Log)

Here is how I have it set up:
The name of this sheet is Calendar
ABC
1Wednesday (August 19, 2020)Thursday (August 20, 2020)
2900 AM
3940 AM
41020 AM
51100 AM
61140 AM

The name of this sheet is Log
ABCDE
1Family NamePhone NumberScheduled DayScheduled Time
2Smith619-555-7600Wednesday (August 19, 2020)1020 AM - 1100 AM
3Jones619-555-2432Wednesday (August 19, 2020)900 AM - 940 AM
4Johnson600-354-8434Thursday (August 20, 2020)900 AM - 940 AM
5Wilkins685-879-4546Wednesday (August 19, 2020)940 AM - 1020 AM
6Cortez619-856-9952Thursday (August 20, 2020)1140 AM - 1220 PM

I would like the Calendar sheet to fill in the correct cells of the scheduled appointments, based on the data found in the Log sheet.
Basically, given the data that is currently in the Log sheet, the Calendar sheet should end up looking like this:
ABC
1Wednesday (August 19, 2020)Thursday (August 20, 2020)
2900 AMJones
619-555-2432
Johnson
600-354-8434
3940 AMWilkins
685-879-4546
41020 AMSmith
619-555-7600
51100 AM
61140 AMCortez
619-856-9952

Is there some sort of IF, LOOKUP or MATCH function that I can use in the cells of the Calendar sheet?
I tried using various mixtures of LOOKUP statements, AND statements, and IF statements, but it quickly became really complicated.
The workbook cannot be macro-enabled, so I am looking for a NON-VBA solution.
I hope this makes sense. Let me know if I need to clarify/simplify anything.

You guys are the best! 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.
I'm not sure whether I will have an answer but in any case a few questions are needed to clarify what we are dealing with:
  1. Can you please update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
  2. Are the values in B1, C1, .. of Calendar and column D of Log actual dates (Numbers) formatted to look like they do or are they Text values
  3. Are the values in column A of Calendar actual times (Numbers) formatted to look like they do or are they Text values
  4. Will there ever be more than one thing on at the same time on the same day?
  5. Will a scheduled time in column E of Log ever be more (or less) than 40 minutes?
I also suggest that you investigate XL2BB for providing sample data.
 
Upvote 0
I'm not sure whether I will have an answer but in any case a few questions are needed to clarify what we are dealing with:
  1. Can you please update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
  2. Are the values in B1, C1, .. of Calendar and column D of Log actual dates (Numbers) formatted to look like they do or are they Text values
  3. Are the values in column A of Calendar actual times (Numbers) formatted to look like they do or are they Text values
  4. Will there ever be more than one thing on at the same time on the same day?
  5. Will a scheduled time in column E of Log ever be more (or less) than 40 minutes?
I also suggest that you investigate XL2BB for providing sample data.
1. I use Excel 2016 (Mac) but the spreadsheet will also be used by 2016 (Windows)
2. The values are all text values
3. The values are all text values
4. There will never be more than one person per each day/time
5. Scheduled blocks will always be 40 minutes

Thanks
 
Upvote 0
Thanks for updating your profile and the clear answers to my questions. (y)

Try this copied across and down (after adjusting the ranges to cover the data in the Log sheet if 1000 rows is not suitable) and format these columns to 'Wrap Text'.

default_name 2020-08-09 1.xlsm
ABC
1Wednesday (August 19, 2020)Thursday (August 20, 2020)
2900 AMJones 619-555-2432Johnson 600-354-8434
3940 AMWilkins 685-879-4546 
41020 AMSmith 619-555-7600 
51100 AM  
61140 AM Cortez 619-856-9952
Calendar
Cell Formulas
RangeFormula
B2:C6B2=IFERROR(INDEX(Log!$A:$A,AGGREGATE(15,6,ROW(Log!$C$2:$C$1000)/((Log!$C$2:$C$1000=B$1)*(SEARCH($A2,Log!$D$2:$D$1000)=1)),1))&CHAR(10)&INDEX(Log!$B:$B,AGGREGATE(15,6,ROW(Log!$C$2:$C$1000)/((Log!$C$2:$C$1000=B$1)*(SEARCH($A2,Log!$D$2:$D$1000)=1)),1)),"")
 
Upvote 0
You're very welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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