+ Reply to Thread
Results 1 to 4 of 4

Average column if adjacent cells are between a specific number range

  1. #1
    Registered User
    Join Date
    10-04-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    4

    Average column if adjacent cells are between a specific number range

    Hello,

    I have a data set that includes the finished sqft and sales price of different housing products. I'm trying to create a second tab that shows the Average and median Sales prices and lot sizes of product that falls between a range of finished sqft. (eg 2000-2200).

    I have been trying formulas like the following: =IFERROR(AVERAGEIFS(RPD_GridExportTran!S124:S732,RPD_GridExportTran!F124:F732,"<='SFD '!C29",RPD_GridExportTran!F124:F732,">='SFD '!B29"),"Error")
    but get nothing but errors.

    I'm attaching the spreadsheet here. The first tab has the product data, and the second tab "SFD" is the summary page where I'm trying to use this formula. I got to the first three product summaries by manually filtering the fin sqft column, but I'd like a formula that allows me to change the table values and updates averages and medians automatically.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Average column if adjacent cells are between a specific number range

    In the attached find the square footage lower and upper boundaries broken out into columns E:F.

    In D11 this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In D12 this array entered formula. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In D13 this formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then array entered in D14.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  3. #3
    Registered User
    Join Date
    10-04-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    4

    Re: Average column if adjacent cells are between a specific number range

    Thank you for the help! Could you explain why the "&" is required in the criteria section of the formula?

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Average column if adjacent cells are between a specific number range

    That is the syntax of those arguments that the IFs family of functions "understands".

    When comparing (<=, <, >=, >, <>) COUNTIF(s), SUMIF(s) and AVERAGEIF(s) require a concatenated string in the criteria. To the best of my knowledge these are the only functions that require this.

    (If you're interested they also take wild cards ... (?*)) Sometimes these need to be concatenated as well.

+ 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. Merge cells with same number within specific column range.
    By akima in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-12-2016, 12:48 AM
  2. [SOLVED] If number in Column A matches number in column B - Copy B cell and adjacent cells ?
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-16-2014, 12:30 PM
  3. Replies: 2
    Last Post: 04-17-2014, 03:30 PM
  4. How can I hide certain adjacent cells if a specific cell is in a range value.
    By Losttwinky in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-24-2013, 04:35 PM
  5. Average range of cells in column if values in adjacent column are equal
    By RyNye in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2012, 10:12 AM
  6. Replies: 7
    Last Post: 03-12-2012, 11:32 PM
  7. Average non-adjacent cells in column
    By raydaw in forum Excel General
    Replies: 1
    Last Post: 05-22-2008, 10:11 AM

Tags for this Thread

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