Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Averaging specific data in columns

I have a spreadsheet with many columns of data. Two of the columns are
important for this question. For simplicity, say that column 1 lists red
cars and blue cars and column 2 lists the sale price of them. I want to
perform AVG,MIN,MAX and MEDIAN of the sale price of just the red cars. I
tried Daverage but couldn't get it to work. Can someone help me with
this situation? Any help will be appreciated.

DLS

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Averaging specific data in columns

introduce a row for headings at the top if necessary ---color ---- price
suppose the data with the headings are C1 to D9(C colum color and d column
price)
place a criteria range somewhere for e.g. g1 to H2 following
color price
blue

now in some empty cell type

=DAVERAGE(C1:D9,"price",G1:H2)
see this empty cell is NOT already formatted as text. (I had this problem
while testing). it should be in general format. preferably in number
format.
hope you get what you want
you can try dmax, dmin, dsum etc

perhaps some easier solution may also be available


<DLS wrote in message ...
I have a spreadsheet with many columns of data. Two of the columns are
important for this question. For simplicity, say that column 1 lists red
cars and blue cars and column 2 lists the sale price of them. I want to
perform AVG,MIN,MAX and MEDIAN of the sale price of just the red cars. I
tried Daverage but couldn't get it to work. Can someone help me with
this situation? Any help will be appreciated.

DLS

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Averaging specific data in columns

R.VENKATARAMAN
Thanks for your help. That cleared up the problem and all is working
now.

DLS

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Averaging specific data in columns

Can you tell me why when I do a DMAX on a set of data to get the average
of 1 story bldgs in the range I get one answer and when I do a MAX on
the 1 story bldgs of the data, but in a separate column just to check
the accuracy of the first, I get another answer. I have checked and have
no transposition errors.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Averaging specific data in columns

Everyone, please forget my last post, I found the problem. But now, I
have the following:

Of the three formulas below DMIN and DMAX work correctly in that when
the search in H1:R51 contains no '2 story homes', the result is a blank
cell, but DAVERAGE gives a result of #DIV/0! . Can anyone tell me why
this is so?

=IF(DMIN(Summary!H1:R51,"list
Price",A1:B2)=0,"",(DMIN(Summary!H1:R51,"list Price",A1:B2)))

=IF(DAVERAGE(Summary!H1:R51,"list
Price",A1:B2)=0,"",(DAVERAGE(Summary!H1:R51,"list Price",A1:B2)))

=IF(DMAX(Summary!H1:R51,"list
Price",A1:B2)=0,"",(DMAX(Summary!H1:R51,"list Price",A1:B2)))

DLS

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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
averaging data in multiple columns brad1824 Excel Discussion (Misc queries) 6 March 26th 10 03:52 PM
A specific method for conditional averaging? Kerry[_2_] Excel Worksheet Functions 2 September 2nd 09 10:46 PM
add new data to specific columns in multiple worksheets juliebythesea New Users to Excel 2 July 10th 07 01:24 AM
import data to specific columns marlea Excel Discussion (Misc queries) 1 August 12th 05 02:05 AM
averaging specific rows in multiple arrays GJR3599 Excel Worksheet Functions 2 March 3rd 05 12:24 PM


All times are GMT +1. The time now is 10:38 AM.

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"