Hello,
I am trying to get a loop going. I have a worksheet with a lot of purchase orders with unique order IDs. When a customer orders multiple items through the website, the order is imported in to excel on multiple rows i.e. if a customer orders a black ink cartridge and a color one, the order is imported in to excel on two rows. All the customer information is the same and so is the order number. the only difference is the item name and sku. What I want to be able to do is basically have a macro that goes down the list and counts the number of rows with the same order number and then I have two columns with two different prices. I want to divide those prices by the number of rows counted then move on to the next order number and count the number of rows with that same order number and repeat the process. Let me know if that made any sense at all.
Thanks!
I am trying to get a loop going. I have a worksheet with a lot of purchase orders with unique order IDs. When a customer orders multiple items through the website, the order is imported in to excel on multiple rows i.e. if a customer orders a black ink cartridge and a color one, the order is imported in to excel on two rows. All the customer information is the same and so is the order number. the only difference is the item name and sku. What I want to be able to do is basically have a macro that goes down the list and counts the number of rows with the same order number and then I have two columns with two different prices. I want to divide those prices by the number of rows counted then move on to the next order number and count the number of rows with that same order number and repeat the process. Let me know if that made any sense at all.
Thanks!