Look Up with If Statement formula

jevi

Active Member
Joined
Apr 13, 2010
Messages
339
Office Version
  1. 2016
Platform
  1. Windows
05/11/2018Ann01/11/2018 -06/11/2018
AnnAnn01/12/2018 -02/12/2018
Sam24/12/2018 -24/12/2018
Sam28/12/2018 -28/12/2018

<colgroup><col><col span="2"><col span="2"></colgroup><tbody>
</tbody>

=LOOKUP(3;2/($D$1:$D$4<=A1)/($E$1:$E$4>=A1);$C$1:$C$4)

Hi all,

I am looking for a formula that needs to check if the date 05/11/2018 is in the whole range starting from 01/11/2018 to 28/12/2018 and if the name below the date 05/11/2018 matches that in the column name.

I tried the above formula but is not working.

Thank you for your help.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try


A
B
C
D
E
1
05/11/2018​
Ann​
01/11/2018​
06/11/2018​
2
Ann​
Ann​
01/12/2018​
02/12/2018​
3
Sam​
24/12/2018​
24/12/2018​
4
Sam​
28/12/2018​
28/12/2018​

Formula in A2
=INDEX(C$1:C$4,MATCH(1,INDEX((E$1:E$4>=A1)*(A1>=D$1:D$4),),0))

Hope this helps

M.
 
Upvote 0
Thank you Marcello, but your formula gives the same result as mine:)...but I would like the formula to be in A3 and give the result only if A2 is in column C and also the date A1 is in the range of dates. So need to have two conditions matched. Like put a Yes maybe in A3 if A2 is in column C1:C4 and A1 is in the range D1:E4
 
Upvote 0
It works great:). Just the result I was hoping for. It is a pitty though that Countifs doesn't work with closed workbook but I will copy the data to the same book where I need to use the formula.

Thank you so much for your help:)
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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