+ Reply to Thread
Results 1 to 3 of 3

Need to calculate average if values fall into EITHER range.

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    1

    Need to calculate average if values fall into EITHER range.

    I have two ranges that can be met.

    If value falls into EITHER one of those ranges I want to to calculate the average, if it doesnt fit into either one then i want to display not in range.

    I also want to determine either A or B based on what range it falls under.

    Pretty much i want to label something A if it falls into range 1 or label it b if it falls into range 2, and display "no good" if it doesnt fall into either range.

    I dont know if im conveying my issue properly. Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need to calculate average if values fall into EITHER range.

    The max of B is within the range of A.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need to calculate average if values fall into EITHER range.

    Please Login or Register  to view this content.
    The formula in C2 and copied down is

    =CHOOSE((MEDIAN(B2, $F$2:$G$2)=B2) + 2 * (MEDIAN(B2, $F$3:$G$3) = B2) + 1, "Neither", "A", "B", "Both")

    In B11,

    =AVERAGEIF($C$2:$C$9, "<>Neither", $B$2:$B$9)
    Entia non sunt multiplicanda sine necessitate

+ 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. Count Unique values if they fall between a date range
    By Racecarjoe in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-24-2012, 06:41 PM
  2. Replies: 1
    Last Post: 08-06-2011, 01:05 AM
  3. Count the number of values that fall with in a range
    By nynamyna in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2011, 08:39 AM
  4. Replies: 7
    Last Post: 11-10-2009, 09:42 AM
  5. Replies: 4
    Last Post: 04-05-2008, 10:43 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