Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Excel / November 2006



Tip: Looking for answers? Try searching our database.

Averaging values with condtions for several columns

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sesler2 - 21 Nov 2006 22:34 GMT
I have 3 columns within my spreadsheet of 233 rows:

Work Group - either AAA or BBB
Finance Value - ranging from $0 to $1.5 million
Delivery Time - ranging from 0 to 500 (days)

I want to find the average delivery time for each group where finance value
> $0.2m  and again where finance value <= $0.2m. I have been sorting by group
then finance value and manually average the rows when those values fall but
there must be an easier way.  Have looked at sumproduct but I need averages.
CyberTaz - 22 Nov 2006 01:47 GMT
One option - although there are probably a number of others - would be to
use the DAVERAGE fx. Copy your Work Group & Finance Value captions to
another location (the example below uses E7:E8). Those two cells plus the
two immediately below them create a Criteria Area. Put AAA in cell E8,
<=1200000 in cell F8, and in another cell enter the following function
(assumption that the data range is A1:C234 and the values to be averaged are
in column C;

=DAVERAGE($A$1:$C$234,$C$1,$E$7:$F$8)

The result will be the average Delivery Time for AAA Work Group with Finance
Value <=1.2m based on the criteria in the Criteria Area. To find other
results just change the criteria in cells E8 and/or F8 and the fx will
update. Bonus: Sort order doesn't matter :) But if you intend to use Filters
on the list, make sure to not put the Criteria Area & fx in the same rows as
the list - you won't be able to see results when rows are collapsed.

HTH |:>)
Bob Jones
[MVP] Office:Mac

On 11/21/06 5:34 PM, in article
F4D43C8A-B237-4332-9F28-BCDF4B7C387F@microsoft.com, "sesler2"

> I have 3 columns within my spreadsheet of 233 rows:
>
[quoted text clipped - 6 lines]
> then finance value and manually average the rows when those values fall but
> there must be an easier way.  Have looked at sumproduct but I need averages.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.