Hello there and I definitely need some help from someone to find a formula or a vba code for my column D.
Situation: I'm building a Excel sheet to act as a database and I want some automation.
In column A I have a formula for an incremental counter (starting from 1 counting up to 63655 when using, copy last row+paste below).
In column B I have different project names eg. Toronto, Montreal and so on.
In column C I have the adjacent opening date of each project.
In column D I want to insert the specific project-ID when several same project names occur. When it is a new project name I want to continue the sequence in Column A.
The database is similar to this
<tbody>
</tbody>
I'm now looking for a formula or a vba code to input in column D the appropriate project-ID.
The formula or vba code should do the following: Find in Column B every exact same project name (eg. Toronto), detect the oldest date of the project (column C), and then enter that row count from Column A in all cells with that same project name in column D.
Additional when opening a new project, the project ID (Column D) will be the next unused sequence of column A.
Can someone give me some suggestions on how to go about it?
Thanks in advance for your help.
Situation: I'm building a Excel sheet to act as a database and I want some automation.
In column A I have a formula for an incremental counter (starting from 1 counting up to 63655 when using, copy last row+paste below).
In column B I have different project names eg. Toronto, Montreal and so on.
In column C I have the adjacent opening date of each project.
In column D I want to insert the specific project-ID when several same project names occur. When it is a new project name I want to continue the sequence in Column A.
The database is similar to this
A (counter) | B (project name) | C (opening date) | D (project ID) |
1 | Toronto | 03.15.2017 | 5 |
2 | Montreal | 15.01.2017 | 1 |
3 | Toronto | 20.04.2017 | 5 |
4 | Halifax | 10.06.2017 | 2 |
5 | Toronto | 01.01.2017 | 5 |
6 | XXX | 04.04.2016 | 3 |
7 | YYY | 08.04.2017 | 4 |
<tbody>
</tbody>
I'm now looking for a formula or a vba code to input in column D the appropriate project-ID.
The formula or vba code should do the following: Find in Column B every exact same project name (eg. Toronto), detect the oldest date of the project (column C), and then enter that row count from Column A in all cells with that same project name in column D.
Additional when opening a new project, the project ID (Column D) will be the next unused sequence of column A.
Can someone give me some suggestions on how to go about it?
Thanks in advance for your help.