Reference look up with Date Associations

kparadise

Board Regular
Joined
Aug 13, 2015
Messages
186
Hello,

On [Sheet 1] I have a listing of certain Customers, Customer IDs, and Times within my population. On [Sheet 2] I have a complete listing of all the Customer IDs and an Event Time.

[Sheet 1]

Customer
Customer ID
Time (TIMESTAMP)
Looking to see if a Event Time occurred within 180 days prior to the [Time] column (column C).
Looking to see if a Event Time occurred within 4 days after the [Time] column (column C).
Mr X
1
12/13/2017 9:21 AM
Y
N
Mr XX
2
12/13/2017 10:33 AM
N
Y
Mrs Y
3
12/13/2017 8:56 PM
N
Y
Ms Z
4
12/13/2017 2:31 AM
Y
Y

<tbody>
</tbody>

[Sheet 2]

Sheet 2 contains every single record of each of the four Customer IDs and the Event Time.

Customer ID
Event Time
1
12/13/2017 9:20 AM
1
8/4/2016 10:22 AM
1
6/12/2017 5:35 PM
2
1/1/2018 11:24 AM
2
12/15/2017 8:59 PM
2
2/12/2018 6:35 AM
3
12/14/2017 4:55 PM
4
9/1/2017 7:33 AM
4
12/16/2017 8:10 AM

<tbody>
</tbody>

So what I am asking is to create to column on [Sheet 1] - the ones with bold headers. Look at each record on [Sheet 1]; and tell me if, for that said Customer ID, they had an event happen within 180 days prior to the [Time] column. Also, look at each record on [Sheet 1]; and tell me if, for that said Customer ID, they had an even happen within 4 days after the [Time] column.

I hope this make sense.... Time is a factor as well.
 

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

Forum statistics

Threads
1,214,415
Messages
6,119,381
Members
448,888
Latest member
Arle8907

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