+ Reply to Thread
Results 1 to 4 of 4

Count Function

Hybrid View

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    34

    Question Count Function

    Help please!

    I have a spreadsheet that lists categories with primary and secondary vendors with contract start and end dates. What I am looking to do is a count on the expiration date for a particular category for the primary vendor. Here is the funtion I did but it is returning a count of all the expiration dates over all categories. How can I change this formula to only count the expiration dates for Carpet Cleaning Primary vendors?


    =IF(AND('Vendor Contracts'!G:G="Carpet Cleaning", 'Vendor Contracts'!H:H="Primary"),COUNT('Vendor Contracts'!L:L))

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,657

    Re: Count Function

    Try with COUNTIFS:
    =COUNTIFS('Vendor Contracts'!G:G,"Carpet Cleaning", 'Vendor Contracts'!H:H,"Primary",'Vendor Contracts'!L:L,">0")
    Quang PT

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

    Re: Count Function

    Try

    =COUNTIFS('Vendor Contracts'!G:G,"Carpet Cleaning", 'Vendor Contracts'!H:H,"Primary",'Vendor Contracts'!L:L,">=1/1/2013")

    Where the expiration date is 1/1/2013

  4. #4
    Registered User
    Join Date
    04-18-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Count Function


    Thank you. That worked perfect!

+ 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