+ Reply to Thread
Results 1 to 3 of 3

cell references in "COUNTIFS" function

  1. #1
    Registered User
    Join Date
    07-30-2007
    Posts
    2

    Question cell references in "COUNTIFS" function

    Hello. I'm a long time excel user, but this is my first post here.

    I'm using the following countifs function:

    =COUNTIFS('user data'!$B$3:$B$10000,$I4,'user data'!$C$3:$C$10000,">=7/23/2007",'user data'!$C$3:$C$10000,"<7/30/2007")

    I'm trying to count all of the items for each user that were created between two dates. It would be much easier if I could replace the dates with cell references, but when I tried, the counts all went to zeros.

    =COUNTIFS('user data'!$B$3:$B$10000,$I4,'user data'!$C$3:$C$10000,">=AS2",'user data'!$C$3:$C$10000,"<AT2")

    I'm afraid I'm missing some small piece of syntax, (like not using quotes or something). Anyone know what the problem is here?

    Thanks.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try like this

    =COUNTIFS('user data'!$B$3:$B$10000,$I4,'user data'!$C$3:$C$10000,">="&AS2,'user data'!$C$3:$C$10000,"<"&AT2)

  3. #3
    Registered User
    Join Date
    07-30-2007
    Posts
    2
    daddylonglegs, you're my HEEEEEERO!!!!!

    I never would have figured that out and could not find the answer anywhere online. Thank you, thank you, thank you.

+ 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