Hello,
I've learned a lot from people smarter than myself on this forum, so I'm here to learn again.
Preface, I will try to be clear and concise, but there are several conditions and complications here:
I have a table (~70 columns, 500 rows and counting) that is exported from a system-generated CSV.
Unfortunately, the data in the table is both new and old (newest release, and older releases), so I would like to write a formula that will select all of the records (unique delivery date, delivery qty) for each part number, from ONLY the newest release (and delete / ignore all other records from older releases) From the trimmed/new data, I'll create a pivot table and be on my merry way. I could get the desired result manually by filtering so I see each part number one at a time, finding the highest number release, and deleting the all rows that don't have the highest release number. That's essentially where I am trying to get to. The tricky part is that the release numbers are different for each part number, so I can't just find one highest release number, I have to find the latest release number for EACH part number.
The relevant columns I need are Part Number, Delivery Date, Delivery Quantity, of which, I only want the rows from the latest release.
The table below shows a sample of the data I would find in the csv. I believe I have included enough data to show the variables that can occur.
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Release Date[/TD]
[TD]Release No.[/TD]
[TD]Part No.[/TD]
[TD]Delivery Date[/TD]
[TD]Delivery Qty[/TD]
[/TR]
[TR]
[TD]12/10
[/TD]
[TD]1[/TD]
[TD]A[/TD]
[TD]1/1[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]12/10[/TD]
[TD]1[/TD]
[TD]A[/TD]
[TD]1/3[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]12/10
[/TD]
[TD]17[/TD]
[TD]B[/TD]
[TD]1/1[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]12/11[/TD]
[TD]2[/TD]
[TD]A[/TD]
[TD]1/1[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]12/11
[/TD]
[TD]2[/TD]
[TD]A[/TD]
[TD]1/3[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]12/11[/TD]
[TD]18[/TD]
[TD]B[/TD]
[TD]1/5[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]12/11[/TD]
[TD]7[/TD]
[TD]C[/TD]
[TD]1/3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]12/12
[/TD]
[TD]3[/TD]
[TD]A[/TD]
[TD]1/3[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]12/12[/TD]
[TD]3[/TD]
[TD]A[/TD]
[TD]1/5[/TD]
[TD]15[/TD]
[/TR]
</tbody>[/TABLE]
Note: not every part has a new release every time I run the csv output, but I need to include all the data rows from whatever the most recent release was, not just the releases created today. I believe this is already accounted for by finding the highest release number for each part.
This would be the desired result from the table above:
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Release Date[/TD]
[TD]Release No.[/TD]
[TD]Part No.[/TD]
[TD]Delivery Date[/TD]
[TD]Delivery Qty[/TD]
[/TR]
[TR]
[TD]12/11[/TD]
[TD]18[/TD]
[TD]B[/TD]
[TD]1/5[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]12/11[/TD]
[TD]7[/TD]
[TD]C[/TD]
[TD]1/3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]12/12
[/TD]
[TD]3[/TD]
[TD]A[/TD]
[TD]1/3[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]12/12[/TD]
[TD]3[/TD]
[TD]A[/TD]
[TD]1/5[/TD]
[TD]15[/TD]
[/TR]
</tbody>[/TABLE]
I hope this makes sense, and I sure hope someone can help!
Thanks
I've learned a lot from people smarter than myself on this forum, so I'm here to learn again.
Preface, I will try to be clear and concise, but there are several conditions and complications here:
I have a table (~70 columns, 500 rows and counting) that is exported from a system-generated CSV.
Unfortunately, the data in the table is both new and old (newest release, and older releases), so I would like to write a formula that will select all of the records (unique delivery date, delivery qty) for each part number, from ONLY the newest release (and delete / ignore all other records from older releases) From the trimmed/new data, I'll create a pivot table and be on my merry way. I could get the desired result manually by filtering so I see each part number one at a time, finding the highest number release, and deleting the all rows that don't have the highest release number. That's essentially where I am trying to get to. The tricky part is that the release numbers are different for each part number, so I can't just find one highest release number, I have to find the latest release number for EACH part number.
The relevant columns I need are Part Number, Delivery Date, Delivery Quantity, of which, I only want the rows from the latest release.
The table below shows a sample of the data I would find in the csv. I believe I have included enough data to show the variables that can occur.
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Release Date[/TD]
[TD]Release No.[/TD]
[TD]Part No.[/TD]
[TD]Delivery Date[/TD]
[TD]Delivery Qty[/TD]
[/TR]
[TR]
[TD]12/10
[/TD]
[TD]1[/TD]
[TD]A[/TD]
[TD]1/1[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]12/10[/TD]
[TD]1[/TD]
[TD]A[/TD]
[TD]1/3[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]12/10
[/TD]
[TD]17[/TD]
[TD]B[/TD]
[TD]1/1[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]12/11[/TD]
[TD]2[/TD]
[TD]A[/TD]
[TD]1/1[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]12/11
[/TD]
[TD]2[/TD]
[TD]A[/TD]
[TD]1/3[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]12/11[/TD]
[TD]18[/TD]
[TD]B[/TD]
[TD]1/5[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]12/11[/TD]
[TD]7[/TD]
[TD]C[/TD]
[TD]1/3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]12/12
[/TD]
[TD]3[/TD]
[TD]A[/TD]
[TD]1/3[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]12/12[/TD]
[TD]3[/TD]
[TD]A[/TD]
[TD]1/5[/TD]
[TD]15[/TD]
[/TR]
</tbody>[/TABLE]
Note: not every part has a new release every time I run the csv output, but I need to include all the data rows from whatever the most recent release was, not just the releases created today. I believe this is already accounted for by finding the highest release number for each part.
This would be the desired result from the table above:
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Release Date[/TD]
[TD]Release No.[/TD]
[TD]Part No.[/TD]
[TD]Delivery Date[/TD]
[TD]Delivery Qty[/TD]
[/TR]
[TR]
[TD]12/11[/TD]
[TD]18[/TD]
[TD]B[/TD]
[TD]1/5[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]12/11[/TD]
[TD]7[/TD]
[TD]C[/TD]
[TD]1/3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]12/12
[/TD]
[TD]3[/TD]
[TD]A[/TD]
[TD]1/3[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]12/12[/TD]
[TD]3[/TD]
[TD]A[/TD]
[TD]1/5[/TD]
[TD]15[/TD]
[/TR]
</tbody>[/TABLE]
I hope this makes sense, and I sure hope someone can help!
Thanks