Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
lb lb is offline
external usenet poster
 
Posts: 6
Default Std Dev of Aged Inventory

Thousands of rows of data

Days Qty (pcs)
500 50
280 3
50 100
etc

Ho would I get the standrd deviation for this information without having to
type the 500 in 50 times, the 280 in 3 times, the 50 in 100 times, etc?
Again, I have thousands of rows of this data.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Std Dev of Aged Inventory

Using the Standard deviation equation given in XL help file:

=SQRT(SUMPRODUCT((A2:A2000-SUMPRODUCT(A2:A2000,B2:B2000)/SUM(B2:B2000))^2,B2:B2000)/(SUM(B2:B2000)-1))

Adjust range sizes to fit your data.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"LB" wrote:

Thousands of rows of data

Days Qty (pcs)
500 50
280 3
50 100
etc

Ho would I get the standrd deviation for this information without having to
type the 500 in 50 times, the 280 in 3 times, the 50 in 100 times, etc?
Again, I have thousands of rows of this data.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Std Dev of Aged Inventory

Your question is: how can you compute the std dev of grouped data?

I suggest that we take a simpler example to facilitate verification.
Consider the following in A1:A3 and B1:B3:

3 50
4 3
5 100

The std dev and avg can be computed easily by
STDEVP({50,50,50,3,3,3,3,100,100,100,100,100}) and
AVERAGE({50,50,50,3,3,3,3,100,100,100,100,100}). Note that I use STDEVP
instead of STDEV. I am assuming that A1:B3 represents all of the data, not
a sampling.

More generally, STDEVP of the grouped data can be computed by:

=SQRT(SUMPRODUCT(A1:A3,(B1:B3-X1)^2) / SUM(A1:A3))

where X1 is the average computed by:

=SUMPRODUCT(A1:A3,B1:B3) / SUM(A1:A3)

Compare these results with teh STDEVP and AVERAGE results.

Note: You could substitute the latter formula for X1 in the first formula,
but I think it would be less effiicient. You may or may not see a
difference when you have "thousands" of groups. But in any case, I think
the first formula is more readable as is.

If you want to compute STDEV instead of STDEVP, replace SUM(A1:A3) with
(SUM(A1:A3)-1) -- note the parentheses -- in the first formula only. The
average is still computed by dividing by SUM(A1:A3).


----- original message -----

"LB" wrote in message
...
Thousands of rows of data

Days Qty (pcs)
500 50
280 3
50 100
etc

Ho would I get the standrd deviation for this information without having
to
type the 500 in 50 times, the 280 in 3 times, the 50 in 100 times, etc?
Again, I have thousands of rows of this data.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Std Dev of Aged Inventory

Clarification....

"LB" wrote:
Days Qty (pcs)
500 50
280 3
50 100

Ho would I get the standrd deviation for this information without having
to type the 500 in 50 times, the 280 in 3 times, the 50 in 100 times,
etc?


I assumed you want to compute the std dev of qty, not std dev of days. So
you enter 50 500 times, not 500 50 times as you wrote. That would compute
the std dev of daily inventory or daily qty sold, for example.

If you truly want to compute the std dev of days (!) -- for example, the std
dev of days to produce or ship a piece -- you can just reverse the ranges
A1:A3 and B1:B3 in the formulas I provided.

It's a little more difficult to compare with the STDEVP and AVERAGE results.
I wish I had chosen smaller qtys ;-).


----- original message -----

"JoeU2004" wrote in message
...
Your question is: how can you compute the std dev of grouped data?

I suggest that we take a simpler example to facilitate verification.
Consider the following in A1:A3 and B1:B3:

3 50
4 3
5 100

The std dev and avg can be computed easily by
STDEVP({50,50,50,3,3,3,3,100,100,100,100,100}) and
AVERAGE({50,50,50,3,3,3,3,100,100,100,100,100}). Note that I use STDEVP
instead of STDEV. I am assuming that A1:B3 represents all of the data,
not a sampling.

More generally, STDEVP of the grouped data can be computed by:

=SQRT(SUMPRODUCT(A1:A3,(B1:B3-X1)^2) / SUM(A1:A3))

where X1 is the average computed by:

=SUMPRODUCT(A1:A3,B1:B3) / SUM(A1:A3)

Compare these results with teh STDEVP and AVERAGE results.

Note: You could substitute the latter formula for X1 in the first
formula, but I think it would be less effiicient. You may or may not see
a difference when you have "thousands" of groups. But in any case, I
think the first formula is more readable as is.

If you want to compute STDEV instead of STDEVP, replace SUM(A1:A3) with
(SUM(A1:A3)-1) -- note the parentheses -- in the first formula only. The
average is still computed by dividing by SUM(A1:A3).


----- original message -----

"LB" wrote in message
...
Thousands of rows of data

Days Qty (pcs)
500 50
280 3
50 100
etc

Ho would I get the standrd deviation for this information without having
to
type the 500 in 50 times, the 280 in 3 times, the 50 in 100 times, etc?
Again, I have thousands of rows of this data.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate=Aged Oscar Excel Worksheet Functions 1 December 18th 08 05:41 PM
Create an aged column Grd Excel Worksheet Functions 6 April 10th 08 11:08 PM
Aged Debt - grouping values by date range DanCappagh Excel Discussion (Misc queries) 2 December 18th 07 04:39 PM
help with my inventory juliocrd Excel Discussion (Misc queries) 1 April 8th 06 05:22 PM
How can i get an inventory list that adds and subtracts inventory James Excel Discussion (Misc queries) 0 October 5th 05 12:48 AM


All times are GMT +1. The time now is 07:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"