View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Paul Lautman Paul Lautman is offline
external usenet poster
 
Posts: 85
Default can this not be done?

Why not add a column that calculates the time between C & D and then use a
Pivot Table to perform the averaging. Then you can filter the pivot table
using its selection popups.

"scottwilsonx " wrote in
message ...
Is the reason no one has come back to me because it cant be done?!

Thanks
Scott.

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 in
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 time
between column C and column D.
Note where nothing is displayed in cell A1 in "analysis" then the
result of the VBA would give all customers.

Help please !

Thank you,
Scott.


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