LOOKUP start and enddate

prw79

New Member
Joined
Aug 5, 2022
Messages
18
Office Version
  1. 2019
Platform
  1. Windows
I have this formula: =LOOKUP(2;1/($D$2:$D$15<=G33)/($E$2:$E$15>=G33);$B$2:$B$15) to return a name when he/she is not available between to dates. Sometimes the given return date(G33) falls within multiple date ranges, resulting in more than 1 names. How can i make sure the formula gives multiple returns?
Thanks in advance.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
If you want multiple results from a single formula in a single cell then you could try something on the lines of
Excel Formula:
=TEXTJOIN(", ";1;FILTER($B$2:$B$15;($D$2:$D$15<=G33)*($E$2:$E$15>=G33);"No match"))
 
Upvote 0
Solution
If you want multiple results from a single formula in a single cell then you could try something on the lines of
Excel Formula:
=TEXTJOIN(", ";1;FILTER($B$2:$B$15;($D$2:$D$15<=G33)*($E$2:$E$15>=G33);"No match"))
Thanks! I will try this when possible. And what if i want the results to be in cells apart, lets say from a1 to a15?
 
Upvote 0
Using just the FILTER function without TEXTJOIN will do that.
 
Upvote 0

Forum statistics

Threads
1,215,749
Messages
6,126,656
Members
449,326
Latest member
asp123

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