Hi,
I'm trying to formula that returns a cell value from a column that's adjacent to the first and last instance of my reference cell. Here's a sample of the data:
[TABLE="width: 334"]
<tbody>[TR]
[TD="align: center"]Date[/TD]
[TD="align: center"]Order #[/TD]
[TD="align: center"]Sequence[/TD]
[/TR]
[TR]
[TD="align: right"]3/15/2017[/TD]
[TD="align: right"]301330920000[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD="align: right"]12/13/2018[/TD]
[TD="align: right"]301358930000[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD="align: right"]12/13/2018[/TD]
[TD="align: right"]301358950000[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD="align: right"]1/9/2017[/TD]
[TD="align: right"]301371180000[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2017[/TD]
[TD="align: right"]301371180000[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2017[/TD]
[TD="align: right"]301371180000[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2017[/TD]
[TD="align: right"]301371790000[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD="align: right"]1/3/2017[/TD]
[TD="align: right"]301371980000[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD="align: right"]1/3/2017[/TD]
[TD="align: right"]301371980000[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD="align: right"]1/5/2017[/TD]
[TD="align: right"]301371980000[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD="align: right"]1/5/2017[/TD]
[TD="align: right"]301371980000[/TD]
[TD="align: right"]70[/TD]
[/TR]
[TR]
[TD="align: right"]1/5/2017[/TD]
[TD="align: right"]301371980000[/TD]
[TD="align: right"]80[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2017[/TD]
[TD="align: right"]301372660000[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2017[/TD]
[TD="align: right"]301372660000[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2017[/TD]
[TD="align: right"]301372660000[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD="align: right"]1/9/2017[/TD]
[TD="align: right"]301372660000[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD="align: right"]1/16/2017[/TD]
[TD="align: right"]301372660000[/TD]
[TD="align: right"]70[/TD]
[/TR]
[TR]
[TD="align: right"]1/3/2017[/TD]
[TD="align: right"]301373180000[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD="align: right"]1/11/2017[/TD]
[TD="align: right"]301373180000[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD="align: right"]1/11/2017[/TD]
[TD="align: right"]301373180000[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD="align: right"]1/16/2017[/TD]
[TD="align: right"]301373180000[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD="align: right"]1/17/2017[/TD]
[TD="align: right"]301373180000[/TD]
[TD="align: right"]70[/TD]
[/TR]
[TR]
[TD="align: right"]1/19/2017[/TD]
[TD="align: right"]301373180000[/TD]
[TD="align: right"]80[/TD]
[/TR]
</tbody>[/TABLE]
Ultimately what I'm trying to do is get the delta between the first sequence that appears for an order # and the last sequence. I have no idea how to make this happen.
For instance, in this data set, I'd want to find the date of first instance of 301373180000 (Sequence 10 on 1/3/2017) and the last instance it appears (sequence 80 on 1/19/2017).
I've thought about using a sequential SUMIF statement that counts the instance of the WO and then take the MAX and MIN values using a separate table where I copy out all the first instances of an order # using VLOOKUP or INDEX/MATCH but I'm not Excel savvy enough to make it work. Also, my data set is roughly 20,000 rows and there are a bunch more columns so Excel keeps crashing when I try to apply the formulas to the entire table. It's frustrating. Any help would be appreciated.
Thank you.
I'm trying to formula that returns a cell value from a column that's adjacent to the first and last instance of my reference cell. Here's a sample of the data:
[TABLE="width: 334"]
<tbody>[TR]
[TD="align: center"]Date[/TD]
[TD="align: center"]Order #[/TD]
[TD="align: center"]Sequence[/TD]
[/TR]
[TR]
[TD="align: right"]3/15/2017[/TD]
[TD="align: right"]301330920000[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD="align: right"]12/13/2018[/TD]
[TD="align: right"]301358930000[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD="align: right"]12/13/2018[/TD]
[TD="align: right"]301358950000[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD="align: right"]1/9/2017[/TD]
[TD="align: right"]301371180000[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2017[/TD]
[TD="align: right"]301371180000[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2017[/TD]
[TD="align: right"]301371180000[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2017[/TD]
[TD="align: right"]301371790000[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD="align: right"]1/3/2017[/TD]
[TD="align: right"]301371980000[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD="align: right"]1/3/2017[/TD]
[TD="align: right"]301371980000[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD="align: right"]1/5/2017[/TD]
[TD="align: right"]301371980000[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD="align: right"]1/5/2017[/TD]
[TD="align: right"]301371980000[/TD]
[TD="align: right"]70[/TD]
[/TR]
[TR]
[TD="align: right"]1/5/2017[/TD]
[TD="align: right"]301371980000[/TD]
[TD="align: right"]80[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2017[/TD]
[TD="align: right"]301372660000[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2017[/TD]
[TD="align: right"]301372660000[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD="align: right"]1/6/2017[/TD]
[TD="align: right"]301372660000[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD="align: right"]1/9/2017[/TD]
[TD="align: right"]301372660000[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD="align: right"]1/16/2017[/TD]
[TD="align: right"]301372660000[/TD]
[TD="align: right"]70[/TD]
[/TR]
[TR]
[TD="align: right"]1/3/2017[/TD]
[TD="align: right"]301373180000[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD="align: right"]1/11/2017[/TD]
[TD="align: right"]301373180000[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD="align: right"]1/11/2017[/TD]
[TD="align: right"]301373180000[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD="align: right"]1/16/2017[/TD]
[TD="align: right"]301373180000[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD="align: right"]1/17/2017[/TD]
[TD="align: right"]301373180000[/TD]
[TD="align: right"]70[/TD]
[/TR]
[TR]
[TD="align: right"]1/19/2017[/TD]
[TD="align: right"]301373180000[/TD]
[TD="align: right"]80[/TD]
[/TR]
</tbody>[/TABLE]
Ultimately what I'm trying to do is get the delta between the first sequence that appears for an order # and the last sequence. I have no idea how to make this happen.
For instance, in this data set, I'd want to find the date of first instance of 301373180000 (Sequence 10 on 1/3/2017) and the last instance it appears (sequence 80 on 1/19/2017).
I've thought about using a sequential SUMIF statement that counts the instance of the WO and then take the MAX and MIN values using a separate table where I copy out all the first instances of an order # using VLOOKUP or INDEX/MATCH but I'm not Excel savvy enough to make it work. Also, my data set is roughly 20,000 rows and there are a bunch more columns so Excel keeps crashing when I try to apply the formulas to the entire table. It's frustrating. Any help would be appreciated.
Thank you.