ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   calculating an average based on criteria (https://www.excelbanter.com/excel-programming/306640-calculating-average-based-criteria.html)

scottwilsonx[_17_]

calculating an average based on criteria
 
Hope someone can help with the following:

I have a worksheet ("data") with the following details:
range: A2:AO20000

column S is the country of customer
column C date order placed
column D data order sent
column R customer
column V product bought

What I would like my VBA to do is take this information, and then i
another sheet called "analysis" use the information typed into cell A1
customer area
and A2: customer name

And calculate for each product bought by the customer, the average tim
between column C and column D.
Note where nothing is displayed in cell A1 in "analysis" then th
result of the VBA would give all customers.

Help please !

Thank you,
Scott

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 06:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com