Resetting Dates

rwmill9716

Active Member
Joined
May 20, 2006
Messages
493
Office Version
  1. 2013
Platform
  1. Windows
I automatically collect data in Columns D through G for two Factors. I need formula for Columns H and I that match the Factor 2 Date with the Factor 1 Date (Time not important) to begin copying. Here, Rows 6 through 16 would be blank and Row 17 matches the 8/12/16 Date and Factor 2. Note, Row 17 is where I start copying the data in Columns C and D.




Excel 2012
DEFGHI
5Date/TimeFactor 1Date/TimeFactor 2Date/TimeReset Factor 2
68/1/2016 0:55:0056.254001628/12/2016 12:55:4555.54600143
78/1/2016 22:05:4356.263999948/13/2016 0:03:0056.10800171
88/2/2016 23:00:0056.169998178/14/2016 0:03:0056.2120018
98/3/2016 22:00:0056.299999248/15/2016 0:00:0456.09799957
108/4/2016 23:00:0056.273998268/16/2016 6:00:3656.15000153
118/6/2016 0:16:1156.061000828/17/2016 0:21:0955.92100143
128/6/2016 23:48:2256.228000648/17/2016 22:22:0156.11800003
138/7/2016 22:30:0056.228000648/18/2016 23:54:2456.09199905
148/8/2016 23:30:0056.228000648/19/2016 23:15:0055.97299957
158/10/2016 0:03:4456.103000648/20/2016 22:50:0056.18099976
168/10/2016 23:40:0155.916000378/21/2016 23:20:0056.18099976
178/12/2016 1:00:0056.237998968/23/2016 0:05:0056.273998268/12/2016 12:55:4555.54600143
188/13/2016 0:02:0056.150001538/24/2016 0:05:0056.165000928/13/2016 0:03:0056.10800171
198/14/2016 0:02:0056.133998878/24/2016 21:00:0056.320999158/14/2016 0:03:0056.2120018
208/15/2016 0:01:0056.103000648/25/2016 22:30:0056.299999248/15/2016 0:00:0456.09799957
218/15/2016 22:47:5256.034999858/26/2016 22:47:1956.368000038/16/2016 6:00:3656.15000153
228/17/2016 0:20:4356.004001628/27/2016 22:36:1556.299999248/17/2016 0:21:0955.92100143
Sheet4
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
i can only see a way to use 2 helper columns that turn the date/time to date only using INT()
then you can use a lookup to do what you want there maybe a simplier way

Would added 2 more columns work OK
say
column J INT(A2)
column K INT(F2)

Now you can use for
H
Index($F$2:$F$100, match(J2, $K$2:$K$100,0))

I
Index($G$2:$G$100, match(J2, $K$2:$K$100,0))
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
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