+ Reply to Thread
Results 1 to 2 of 2

Keeping subtotal averages in a changing sorted table

  1. #1
    Registered User
    Join Date
    08-27-2014
    Location
    Canada
    MS-Off Ver
    Home and Student 2013
    Posts
    1

    Keeping subtotal averages in a changing sorted table

    Hi there,

    Here's my issue. I am analyzing a mountain of data on different apartment buildings, and need average rents at all the buildings. It is all in the same worksheet, seperated into the different apartments.

    I'm trying to sort the data into 1 BR, 2 BR, and 3 BR, and then analyze based on averages. Naturally, because the data is so huge, I sorted each building into a table, and in order to make it easier want to sort into 1 BR, calculate the average....and so on.

    But I've encountered two issues. When I sort the data, I need it to take the actual row the data is in (1BRs and 2 BR's are not in order in data) because when I drag, it shows up as say A7:A74, which is fine while its sorted, however once I sort it differently it screws it up. *I should note I know I could just put that number in, however I am looking to make this tool dynamic for future analysis.

    So the question is, how do I get my average to only show the specific rows that the filtered rows are numbered as, not as a large range?

    Thanks in advance for any and all of your help!!

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Keeping subtotal averages in a changing sorted table

    I think it'd be easiest to avoid sorting and subtotals and just perform the calculations you want on a different sheet (or just somewhere else). You can use the "=AVERAGEIF" and/or "=AVERAGEIFS" functions to determine the relevant criteria you'd like to average. If you're not familiar with these functions, feel free to upload a sample file and we can provide some examples on how to write the formulas.

+ 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] Weighted Averages across 2 differently-sorted ranges
    By Yogi52o in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-16-2014, 05:11 PM
  2. Replies: 9
    Last Post: 05-15-2014, 01:57 PM
  3. Replies: 3
    Last Post: 09-07-2012, 08:03 PM
  4. Automatically keeping rows sorted in alphabetical order
    By damiensmith212 in forum Excel General
    Replies: 8
    Last Post: 04-24-2009, 06:50 PM
  5. Replies: 3
    Last Post: 08-07-2006, 07:50 AM

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