VBA to Update status Column based on recent date

edkawy

New Member
Joined
Apr 4, 2017
Messages
4
Hello , I need your help please

I have very large database file about 100000 rows and 20 column , sample example as follow


Column A( Name)
Column B( Date)
Column C ( Status)
15600-DP-C-01452
4/10/2017
Superseded
15600-DP-C-01452
5/11/2017
Current
15600-DP-C-01452
1/25/2017
Superseded
15600-DP-C-01452
2/28/2017
Superseded
15600-DP-C-02345
3/07/2017
Superseded
15600-DP-C-02345
1/24/2017
Superseded
15600-DP-C-02345
1/12/2017
Superseded
15600-DP-C-02345
4/13/2017
Current

<tbody>
</tbody>

I need to have VBA code to look up the value in Column A and then search for the most recent date in Column B corresponding to this value , and then add the work “ current “ in the adjacent cell for this date and “ superseded” to the old date

Hope my request is clear
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,226,114
Messages
6,189,051
Members
453,522
Latest member
Seeker2025

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