Optimal lookup formula to return a list of available names

emergguy

New Member
Joined
Sep 3, 2023
Messages
8
Office Version
  1. 365
Platform
  1. MacOS
I am looking for the best formula to assist in scheduling "available" vs "not available" lists for particular dates
Book1
ABCDE
1Who?19-Jan20-Jan21-Jan
2Anderson
3ArjangContractContract
4BainsyOffOff
5Becha
6Bhimano
7Brind
8ByrneSelfSchedSelfSchedSelfSched
9Cain
10Corter
11
12AvailableAvailableAvailable
13
14Anderson
15Becha
16Bhimano
17Brind
18Cain
19Corter
20
21Not AvailableNot AvailableNot Available
22
23Arjang
24Bainsy
25Byrne
26
27
Sheet1


  • A1:D10 are auto-populated by a form.
  • I am looking to reproduce the results of column B such that if an entry under a particular date is blank, the corresponding name goes into the 'available' list (ie under B12)
  • Conversely, if an entry under a particular date is not blank, the corresponding name goes into the 'not available' list (under B21 or similar)
  • Ideally these generated lists are dynamic
I have been searching many options, but I am having difficulty making XLOOKUP work.

Any help is greatly appreciated as the Form results involve 100 names and 100 dates.

Thanks!
 

Attachments

  • MrExcel.jpg
    MrExcel.jpg
    76.9 KB · Views: 5

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Book1
ABCD
1Who?19-Jan20-Jan21-Jan
2Anderson
3ArjangContractContract
4BainsyOffOff
5Becha
6Bhimano
7Brind
8ByrneSelfSchedSelfSchedSelfSched
9Cain
10Corter
11
12AvailableAvailableAvailable
13AndersonAndersonAnderson
14BechaBainsyArjang
15BhimanoBechaBecha
16BrindBhimanoBhimano
17CainBrindBrind
18CorterCainCain
19 CorterCorter
20
21Not AvailableNot AvailableNot Available
22ArjangArjangBainsy
23BainsyByrneByrne
24Byrne  
25   
26   
27   
28   
Sheet1
Cell Formulas
RangeFormula
B13:D19B13=IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($A$2:$A$10)/(B$2:B$10=""),ROWS($1:1))),"")
B22:D28B22=IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($A$2:$A$10)/(B$2:B$10<>""),ROWS($1:1))),"")
 
Upvote 0
Another option
Fluff.xlsm
ABCD
1Who?19-Jan20-Jan21-Jan
2Anderson
3ArjangContractContract
4BainsyOffOff
5Becha
6Bhimano
7Brind
8ByrneSelfSchedSelfSchedSelfSched
9Cain
10Corter
11
12AvailableAvailableAvailable
13
14AndersonAndersonAnderson
15BechaBainsyArjang
16BhimanoBechaBecha
17BrindBhimanoBhimano
18CainBrindBrind
19CorterCainCain
20CorterCorter
21
22
23Not AvailableNot AvailableNot Available
24
25ArjangArjangBainsy
26BainsyByrneByrne
27Byrne
28
Data
Cell Formulas
RangeFormula
B14:B19,C14:D20B14=FILTER($A$2:$A$10,B2:B10="")
B25:B27,C25:D26B25=FILTER($A$2:$A$10,B2:B10<>"")
Dynamic array formulas.
 
Upvote 0
Solution
Book1
ABCD
1Who?19-Jan20-Jan21-Jan
2Anderson
3ArjangContractContract
4BainsyOffOff
5Becha
6Bhimano
7Brind
8ByrneSelfSchedSelfSchedSelfSched
9Cain
10Corter
11
12AvailableAvailableAvailable
13AndersonAndersonAnderson
14BechaBainsyArjang
15BhimanoBechaBecha
16BrindBhimanoBhimano
17CainBrindBrind
18CorterCainCain
19 CorterCorter
20
21Not AvailableNot AvailableNot Available
22ArjangArjangBainsy
23BainsyByrneByrne
24Byrne  
25   
26   
27   
28   
Sheet1
Cell Formulas
RangeFormula
B13:D19B13=IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($A$2:$A$10)/(B$2:B$10=""),ROWS($1:1))),"")
B22:D28B22=IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($A$2:$A$10)/(B$2:B$10<>""),ROWS($1:1))),"")
Beautiful.
Clearly I need to learn more about these functions and then will try and dissect the formula.
Thank you!
 
Upvote 0
Another option
Fluff.xlsm
ABCD
1Who?19-Jan20-Jan21-Jan
2Anderson
3ArjangContractContract
4BainsyOffOff
5Becha
6Bhimano
7Brind
8ByrneSelfSchedSelfSchedSelfSched
9Cain
10Corter
11
12AvailableAvailableAvailable
13
14AndersonAndersonAnderson
15BechaBainsyArjang
16BhimanoBechaBecha
17BrindBhimanoBhimano
18CainBrindBrind
19CorterCainCain
20CorterCorter
21
22
23Not AvailableNot AvailableNot Available
24
25ArjangArjangBainsy
26BainsyByrneByrne
27Byrne
28
Data
Cell Formulas
RangeFormula
B14:B19,C14:D20B14=FILTER($A$2:$A$10,B2:B10="")
B25:B27,C25:D26B25=FILTER($A$2:$A$10,B2:B10<>"")
Dynamic array formulas.
Whoa.
I didn't know about the FILTER function - it seems very useful.
Love it. Much appreciated.
 
Upvote 0
Glad we could help & thanks for the feedback.
In future please do not mark your post as the solution. You need to mark the post that helped you.
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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