+ Reply to Thread
Results 1 to 6 of 6

Trying to use COUNTIFS to count prior year orders in a current month

  1. #1
    Registered User
    Join Date
    03-05-2016
    Location
    Amarillo
    MS-Off Ver
    2010
    Posts
    3

    Trying to use COUNTIFS to count prior year orders in a current month

    Good morning all,

    I have a spreadsheet that tracks open/closed orders. One of the tasks of this spreadsheet is to determine how many orders were closed or canceled in the current month that were opened in prior years.

    Some background:

    One tab per month (jan, feb, etc.)

    I track orders closed during the month.

    I want to count the number of orders closed that were opened in a prior year. (ex: 2015).

    I have a separate tab created that I use for data validation purposes. On this tab, I have created cells that contain the prior years that I am interested in tracking.

    I am trying to use the COUNTIFS formula with a cell reference to my data validation tab, but the cell reference is not working and thus my reason for posting.

    Perhaps I cannot accomplish my task with the COUNTIFS formula.

    Any suggestions as to how this can be accomplished? I did not save my spreadsheet with the formula I was trying to use. I am now going back and retrying the formula and will post what I am trying in a bit. In the mean time, if anyone has any idea of how to easily do this, please let me know.

    Thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2007
    Posts
    352

    Re: Trying to use COUNTIFS to count prior year orders in a current month

    without any sample workbook no, if you can provide us a sample file then it will be better.
    If answer helped you say Thanks by Add Reputation

  3. #3
    Registered User
    Join Date
    03-05-2016
    Location
    Amarillo
    MS-Off Ver
    2010
    Posts
    3

    Re: Trying to use COUNTIFS to count prior year orders in a current month

    Here is a sample of the formula I am working with:

    =COUNTIFS(d3:d300, ">="Data!&j2,d3:d300,"<="Data!&k2) where j2 is the first day of the desired year and k2 is the last day of the desired year. I need to be able to use cell referencing in order to allow minimal changes to the spreadsheet when the year rolls.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Trying to use COUNTIFS to count prior year orders in a current month

    Quote Originally Posted by NiceTxn View Post
    Here is a sample of the formula I am working with:

    =COUNTIFS(d3:d300, ">="Data!&j2,d3:d300,"<="Data!&k2)
    Try it like this:

    =COUNTIFS(D3:D300,">="&Data!J2,D3:D300,"<="&Data!K2)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    03-05-2016
    Location
    Amarillo
    MS-Off Ver
    2010
    Posts
    3

    Re: Trying to use COUNTIFS to count prior year orders in a current month

    LOL...thanks Tony....I think I got blinded by the forest and could not see the trees. Simply moving the & to the correct spot seems to do what I needed. Thanks again.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Trying to use COUNTIFS to count prior year orders in a current month

    You're welcome. Thanks for the feedback!

+ 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. [SOLVED] Count cell only if date matches current month & year
    By SadOfficeWorker in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-14-2016, 02:51 AM
  2. [SOLVED] Set PivotTable Filter to Current Day, Current Week, Current Month, or Current Year
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2014, 08:31 AM
  3. Replies: 2
    Last Post: 03-14-2014, 08:47 PM
  4. Convert date from current month to first day of prior month
    By maacmaac in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-07-2010, 12:23 PM
  5. Replies: 4
    Last Post: 02-14-2010, 05:21 AM
  6. formula for prior month & year of a month end date.
    By mikeburg in forum Excel General
    Replies: 2
    Last Post: 09-25-2007, 04:01 PM
  7. How to compare current year to prior year in bar chart?
    By substring in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-12-2005, 02:06 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