+ Reply to Thread
Results 1 to 6 of 6

Sum If - Finding Average for similar company name

  1. #1
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    113

    Sum If - Finding Average for similar company name

    Hi All,

    My spreadsheet is calculating monthly revenue per building and averaging that cost in column p.

    Each building belongs to a different company.

    I would like to calculate the average of all buildings belonging to each company.

    Example. I would need to average the cost of all buildings belonging to company “1”. I would need to average the “averages” in column “P” for rows 2, 3, 4 and 5. I would need to do this for 2000 buildings/1000 companies.

    Any suggestions?
    Last edited by Zan03; 04-20-2010 at 03:45 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sum If - Finding Average for similar company name

    Probably Pivot tables is your best bet..

    You can drag Company and Building over to Row Data and then Revenue to Data area.

    Then select Average instead of Sum for your field setting.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: Sum If - Finding Average for similar company name

    I used the following formula to gather the SUM of all similar companies.... isn't there a way to manipulate that formula to gather average costs rather than sum?

    =SUMIF('Master Database'!$B$2:$B$2000,A81,'Master Database'!$BG$2:$BG$2000)

    Thanks

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sum If - Finding Average for similar company name

    I assumed you did not yet have a consolidated list of buildings...

    Try:

    =SUMIF('Master Database'!$B$2:$B$2000,A81,'Master Database'!$BG$2:$BG$2000)/COUNTIF('Master Database'!$B$2:$B$2000,A81)

  5. #5
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: Sum If - Finding Average for similar company name

    That works perfectly.

    Thanks!

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sum If - Finding Average for similar company name

    Please remember to mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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