Since I am new to VBA excel, I don’t have a clue of how to tackle the following issue.
I have created a user entry form with which users can enter project details. Whenever project details need to be updated, this user entry form can be used. These entries will be stored in another sheet called “Project Update History”. This list contains all the update entries for every project (as shown in the table below).
/--------------------------------------------------------------\
| | EntryDate | Project Name | Project ID | Status |
|--------------------------------------------------------------|
| 1 | 01.02.2018 | ABC | P001 | text |
|--------------------------------------------------------------|
| 2 | 01.02.2018 | CDE | P002 | text |
|--------------------------------------------------------------|
| 3 | 15.02.2018 | CDE | P002 | text |
|--------------------------------------------------------------|
| 4 | 16.02.2018 | FGH | P003 | text |
|--------------------------------------------------------------|
| 5 | 08.08.2018 | ABC | P001 | text |
|--------------------------------------------------------------|
| 6 | 09.09.2019 | FGH | P003 | text |
|--------------------------------------------------------------|
| 7 | 14.09.2019 | FGH | P003 | text |
|--------------------------------------------------------------|
| 8 | 12.12.2019 | CDE | P002 | text |
\--------------------------------------------------------------/
As you can imagine, there are hundreds of entries and it’s quite difficult to get an overview. Ideally, there is a list in a separate sheet with latest project status only. (see table below)
/--------------------------------------------------------------\
| | EntryDate | Project Name | Project ID | Status |
|--------------------------------------------------------------|
| 1 | 08.08.2018 | ABC | P001 | text |
|--------------------------------------------------------------|
| 2 | 14.09.2019 | FGH | P003 | text |
|--------------------------------------------------------------|
| 3 | 12.12.2019 | CDE | P002 | text |
\--------------------------------------------------------------/
In order to get this, I already tried different options such as using “filters” or “array formulas”. However, both were rather dissatisfactory. Filters were not really helpful, as I want to see all the projects at once (but just the most recent project updates). Array formulas actually gave me the output, I wanted … but the excel file became very slow. (To get the latest entry date {=MAX(IF(‘Project Update History’!C:C=C4,’Project Statuses’!B:B,0))} (To get the corresponding entry details an INDEX Match formula.)
So the only way, I could avoid this problem is to use macros. My idea is to have a button that will search for the latest status of each project and display in a sheet… but I really don’t know how to code this… Maybe someone else has also encountered this issue and found a solution for it? I would really apprecitate any help from you. :)
Many thanks in advance for your help.
Niro