We help IT Professionals succeed at work.
Get Started

VBA to Update status Column based on recent date

264 Views
Last Modified: 2017-04-23
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

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
Rev_Status.xlsx
Comment
Watch Question
Keep everyone healthy; Wear a mask - Social distance - Don't touch your face - Wash your hands for 20 seconds
CERTIFIED EXPERT
Most Valuable Expert 2017
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 18 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE