Hi - I am using Excel 2013. I have tried Consolidated Data but it just adds the dates.
I have created the "Beginning" and "End" tables below as an example. Is it possible to have a VBA code that accomplishes this? Starting with the Beginning table, find the duplicated values in Column 1. From there, add the values in Column 3 for those duplicate rows. Then find the row from those duplicate rows which has the most recent date and keep that row.
The end result is the End table. One row for each of the duplicates which has the summed value, and the most recent date (all other data would simply flow from the row selected with the most recent date). I hope that made sense.
See Below:
[TABLE="width: 491"]
<tbody>[TR]
[TD]Beginning[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Opp+Lvl6[/TD]
[TD]SaaS Opp #[/TD]
[TD]Amount[/TD]
[TD]Level 6[/TD]
[TD]Level 7[/TD]
[TD]Is it in SW Fcst[/TD]
[TD]Date Updated[/TD]
[/TR]
[TR]
[TD]A1[/TD]
[TD]A[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]1/3/2016[/TD]
[/TR]
[TR]
[TD]B1[/TD]
[TD]B[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]5/1/2016[/TD]
[/TR]
[TR]
[TD]B1[/TD]
[TD]C[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]10/5/2016[/TD]
[/TR]
[TR]
[TD]C2[/TD]
[TD]C[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]11/1/2016[/TD]
[/TR]
[TR]
[TD]A1[/TD]
[TD]A[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]5/5/2015[/TD]
[/TR]
[TR]
[TD]D1[/TD]
[TD]D[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]11/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 491"]
<tbody>[TR]
[TD="colspan: 3"]End result after Macro[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Opp+Lvl6[/TD]
[TD]SaaS Opp #[/TD]
[TD]Amount[/TD]
[TD]Level 6[/TD]
[TD]Level 7[/TD]
[TD]Is it in SW Fcst[/TD]
[TD]Date Updated[/TD]
[/TR]
[TR]
[TD]A1[/TD]
[TD]A[/TD]
[TD="align: right"]110[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]1/3/2016[/TD]
[/TR]
[TR]
[TD]B1[/TD]
[TD]C[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]10/5/2016[/TD]
[/TR]
[TR]
[TD]C2[/TD]
[TD]C[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]11/1/2016[/TD]
[/TR]
[TR]
[TD]D1[/TD]
[TD]D[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]11/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
I appreciate everyone's assistance here. I will keep trying with the hopes this can be figured out.
I have created the "Beginning" and "End" tables below as an example. Is it possible to have a VBA code that accomplishes this? Starting with the Beginning table, find the duplicated values in Column 1. From there, add the values in Column 3 for those duplicate rows. Then find the row from those duplicate rows which has the most recent date and keep that row.
The end result is the End table. One row for each of the duplicates which has the summed value, and the most recent date (all other data would simply flow from the row selected with the most recent date). I hope that made sense.
See Below:
[TABLE="width: 491"]
<tbody>[TR]
[TD]Beginning[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Opp+Lvl6[/TD]
[TD]SaaS Opp #[/TD]
[TD]Amount[/TD]
[TD]Level 6[/TD]
[TD]Level 7[/TD]
[TD]Is it in SW Fcst[/TD]
[TD]Date Updated[/TD]
[/TR]
[TR]
[TD]A1[/TD]
[TD]A[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]1/3/2016[/TD]
[/TR]
[TR]
[TD]B1[/TD]
[TD]B[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]5/1/2016[/TD]
[/TR]
[TR]
[TD]B1[/TD]
[TD]C[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]10/5/2016[/TD]
[/TR]
[TR]
[TD]C2[/TD]
[TD]C[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]11/1/2016[/TD]
[/TR]
[TR]
[TD]A1[/TD]
[TD]A[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]5/5/2015[/TD]
[/TR]
[TR]
[TD]D1[/TD]
[TD]D[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]11/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 491"]
<tbody>[TR]
[TD="colspan: 3"]End result after Macro[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Opp+Lvl6[/TD]
[TD]SaaS Opp #[/TD]
[TD]Amount[/TD]
[TD]Level 6[/TD]
[TD]Level 7[/TD]
[TD]Is it in SW Fcst[/TD]
[TD]Date Updated[/TD]
[/TR]
[TR]
[TD]A1[/TD]
[TD]A[/TD]
[TD="align: right"]110[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]1/3/2016[/TD]
[/TR]
[TR]
[TD]B1[/TD]
[TD]C[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]10/5/2016[/TD]
[/TR]
[TR]
[TD]C2[/TD]
[TD]C[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]11/1/2016[/TD]
[/TR]
[TR]
[TD]D1[/TD]
[TD]D[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]Y[/TD]
[TD="align: right"]11/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
I appreciate everyone's assistance here. I will keep trying with the hopes this can be figured out.