+ Reply to Thread
Results 1 to 8 of 8

Average

  1. #1
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248

    Average

    My dear,with best regards,asking you kindly to help me to find the average price of the codes mentioned in attacced file.
    Thanking in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi,
    use something like =AVERAGE(IF($c$5:$c$25="a",$b$5:$b$25,0)) in G5 entered as an array formula
    adapt your formula to the other conditions
    Last edited by arthurbr; 10-22-2008 at 09:36 AM.

  3. #3
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: Average

    Put this in G5 and drag down:
    Please Login or Register  to view this content.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Conditional average

    Using your posted workbook...

    This regular formula returns the average price for Code="A"
    Please Login or Register  to view this content.
    Copy that formula down as far as you need.

    With your sample data, these values are returned:
    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    =AVERAGE(IF($c$5:$c$25="a",$b$5:$b$25,false)) ( sorry, mistake)
    Enter with Ctrl+Shift+Enter

  6. #6
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248

    Average

    many thanks to all experts for their solutions

  7. #7
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    If your problem is solved, don't forget to adapt your thread title prefix !

  8. #8
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248

    Average

    My dear,with regards,asking your goodselves about(how can i find the latest price from the enclosed schedule for each code?)
    Thanking you very much for your co-opration.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1