Hello,
I run a spread sheet to record orders for manufacturing. To produce a purchase order for suppliers I use a macro that pastes my raw data into a template tab which in turn is linked to an Purchase Order tab. This just rearranges the data into a format that is a bit more readable.
My issue is that the Purchase Order number needs to include the job number to help with paperwork down the line. I have tried writing a massive formula to basically concatenate the PO number with the various job numbers but it comes unstuck when the job numbers differ.
If I have an order where the goods are for a single job then I want the order number to be PO/JOB i.e. 12345/aaaaa. This is quite simple.
If I order for multiple jobs on the same order I want the order number to be PO/JOB1/JOB2 i.e. 12345/aaaaa/bbbbb. Again, this is fairly straight forward.
The problem occurs when I have multiple line for the same job. Example: if there are 5 lines but only 3 job numbers. Therefore I would only want the PO number to be PO/JOB1/JOB2/JOB3. When I try to do this it repeats like this PO/JOB1/JOB1/JOB2/JOB3/JOB3.
Hopefully this makes sense and someone can help.
Thanks,
bigsi1984
I run a spread sheet to record orders for manufacturing. To produce a purchase order for suppliers I use a macro that pastes my raw data into a template tab which in turn is linked to an Purchase Order tab. This just rearranges the data into a format that is a bit more readable.
My issue is that the Purchase Order number needs to include the job number to help with paperwork down the line. I have tried writing a massive formula to basically concatenate the PO number with the various job numbers but it comes unstuck when the job numbers differ.
If I have an order where the goods are for a single job then I want the order number to be PO/JOB i.e. 12345/aaaaa. This is quite simple.
If I order for multiple jobs on the same order I want the order number to be PO/JOB1/JOB2 i.e. 12345/aaaaa/bbbbb. Again, this is fairly straight forward.
The problem occurs when I have multiple line for the same job. Example: if there are 5 lines but only 3 job numbers. Therefore I would only want the PO number to be PO/JOB1/JOB2/JOB3. When I try to do this it repeats like this PO/JOB1/JOB1/JOB2/JOB3/JOB3.
Hopefully this makes sense and someone can help.
Thanks,
bigsi1984
Last edited: