index vs aggergate

Status
Not open for further replies.

dmheller

Board Regular
Joined
May 26, 2017
Messages
142
Office Version
  1. 365
All,
I have 2 equations
this first
=INDEX($E$6:$E$42184, SMALL(IF(ISNUMBER(MATCH($Q$6:$Q$42184,$W$2, 0)), MATCH(ROW($Q$6:$Q$42184), ROW($Q$6:$Q$42184)), ""), ROWS($A$1:A1)))
the 2nd
=IFERROR(AGGREGATE(15,6,$E$6:$E$42184/($E$6:$E$42184>(N(Z1)+"04:00:00"))/($Q$6:$Q$42184=$W$2),ROWS(Z$2:Z2)),"")
The idea is that E is a date and time and q is either a 1 or 0.
neither equation gives what i am looking for. the index returns every time q has a 1 and i want to find the first 1 then skip 4 hours and find the next. The 2nd equation misses some as you can see below 9/1/20 &:34 was missed. Does anyone know an equation that would fine 9/1/20 3:56am then skip all vales of 1 till 4 hours pass then record 9/1/20 1:33pm then skip 4 hours again and find the next 9/1/20 7:34 and so on.
thansk

9/1/20 3:56:00 AM​
9/1/20 3:56:00 AM​
9/1/20 4:04:00 AM​
9/1/20 1:41:00 PM​
9/1/20 4:14:00 AM​
9/2/20 2:39:00 AM​
9/1/20 1:33:00 PM​
9/2/20 4:52:00 PM​
9/1/20 1:41:00 PM​
9/3/20 7:43:00 AM​
9/1/20 7:34:00 PM​
9/4/20 1:20:00 PM​
9/1/20 7:40:00 PM​
9/5/20 11:57:00 PM​
9/2/20 2:39:00 AM​
9/7/20 5:38:00 AM​
9/2/20 2:46:00 AM​
9/8/20 1:02:00 PM​
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Duplicate skipping time in equation

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

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