+ Reply to Thread
Results 1 to 10 of 10

Counting a range of cells based upon dates and info

  1. #1
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    140

    Counting a range of cells based upon dates and info

    Hi

    I have a spreadsheet with information regarding quotes that we do, and these quotes are done by 4 different people

    I want to be able to analyse who does the most quotes per month.

    So for example in february and march, we have NB, JB, PL and AH quoting, i want to be able to count how many quotes are done by each one per month

    hope this helps

    thanks

  2. #2
    Forum Contributor
    Join Date
    02-14-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    128

    Re: Counting a range of cells based upon dates and info

    Please attach the sample file with before and after
    Manikandan Arumugam
    Excel Learner

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Counting a range of cells based upon dates and info

    you could try countifs (test)

    I am getting a sucuri block when I try to post a formula. sorry.
    Last edited by Sam Capricci; 03-29-2017 at 08:14 AM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    140

    Re: Counting a range of cells based upon dates and info

    I think i've found it using countifs and a few ranges and criteria. thanks!

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Counting a range of cells based upon dates and info

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    140

    Re: Counting a range of cells based upon dates and info

    i've not figured out the final formula, if you see the attached spreadsheet i need a formula to adhere to all of these criteria

    Quotes in January, done by NB and has a job number

    i tried by my answer wasn't correct
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Counting a range of cells based upon dates and info

    Hi,

    this is a kind of countifs for NB, January 2017


    =SUMPRODUCT((C$2:C$102="NB")*(D$2:D$102<>"")*(MONTH(B$2:B$102)=1)*(YEAR(B$2:B$102)=2017))


    If you'd need to count every January, delete the red segment of the formula.


    Hope it helps
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  8. #8
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    140

    Re: Counting a range of cells based upon dates and info

    Then whatabout february?

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Counting a range of cells based upon dates and info

    Try

    =COUNTIFS(B:B,">="&E2,B:B,"<="&EOMONTH(E2,0),C:C,"NB",D:D,"?*")

    E2 =01/01/2017

  10. #10
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Counting a range of cells based upon dates and info

    this is the formula I was trying to post earlier...
    =COUNTIFS(A1:A20,"NB",B1:B20,"> 42794",B1:B20,"< 42826") where 42795 is the numeric value for 3/1/2017 and 42826 for 4/1/2017.
    I had to add spaces to get it past the firewall but it works either way, adjust for your fields.

+ 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. Counting a range of cells with dates within a certain range
    By MSE in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-17-2017, 05:03 PM
  2. [SOLVED] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-20-2014, 07:42 PM
  3. [SOLVED] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2014, 07:55 AM
  4. Replies: 4
    Last Post: 06-13-2014, 07:08 PM
  5. counting blank cells in range based on condition using another column
    By TheBlueBell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-14-2013, 04:58 PM
  6. Counting a value based on a range of dates
    By Sean Donohoe in forum Excel General
    Replies: 2
    Last Post: 11-18-2009, 12:44 PM
  7. [SOLVED] counting valid dates in a range of cells
    By TBA in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-28-2006, 11:45 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