ExcelRalph
New Member
- Joined
- Jan 19, 2022
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Hello,
I'm attempting to copy fields from two worksheets if a condition is met and paste into defined columns of a third worksheet "Sheet6".
The code correctly identifies the fields, however it appears that the loop resets after the a condition is not met. This seems to result in non consecutive rows on the third worksheet. I don't want any gaps in rows on "Sheet6".
Can you help? Or provide a more efficient code? Thank you!
I'm attempting to copy fields from two worksheets if a condition is met and paste into defined columns of a third worksheet "Sheet6".
The code correctly identifies the fields, however it appears that the loop resets after the a condition is not met. This seems to result in non consecutive rows on the third worksheet. I don't want any gaps in rows on "Sheet6".
Can you help? Or provide a more efficient code? Thank you!
GRE Excel Help.xlsm | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | |||
14 | Country Code | MAC | Account | AccountNumber | CPA | Original CPA | PID | Product Clusters | GSFA Customer ID | Currency | Product clusters to preserve (Rates and all other attributes) | Source PID | Effective Date | Divisor | Payment Terms | Billing Cycle | OMS Offer Required (Y/N) | OfferID | Special Instructions/Notes | ||
15 | (Sheet5) | (Sheet5) | (Sheet5) | (Sheet5) | 117167 | #N/A | New1 | Product Clusters ABCD | None | N/A | 5/1/2021 | Non-Standard | 45 | Weekly | Y | 15230-01 | Example, No KAP action/push through to OMS. | ||||
Sheet2 |
GRE Excel Help.xlsm | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | Country | MAC | Account Name | Account Number | CPA | PID | Product Clusters | GSFA Customer ID | Currency | In Scope? | Note | ||
2 | US | 428 | Customer DCA | 2678651 | 995544 | PUD00OREL | ProductsABC | TXNMC771602212 | No | ||||
3 | US | 428 | Customer ABC | 756877776 | 117167 | USD00OSNG | TD3rd;TDDom_Territories;TDExport;TDImport | USMC796692175 | USD | ||||
4 | US | 428 | Customer DCA | 796692175 | 995544 | USD00OSNG | TD3rd;TDDom_Territories;TDExport;TDImport | USMC796692175 | USD | ||||
5 | US | 428 | Customer ABC | 845830910 | 117167 | USD00OSNG | TD3rd;TDDom_Territories;TDExport;TDImport | USMC854198166 | USD | No | |||
6 | US | 428 | Customer DCA | 7654954 | 117167 | PUD00OSNG | ProductsABC | PRMC854198166 | USD | ||||
7 | US | 428 | Customer ABC | 8458309 | 117167 | PUD00OSNG | ProductsABC | PRMC854198166 | USD | No | |||
8 | US | 428 | Customer ABC | 8461431 | 117167 | PUD00OSNG | ProductsABC | PRMC771602212 | USD | No | |||
9 | |||||||||||||
GRE As Is |
GRE Excel Help.xlsm | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | |||
2 | Country | MAC | Account Name | Account Number | CPA | Original CPA | PID | Product Clusters | GSFA Customer ID | Currency | Product clusters to preserve (Rates and all other attributes) | Source PID | Effective Date | Divisor | Payment Terms | Billing Cycle | OMS Offer Required (Y/N) | OfferID | Special Instructions/Notes | ||
3 | US | 428 | Customer ABC | 756877776 | 117167 | 117167 | New1 | Product Clusters ABCD | USMC796692175 | None | N/A | 5/1/2021 | Non-Standard | 45 | Weekly | Y | 15230-01 | Example, No KAP action/push through to OMS. | |||
4 | US | 428 | Customer DCA | 796692175 | 117167 | 995544 | New1 | Product Clusters ABCD | USMC796692175 | None | N/A | 5/1/2021 | Non-Standard | 45 | Weekly | Y | 15230-01 | Example, No KAP action/push through to OMS. | |||
5 | |||||||||||||||||||||
6 | US | 428 | Customer DCA | 7654954 | 117167 | 117167 | New1 | Product Clusters ABCD | PRMC854198166 | None | N/A | 5/1/2021 | Non-Standard | 45 | Weekly | Y | 15230-01 | Example, No KAP action/push through to OMS. | |||
7 | |||||||||||||||||||||
8 | |||||||||||||||||||||
GRE To Be |