esings2him
Programmer
Hi! I'm trying to match all jobs that begin with the same first four characters then group by them and also, add or duplicate the sales order number to the jobs that have a zero value. Here's an example of what I have:
Job No. Sales Order
1043 97
1043 97
1043-PM102 0
1043-PM102 0
1043-PM102 0
1043-PM102 0
1043-TM111 0
1043-TM111 0
Here's what I want:
Job No. Sales Order
1043 97
1043 97
1043-PM102 97
1043-PM102 97
1043-PM102 97
1043-PM102 97
1043-TM111 97
1043-TM111 97
There are some jobs that have a six digit prefix that may have a sales order attached that would need the same matching and grouping.
001015-EM206 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
How would I go about this? Thanks for all help!
Job No. Sales Order
1043 97
1043 97
1043-PM102 0
1043-PM102 0
1043-PM102 0
1043-PM102 0
1043-TM111 0
1043-TM111 0
Here's what I want:
Job No. Sales Order
1043 97
1043 97
1043-PM102 97
1043-PM102 97
1043-PM102 97
1043-PM102 97
1043-TM111 97
1043-TM111 97
There are some jobs that have a six digit prefix that may have a sales order attached that would need the same matching and grouping.
001015-EM206 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
001015-TM207 0
How would I go about this? Thanks for all help!