+ Reply to Thread
Results 1 to 3 of 3

Looking for formula to run multiple conditional averages

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    24

    Looking for formula to run multiple conditional averages

    All - Im not sure if this is a complicated ask or if I'm not figuring out a way to articulate it easily...

    I am trying to make a rental analysis for an apartment building. For each unit in the apartment, there are 3 different rates that can be charged for occupancy, or there can be no occupancy and therefore no rate.

    Im looking for an analysis that averages the overall rental rate charged through a period of time, to the extent a building was occupied. Further, I would like to be able to group the averages based upon unit grouping (units 100-199, units 200-299, etc...)

    There are ways to do this by multiple tables and then grouping averages within the table, but I am looking for a formula that allows me to bypass having to make a big table.

    Just rereading this, i can already tell it is hard to follow, so I've attached an example spreadsheet with way more explanation. (PS couldnt figure out how to attach the spreadsheet to this post, so here is a dropbox link)

    https://www.dropbox.com/s/99afhd1flk...book.xlsx?dl=0

    Please somebody help!! Thank you in advance!

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Looking for formula to run multiple conditional averages

    deleted.....
    Last edited by protonLeah; 09-26-2017 at 11:04 PM.
    Ben Van Johnson

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Looking for formula to run multiple conditional averages

    Hi djh,

    I needed to delete column F(?) to make a table of your data. I've replaced your big table with a CSE Array formula of:

    =IFERROR(SUM(CHOOSE((F5:Q5)+1,0,C5,D5,E5))/COUNTIF(F5:Q5,">0"),0)

    I then created a Pivot Table and grouped the units by 10s to get close to what you want. See the attached. Hope this gets you closer to you answer.

    CSE Choose Unit Number Price Aveage Group.xlsx

    A CSE formula need to be ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Conditional Averages
    By Montoro22 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-12-2013, 01:21 PM
  2. Array formula to calculate conditional averages?
    By Juli in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2012, 08:57 PM
  3. Replies: 2
    Last Post: 11-06-2011, 08:16 PM
  4. formula to calculate averages of multiple ranges of cells
    By sophy_1402 in forum Excel General
    Replies: 3
    Last Post: 09-16-2011, 09:18 AM
  5. Formula, Averages by name, and differences of averages
    By billyvnilly in forum Excel General
    Replies: 3
    Last Post: 02-24-2010, 05:35 PM
  6. Conditional Averages
    By lwilde in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2008, 10:43 PM
  7. Conditional Averages
    By Kris Andersen in forum Excel General
    Replies: 1
    Last Post: 03-22-2006, 03:35 PM

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