GreggomyEggo
New Member
- Joined
- Jun 6, 2008
- Messages
- 6
I'm working from a document that contains two tabs; starts and stops. The starts tab details an index of the month/year of when a widget started. The stops tab details the same for when the widget stopped. I'm currently using a Index Match IF formula to attempt to pull the start into the stop so that I can then calculate the time between the start and stop, though my formula isn't pulling in all of the data I need. The original data has ~12k rows in each starts and stops and contains varying numbers of starts and stops for each widget id. If my array were to work properly, the second 19 in "Current Formula Result" would return the number 34 from the start index.
[TABLE="width: 983"]
<tbody>[TR]
[TD]WidgetID[/TD]
[TD]StartIndex[/TD]
[TD][/TD]
[TD]WidgetID[/TD]
[TD]StopIndex[/TD]
[TD]Current Formula Result[/TD]
[TD]Current Formula[/TD]
[/TR]
[TR]
[TD]555555[/TD]
[TD] 19[/TD]
[TD][/TD]
[TD]555555[/TD]
[TD]2[/TD]
[TD][/TD]
[TD]{=IFERROR(INDEX($B$2:$B$3,MATCH(D2,IF(E2>$B$2:$B$3,$A$2:$A$3),0)),"")}[/TD]
[/TR]
[TR]
[TD]555555[/TD]
[TD] 34[/TD]
[TD][/TD]
[TD]555555[/TD]
[TD]30[/TD]
[TD]19[/TD]
[TD]{=IFERROR(INDEX($B$2:$B$3,MATCH(D3,IF(E3>$B$2:$B$3,$A$2:$A$3),0)),"")}[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]555555[/TD]
[TD]51[/TD]
[TD]19[/TD]
[TD]{=IFERROR(INDEX($B$2:$B$3,MATCH(D4,IF(E4>$B$2:$B$3,$A$2:$A$3),0)),"")}[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 983"]
<tbody>[TR]
[TD]WidgetID[/TD]
[TD]StartIndex[/TD]
[TD][/TD]
[TD]WidgetID[/TD]
[TD]StopIndex[/TD]
[TD]Current Formula Result[/TD]
[TD]Current Formula[/TD]
[/TR]
[TR]
[TD]555555[/TD]
[TD] 19[/TD]
[TD][/TD]
[TD]555555[/TD]
[TD]2[/TD]
[TD][/TD]
[TD]{=IFERROR(INDEX($B$2:$B$3,MATCH(D2,IF(E2>$B$2:$B$3,$A$2:$A$3),0)),"")}[/TD]
[/TR]
[TR]
[TD]555555[/TD]
[TD] 34[/TD]
[TD][/TD]
[TD]555555[/TD]
[TD]30[/TD]
[TD]19[/TD]
[TD]{=IFERROR(INDEX($B$2:$B$3,MATCH(D3,IF(E3>$B$2:$B$3,$A$2:$A$3),0)),"")}[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]555555[/TD]
[TD]51[/TD]
[TD]19[/TD]
[TD]{=IFERROR(INDEX($B$2:$B$3,MATCH(D4,IF(E4>$B$2:$B$3,$A$2:$A$3),0)),"")}[/TD]
[/TR]
</tbody>[/TABLE]