date problem

kin

Well-known Member
Joined
Jun 26, 2007
Messages
648
hello

I d like to ask you if you could help me find a solution. I have two columns one called "date of order" and another "value of order" .The rows in These 2 columns are not always filled. Only when there is an order there is a date too. Now I want to find how many days on average it takes me until I have a new order. What is the date difference between each order and then the average (in days). How can I find it?Thanks
 
Maybe this:

Layout

DateValueResult
01/02/20144507,6000
*
14/02/2014700*
23/02/20141500*
03/03/2014900*
*
09/03/2014350*
11/03/2014550*
***************************

<tbody>
</tbody>

Formula

Code:
In D2 - use Ctrl+Shift+Enter to enter the formula

=IFERROR(AVERAGE(SMALL(IF($A$2:$A$9<>"",$A$2:$A$9),ROW(INDIRECT("2:"&COUNT($A$2:$A$9))))-SMALL(IF($A$2:$A$9<>"",$A$2:$A$9),ROW(INDIRECT("1:"&COUNT($A$2:$A$9)-1)))),0)

Markmzz
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
The formula you were given will work only when the data are sorted in ascending order by date.
I held CTRL+SHIFT and then pressed enter but still the same error appears. Although the other method gives me an average which I think it is true once I sorted them in ascending order. Still I d like a formula to be used
 
Upvote 0
If Markmzz's solution worked for you, you can also abbreviate it somewhat, and no need for array-entry either:

=AVERAGE(MMULT(SMALL($A$2:$A$9,ROW(INDIRECT("1:"&COUNT($A$2:$A$9)-1))+{0,1}),{-1;1}))

Regards
 
Last edited:
Upvote 0
Apparently you are not familiar with array formula.

Maybe you could consider using a helper column
E.g.
in C3
=A2-A1 'which gives you the days between the order
Copy C3 down to the end of your table
Take the average of Column C

or PGC gives you a very nice solution if compounded average works for you.
 
Upvote 0
hello after solving the first problem I have yet one to arise.
In column A I have names of customers, In column B dates of visit. How can I find an average (of visits) per month or proportion (of increase /decrease from one month to another.)
It looks like
COLUMN A COLUMN B
NAME DATE
B 3/3/2014
G 3/3/2014
H 3/3/2014
KL 4/4/2014
PLO 4/4/2014
ADD 4/4/2014
AWFS 4/4/2014
FG 4/4/2014

I show my case where in a given date someone visits more or less prospects than another day and so on.

thanks
 
Upvote 0
hello after solving the first problem I have yet one to arise.
In column A I have names of customers, In column B dates of visit. How can I find an average (of visits) per month or proportion (of increase /decrease from one month to another.)
It looks like
COLUMN A COLUMN B
NAME DATE
B 3/3/2014
G 3/3/2014
H 3/3/2014
KL 4/4/2014
PLO 4/4/2014
ADD 4/4/2014
AWFS 4/4/2014
FG 4/4/2014

I show my case where in a given date someone visits more or less prospects than another day and so on.

thanks
Hi Kin,

I'm sorry, but I didn't understand what you want.

Could you post more details?

Markmzz
 
Upvote 0
hello

I d like to ask if you could help me with finding which customers have not been visited for a given time period (e.g a month)
I have the following data look like:

CUSTOMER NAME DATE OF VISIT
JAMES J. 28/1/2014
KATE L. 28/1/2014
JOHN M. 28/1/2014
JAMES J. 25/3/2014
KATE L. 25/3/2014
JOHN M. 25/4/2014

I wish to retrieve the whole rows that there are for each customer. Hence I would know that one customer has not been visited in the last month or more than a month. Thank you
 
Upvote 0

Forum statistics

Threads
1,215,079
Messages
6,123,005
Members
449,092
Latest member
masterms

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top