Hello guys, I have a script that I run to give us a list of products that have been sold. Its basically an order summary so we know how many items of each product to pull. The script works great unless a customer orders two of the same product. For example, if customer A orders 1 Red, B orders 1 Red and 1 Blue, and C orders 2 Red and 1 Blue, then the script would show 3 red, and 2 Blue….instead of 4 red. It is counting the SKUs and not accounting for the quantity purchased….Any ideas? I have included the script
Please Login or Register to view this content.
Place this test data in A1C1 and run the macro. Make sure to have 2 sheets and the results will be on the second sheet. Notice that everything is counted as one even though there are 2 green items. If anyone could please figure this out that would be great. Thank you!
Ship To:
test xxx
xxx
xxx
Order ID: xxx
Shipping Address:
test xxx
sss
sss3
Order Date: Sep 19, 2015
Shipping Service: Standard
Buyer Name: xxx
Seller Name: xxxx
Quantity Product Details Price Total
1 Test Red
SKU: Item1
ASIN: 123445
Listing ID: 0430PVAJLO3
Order Item ID: 29378
Condition: New
$11.99
Subtotal: $11.99
Shipping: $6.99
Total: $18.98
ORDER TOTAL: $18.98
Ship To:
test xxx
xxx
xxx
Order ID: xxx
Shipping Address:
test xxx
sss
sss3
Order Date: Sep 19, 2015
Shipping Service: Standard
Buyer Name: xxx
Seller Name: xxxx
Quantity Product Details Price Total
1 Test Blue
SKU: Item2
ASIN: 1234567
Listing ID: 0118MCPABGF
Order Item ID: 80738
Condition: New
$8.99
Subtotal: $8.99
Shipping: $5.99
Total: $14.98
ORDER TOTAL: $14.98
Ship To:
test xxx
xxx
xxx
Order ID: xxx
Shipping Address:
test xxx
sss
sss3
Order Date: Sep 19, 2015
Shipping Service: Standard
Buyer Name: xxx
Seller Name: xxxx
Quantity Product Details Price Total
2 Test Green
SKU: Item3
ASIN: 123456789
Listing ID: 1102IZVLUCR
Order Item ID: 54466
Condition: New
$10.99
Subtotal: $10.99
Shipping: $16.00
Total: $26.99
ORDER TOTAL: $26.99
Bookmarks