Faseeh
Excel Ninja
Hi,
Thank you so much for going through the post!
I am struggling with the automation of the following task. I have googled a lot but the existing macros either fulfil part of the total requirement or are not working for me (somehow).
I have two sheets: 1. Source 2. Ledger. I am trying to pass rows from one to another. here are the details.
Desired workflow:
1) Compare WO_Plan_Ledger (let’s call this LEDGER) against the SOURCE by Work Order Number and Quantity and Date Requested.
2) If Work Order Number does not exist within the SOURCE, then delete all records with the same Work Order Number from the Ledger.
4) If the Work Order Number exists within the SOURCE and the LEDGER, compare the details of the Work Order (SKU, Request Date, total sum of the Qty).
a. If Details are the same, do nothing and move on to the next Work Order Number
b. If Details are different, append the record to the LEDGER and change the LEDGER record’s row font colour to red to indicate that there’s a variance.
5) If the Work Order Number exists within the SOURCE but not the LEDGER, then append the record (Work Order Number, SKU, Request Date and Qty) into the LEDGER and change the LEDGER record’s row font colour to orange to indicate that it’s new.
I have worked out till the second point, (see macro COMPARE2) that deletes WO not found in Source.
Kindly help me with the remaining tasks.
Attached: Sample Sheet.
Thank you so much for going through the post!
I am struggling with the automation of the following task. I have googled a lot but the existing macros either fulfil part of the total requirement or are not working for me (somehow).
I have two sheets: 1. Source 2. Ledger. I am trying to pass rows from one to another. here are the details.
Desired workflow:
1) Compare WO_Plan_Ledger (let’s call this LEDGER) against the SOURCE by Work Order Number and Quantity and Date Requested.
2) If Work Order Number does not exist within the SOURCE, then delete all records with the same Work Order Number from the Ledger.
4) If the Work Order Number exists within the SOURCE and the LEDGER, compare the details of the Work Order (SKU, Request Date, total sum of the Qty).
a. If Details are the same, do nothing and move on to the next Work Order Number
b. If Details are different, append the record to the LEDGER and change the LEDGER record’s row font colour to red to indicate that there’s a variance.
5) If the Work Order Number exists within the SOURCE but not the LEDGER, then append the record (Work Order Number, SKU, Request Date and Qty) into the LEDGER and change the LEDGER record’s row font colour to orange to indicate that it’s new.
I have worked out till the second point, (see macro COMPARE2) that deletes WO not found in Source.
Kindly help me with the remaining tasks.
Attached: Sample Sheet.
Attachments
Last edited: