Lookup a name present between StartDate and EndDate in other sheet

reachsuresh87

New Member
Joined
Jul 10, 2017
Messages
2
Hi,
I need some Excel expert guidance on achieving a requirement as mentioned in attached sheet and also explained below:

From C5 to N8 in 'Required Format', for every user in ‘Required Format sheet’, we need to check whether the corresponding user in exists in ‘Usage’ sheet with dates between StartDate and EndDate.

I entered Yes or No from C5 to N8 for your reference




Week201710201711201712201713201714201715201716201717201718201719201720201721
StartDate02/13/1702/20/1702/27/1703/06/1703/13/1703/20/1703/27/1704/03/1704/10/1704/17/1704/24/1705/01/17
EndDate03/12/1703/19/1703/26/1704/02/1704/09/1704/16/1704/23/1704/30/1705/07/1705/14/1705/21/1705/28/17
Name
AA1Check if name in A5 present in 'Usage' sheet with dates between StartDate and EndDateNoNoNoNoYesYesYesYesYesYesYesYes
AA2Check if name in A6 present in 'Usage' sheet with dates between StartDate and EndDateYesYesYesYesNoNoNoNoNoNoNoNo
AA3Check if name in A7 present in 'Usage' sheet with dates between StartDate and EndDateYesYesYesNoNoNoNoNoYesYesYesYes
AA4Check if name in A8 present in 'Usage' sheet with dates between StartDate and EndDateNoNoNoNoNoNoNoYesYesYesYesYes

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


NameDay
AA22/13/2017
AA22/13/2017
AA22/23/2017
AA22/24/2017
AA22/24/2017
AA22/24/2017
AA33/1/2017
AA33/1/2017
AA23/7/2017
AA23/10/2017
AA14/6/2017
AA14/6/2017
AA44/25/2017
AA45/3/2017
AA35/7/2017
AA35/7/2017
AA35/7/2017
AA35/7/2017
AA15/22/2017

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
AA1 is listed with dates of 4/6/17, 4/6/17, 5/22/17 but you have Yes for 4/10-5/7, 4/17-5/14, and 4/24/17-5/21 I assume this is a typo.

A
B
C
D
E
F
G
H
I
J
K
L
M
N
1
2
201710
201711
201712
201713
201714
201715
201716
201717
201718
201719
201720
201721
3
2/13/2017
2/20/2017
2/27/2017
3/6/2017
3/13/2017
3/20/2017
3/27/2017
4/3/2017
4/10/2017
4/17/2017
4/24/2017
5/1/2017
4
3/12/2017
3/19/2017
3/26/2017
4/2/2017
4/9/2017
4/16/2017
4/23/2017
4/30/2017
5/7/2017
5/14/2017
5/21/2017
5/28/2017
5
AA1
No
No
No
No
Yes
Yes
Yes
Yes
No
No
No
Yes
6
AA2
Yes
Yes
Yes
Yes
No
No
No
No
No
No
No
No
7
AA3
Yes
Yes
Yes
No
No
No
No
No
Yes
Yes
Yes
Yes
8
AA4
No
No
No
No
No
No
No
Yes
Yes
Yes
Yes
Yes

<tbody>
</tbody>

In C5 and copy across and down
Code:
=IF(COUNTIFS(Usage!$B$2:$B$20,">="&C$3,Usage!$B$2:$B$20,"<="&C$4,Usage!$A$2:$A$20,$A5)>0,"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,216,762
Messages
6,132,578
Members
449,737
Latest member
naes

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