Identify closest date in the past on multiple criteria

jacquesB

New Member
Joined
Jan 4, 2016
Messages
44
Hi everyone

I am trying to count some averages but I need to create a dummy for some customer visits that should not count in the average.

I want to mark the entries where the closest date in the past where we have visited a customer on a day 6 or 7 in the past with a "No" in column E.
For example customer 1 that was visited on day 7 (March 5th) should be marked with a "No" on March 1st.

I hope that someone can see a solution.

Thank you :)

ABCDE
1Customer IDVisit dateDayTime spent Should count in average?
252. marts 201740,4Yes
356. marts 201710,8Yes
455. marts 201770,4Yes
543. marts 201750,6No
642. marts 201740,3Yes
746. marts 201710,6Yes
8410. marts 201750,5Yes
931. marts 201730,1Yes
1039. marts 201740,7Yes
1123. marts 201750,1Yes
1222. marts 201740,9Yes
1323. marts 201750,2Yes
1425. marts 201770,0No
1515. marts 201770,0No
1611. marts 201730,8No
1713. marts 201750,6Yes
1814. marts 201760,0No
19111. marts 201760,0No
2016. marts 201710,2Yes
2118. marts 201730,2No

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Ark1
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,215,351
Messages
6,124,445
Members
449,160
Latest member
nikijon

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