+ Reply to Thread
Results 1 to 3 of 3

COUNTIFS Error

  1. #1
    Registered User
    Join Date
    06-25-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    4

    COUNTIFS Error

    Hello everyone,

    Just trying to get a Countifs to work for a table on income using dates.

    I have the formula working for SUMIFS, and I thought all it would require is to paste formula and change SUMIFS to COUNTIFS, but apparently it's never that easy. Below is the formula as it stands now:

    =COUNTIFS('Income'!$D:$D,'Income'!$A:$A,">="&DATE(2012,1,1),'Income'!$A:$A,"<"&DATE(2013,1,1))

    Can anyone tell me what I'm getting wrong with this? Thank you

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

    Re: COUNTIFS Error

    You probably don't want the reference to column D:

    =COUNTIFS('Income'!$A:$A,">="&DATE(2012,1,1),'Income'!$A:$A,"<"&DATE(2013,1,1))

    It would better to use cells to hold the dates:

    A1 = 1/1/2012
    B1 = 1/1/2013

    =COUNTIFS('Income'!$A:$A,">="&A1,'Income'!$A:$A,"<"&B1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: COUNTIFS Error

    Since it's no longer a 'SUM', then you have to remove the 'RangeToSum' (D:D)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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