+ Reply to Thread
Results 1 to 3 of 3

Getting an average when dataset contains < or > in

  1. #1
    Registered User
    Join Date
    11-16-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 365
    Posts
    69

    Getting an average when dataset contains < or > in

    I need to calculate the average for some groups of figures and some of the columns contain figures lower than or greater than
    For instance, one set reads: ≤ 60, ≤ 60, ≤ 60, ≤ 60, 67, ≤ 60, 176, 99, ≤ 60, 74, ≤ 60, 154, ≤ 60, ≤ 60, 114. Is there a formula that I can use ?

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,937

    Re: Getting an average when dataset contains < or > in

    Array-enter (enter using Ctrl-Shift-Enter) a formula like this:

    =AVERAGE(VALUE(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B2:P2,"≤",""),">",""),"<",""),"XXXX",""))))

    Replace the XXXX with the >= character - I'm not sure how to enter it off-hand - and expand the formula with more substitute functions to remove any other special characters in the data.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Getting an average when dataset contains < or > in

    This should find the average of the example for you.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ...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. Press F2 on that cell and try again.

    To include < and > this array formula will cover having all three symbols.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by newdoverman; 11-26-2014 at 11:53 AM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Replies: 5
    Last Post: 10-29-2014, 08:11 AM
  2. Replies: 3
    Last Post: 01-23-2014, 10:13 AM
  3. How to calculate average in a large dataset
    By dolle in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-27-2013, 01:08 PM
  4. Copying a dataset multiple times - and selecting titles for this dataset
    By alocke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2012, 10:15 PM
  5. How to calculate average from large dataset in several sheets?
    By Orf in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-12-2005, 07:10 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