+ Reply to Thread
Results 1 to 3 of 3

Count based on 3 criteria including value range

  1. #1
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Count based on 3 criteria including value range

    I am trying to count the number of trips and people that spent within a specific dollar range and mile radius. I am able to count totals, but need to break it down by mileage. Attached is my worksheet with the fields highlighted in Yellow that I am needing to complete. Thank you!

    Count people and trips per level.xlsx

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Count based on 3 criteria including value range

    F5: =COUNTIFS($E$20:$E$2630, F$2, $C$20:$C$2630, ">="&$B5)
    G5: =SUMIFS($B$20:$B$2630, $E$20:$E$2630, F$2, $C$20:$C$2630, ">="&$B5)

    F6: =COUNTIFS($E$20:$E$2630, F$2, $C$20:$C$2630, ">="&$B6, $C$20:$C$2630, "<"&$B5)
    G6: =SUMIFS($B$20:$B$2630, $E$20:$E$2630, F$2, $C$20:$C$2630, ">="&$B6, $C$20:$C$2630, "<"&$B5)

    Copy F6:G6 down.
    Copy F5:G15 and paste over H5:O15.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: Count based on 3 criteria including value range

    Brilliant! Thank you!!

+ 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: 6
    Last Post: 04-20-2015, 07:22 AM
  2. Replies: 2
    Last Post: 01-15-2015, 10:16 AM
  3. Replies: 4
    Last Post: 12-21-2013, 09:23 PM
  4. [SOLVED] INDEX MATCH based on 5 criteria, including a date range.
    By Folshot in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2013, 09:35 PM
  5. [SOLVED] Count based on 3 criteria including date range
    By timarcarze in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 06-13-2013, 01:43 AM
  6. Replies: 6
    Last Post: 11-11-2012, 12:40 AM
  7. [SOLVED] Count months based on criteria and range.
    By Toli in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-20-2012, 11:23 PM

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