+ Reply to Thread
Results 1 to 7 of 7

COUNTIFS formula for multiple criteria referencing a formatted table

Hybrid View

  1. #1
    Registered User
    Join Date
    08-22-2014
    Location
    San Diego, Ca
    MS-Off Ver
    2010
    Posts
    33

    COUNTIFS formula for multiple criteria referencing a formatted table

    Hello,

    I have never had a problem with this formula before, except now that I am using the same formula in a worksheet that references another worksheet formatted as a table in the same workbook. I could just be doing something wrong. Hopefully you are still following me. Not sure if this has anything to do with why my formula won't work, but the table is connected to a share point list that updates upon opening.

    First: I need to count every cell in the column "Equipment Install Date" during the month of January.
    Secondly: I need to only count the entries made that apply to the "host printers" in the "Element Title" column.

    This is the formula I am using which doesn't bring back any values. What am I doing wrong?

    =COUNTIFS(Table_owssvr[Equipment Install Date],">1/1/2015",Table_owssvr[Equipment Install Date],"<1/31/2015",Table_owssvr[Element Title],"=Host Printers")

    *Note: "Table_owssvr" is the tab name that has connections to a Sharepoint list.
    "Equipment Install Date" is the name of the column. For some reason it doesn't reference the range.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: COUNTIFS formula for multiple criteria referencing a formatted table

    Try this:
    Change "=Host Printers" to "Host Printers"

  3. #3
    Registered User
    Join Date
    08-22-2014
    Location
    San Diego, Ca
    MS-Off Ver
    2010
    Posts
    33

    Re: COUNTIFS formula for multiple criteria referencing a formatted table

    I tried your suggestion above and that did not work. Any other suggestions?

    =COUNTIFS(Table_owssvr[Equipment Install Date],">1/1/2015",Table_owssvr[Equipment Install Date],"<1/31/2015",Table_owssvr[Element Title],"Host Printers")

  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: COUNTIFS formula for multiple criteria referencing a formatted table

    Use cells to hold the date criteria:

    A1 = 1/1/2015
    B1 = 12/31/2015

    =COUNTIFS(Table_owssvr[Equipment Install Date],">"&A1,Table_owssvr[Equipment Install Date],"<"&B1,Table_owssvr[Element Title],"Host Printers")

    By using > and < you're excluding 1/1/2015 and 12/31/2015 from the count.

    Did you mean >= and <= which will include all dates within the year 2015?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    08-22-2014
    Location
    San Diego, Ca
    MS-Off Ver
    2010
    Posts
    33

    Re: COUNTIFS formula for multiple criteria referencing a formatted table

    I think I figured it out. The column that had the install date in it also contained other text such as "TBD". I don't think the formula was recognizing it. I created another column with just the dates and it worked. See below my new formula.

    =COUNTIFS(Table_owssvr[Install Date],">="&Formulas!R38,Table_owssvr[Install Date],"<="&Formulas!S38,Table_owssvr[Element Title],"=Host Printers")

  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: COUNTIFS formula for multiple criteria referencing a formatted table

    Good deal. Thanks for the feedback!

  7. #7
    Registered User
    Join Date
    08-22-2014
    Location
    San Diego, Ca
    MS-Off Ver
    2010
    Posts
    33

    Re: COUNTIFS formula for multiple criteria referencing a formatted table

    Hi Tony,

    I put that formula in and there is no return of data. I have 1 entry (on 1/5/2015) for host printers in the column of Equipment Install date. I really think it has something to do with the table. I haven't ever created formulas from a formatted table before (the data is exported from a Sharepoint list). Could this be the issue?

    =COUNTIFS(Table_owssvr[Equipment Install Date],">="&Formulas!R38,Table_owssvr[Equipment Install Date],"<="&Formulas!S38,Table_owssvr[Element Title],"Host Printers")

    You are correct about >= and <= . Trying to capture what happened during the month of January. How many installs (Equipment Install Date) as it pertains to host printers (Equipment Title).

+ 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] Referencing another cell in a COUNTIFS formula
    By ed4ed2ed in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2015, 03:13 PM
  2. [SOLVED] Referencing criteria listed in column with COUNTIFS function
    By wagstaffjh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-15-2014, 12:31 PM
  3. Formula countifs with multiple criteria
    By jpecor2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2013, 08:00 PM
  4. COUNTIFS formula multiple criteria
    By rjc1971 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-18-2013, 09:56 PM
  5. COUNTIFS - Referencing a Table with Multiple Criteria/Conditions
    By MediaTrap in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-06-2013, 03:58 AM
  6. Replies: 2
    Last Post: 11-12-2009, 10:31 PM
  7. Replies: 2
    Last Post: 06-23-2008, 09:28 AM

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