#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default Formulas help

I need to do summary tables for worksheets and am having trouble.

My home data:
SqFt YR OLP LP SP COE
3,067 2000 899,000 750,000 760,000 7/11/2007
3,067 1999 1,499,000 1,499,000 1,300,000 4/24/2007
2,975 1999 1,150,000 1,150,000 1,150,000 4/15/2006
2,413 1991 845,000 799,000 760,000 3/4/2008


I need to count how many "homes" close in a year, i.e., count number for
2007, then need to avg sp for all homes that had a coe in 2007.

How do I write a statement that looks for a coe with the same year then
averages the sp for closings in that year. Thanks. I am ready to pull my
hair out.



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Formulas help

To count the number of homes sold in 2007, use:
=SUMPRODUCT(--(YEAR(F2:F1000)=2007))
Adjust your range to suit.
Better yet, put 2007 into a cell (like H1), so you can change it at will,
and use:
=SUMPRODUCT(--(YEAR(F2:F1000)=H1))

Assuming this is in H2, to get the average SP:
=SUMPRODUCT(--(YEAR(F2:F1000)=2007),E2:E1000)/H2

If you want to make life easier for you, and impress your friends and
co-workers, look into Pivot Tables. They will do everything you want, and
more.

Regards,
Fred.

"Stacey" wrote in message
...
I need to do summary tables for worksheets and am having trouble.

My home data:
SqFt YR OLP LP SP COE
3,067 2000 899,000 750,000 760,000 7/11/2007
3,067 1999 1,499,000 1,499,000 1,300,000 4/24/2007
2,975 1999 1,150,000 1,150,000 1,150,000 4/15/2006
2,413 1991 845,000 799,000 760,000 3/4/2008


I need to count how many "homes" close in a year, i.e., count number for
2007, then need to avg sp for all homes that had a coe in 2007.

How do I write a statement that looks for a coe with the same year then
averages the sp for closings in that year. Thanks. I am ready to pull my
hair out.




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
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
lookup formulas dependent upon lookup formulas Skibee Excel Worksheet Functions 1 July 20th 07 01:06 PM
automatically copy formulas down columns or copy formulas all the HowlingBlue Excel Worksheet Functions 1 March 16th 07 11:11 PM
Formulas not evaluated, Formulas treated as strings Bob Sullentrup Excel Discussion (Misc queries) 0 November 27th 06 08:01 PM
formulas for changing formulas? creativeops Excel Discussion (Misc queries) 4 January 26th 06 03:07 AM


All times are GMT +1. The time now is 12:19 AM.

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

About Us

"It's about Microsoft Excel"