+ Reply to Thread
Results 1 to 11 of 11

Including values in range if it meets two criteria.

  1. #1
    Registered User
    Join Date
    05-30-2016
    Location
    Copenhagen
    MS-Off Ver
    2011 Mac
    Posts
    14

    Including values in range if it meets two criteria.

    Hey peeps.

    I might be stupid here, but I have been sitting with this problem for some hours and I cant really get it to work.
    I have a big (10.000) range of data, of which I want to find a min. value, a max. value and calculate an average value.
    However, there are some fluctuations in the data, which should not be included and therefore do I not want to include
    values below 20 or above 35.

    How do I set up a function to manage this instead of having to specify the different ranges manually?

    Thank you in advance.

    - Rasmus
    Attached Files Attached Files
    Last edited by Rasmusvwn; 06-03-2016 at 02:56 PM.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Including values in range if it meets two criteria.

    Can you post a sample workbook?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    05-30-2016
    Location
    Copenhagen
    MS-Off Ver
    2011 Mac
    Posts
    14

    Re: Including values in range if it meets two criteria.

    Quote Originally Posted by mikeTRON View Post
    Can you post a sample workbook?
    I have uploaded a workbook in the top.

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Including values in range if it meets two criteria.

    Helper column:
    in D2
    Please Login or Register  to view this content.
    Then Min:
    Please Login or Register  to view this content.
    Max:
    Please Login or Register  to view this content.
    Average:
    Please Login or Register  to view this content.
    To check, you can FILTER with BETWEEN then set the less than to 35 and greater than to 20. you can see the average when you select it all. and the min and max are at the top and bottom of the filter.

  5. #5
    Registered User
    Join Date
    05-30-2016
    Location
    Copenhagen
    MS-Off Ver
    2011 Mac
    Posts
    14

    Re: Including values in range if it meets two criteria.

    Quote Originally Posted by mikeTRON View Post
    Helper column:
    in D2
    Please Login or Register  to view this content.
    Then Min:
    Please Login or Register  to view this content.
    Max:
    Please Login or Register  to view this content.
    Average:
    Please Login or Register  to view this content.
    To check, you can FILTER with BETWEEN then set the less than to 35 and greater than to 20. you can see the average when you select it all. and the min and max are at the top and bottom of the filter.
    Of course, thank you very much mikeTRON (Y) I never thought of a helping column. By changing the or-function with an and-function does it give me exactly what I need. Thank you very much!

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Including values in range if it meets two criteria.

    Yeah, helper columns can make other formulas MUCH more simple.

  7. #7
    Registered User
    Join Date
    05-30-2016
    Location
    Copenhagen
    MS-Off Ver
    2011 Mac
    Posts
    14

    Re: Including values in range if it meets two criteria.

    So simple, but so helpful! KISS - doesn't have to be complicated

  8. #8
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Including values in range if it meets two criteria.

    Yeah I had to triple check your question because it just seemed too easy to solve. Haha

  9. #9
    Registered User
    Join Date
    05-30-2016
    Location
    Copenhagen
    MS-Off Ver
    2011 Mac
    Posts
    14

    Re: Including values in range if it meets two criteria.

    Easy point, eh!

  10. #10
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Including values in range if it meets two criteria.

    Ha, yeah.
    Usually solving people's questions is a fresh perspective and/or the ability to re-frame the problem and use excel's native functionality (like pivot tables which I almost recommended as well.)

  11. #11
    Registered User
    Join Date
    05-30-2016
    Location
    Copenhagen
    MS-Off Ver
    2011 Mac
    Posts
    14

    Re: Including values in range if it meets two criteria.

    True.
    I found the love for pivot tables not long ago and for large data sets is it really a dealbreaker..!

+ 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. Highest Value in a range that meets criteria
    By HalPlz in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-29-2015, 07:51 PM
  2. How to SUM or SUBTOTAL a set of values if it meets certain criteria?
    By rangatang1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-26-2014, 02:47 AM
  3. [SOLVED] Count values in a range if adjacent cell meets a particular criteria
    By DougC in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-22-2013, 03:12 PM
  4. MAX (IF) to be used like SUMIF. Need max of a range that meets criteria.
    By catsmith in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-05-2013, 11:35 PM
  5. [SOLVED] Add a range of values when an adjacent cell meets criteria
    By Steven811 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-19-2012, 06:04 AM
  6. [SOLVED] Count a range of cells if another range meets criteria
    By LadySetsuka in forum Excel General
    Replies: 8
    Last Post: 04-14-2012, 10:09 AM
  7. [SOLVED] Delete a range that meets certain criteria
    By sans in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-11-2012, 06:09 PM

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