Good Afternoon,
I am having some issues with a dataset that came from an outdated system our business used before I joined, they had recently moved to a new system when I joined and now I can see why!
The data below relates to Customer Journeys, which lack a vehicle identifiable field (which would've made what I want to do much easier). But what I am essentially trying to do is create a "Load ID" for each Journey based on the amount of customers on each load.
The below query relates to Journeys & Customers:
Column A includes Unique Reference number for the Customer's Journey
Column B Includes a date-timestamp for when the customer's Journey began
Column C to include a sequential ID Reference number which is unique to the LOAD
If there is a duplicate in Column B, I am expecting Column C to be the same for each unique set of duplicates within the data set. If there is no duplicates I still want Column C to be populated with a sequential Reference number.
The Below is a snip of what I would like the data to look like on a small number of Journeys, there is around 250k rows to apply this mechanism to.
Row 4 & 5's journeys travelled on the Same LOAD which means 2 customers travelled and therefore have the same LOAD ID, where there are no duplicates in Column B the customers travelled alone. There is no theoretical maximum amount of customers than can be on any one LOAD.
Its been a long time since I have used any VBA, can anyone assist with some code that will remove the manual solution?
Thanks in advance,
LT
I am having some issues with a dataset that came from an outdated system our business used before I joined, they had recently moved to a new system when I joined and now I can see why!
The data below relates to Customer Journeys, which lack a vehicle identifiable field (which would've made what I want to do much easier). But what I am essentially trying to do is create a "Load ID" for each Journey based on the amount of customers on each load.
The below query relates to Journeys & Customers:
Column A includes Unique Reference number for the Customer's Journey
Column B Includes a date-timestamp for when the customer's Journey began
Column C to include a sequential ID Reference number which is unique to the LOAD
If there is a duplicate in Column B, I am expecting Column C to be the same for each unique set of duplicates within the data set. If there is no duplicates I still want Column C to be populated with a sequential Reference number.
The Below is a snip of what I would like the data to look like on a small number of Journeys, there is around 250k rows to apply this mechanism to.
Row 4 & 5's journeys travelled on the Same LOAD which means 2 customers travelled and therefore have the same LOAD ID, where there are no duplicates in Column B the customers travelled alone. There is no theoretical maximum amount of customers than can be on any one LOAD.
Its been a long time since I have used any VBA, can anyone assist with some code that will remove the manual solution?
Thanks in advance,
LT