+ Reply to Thread
Results 1 to 3 of 3

COUNTIF Question

Hybrid View

  1. #1
    Registered User
    Join Date
    05-07-2020
    Location
    Albany, NY
    MS-Off Ver
    2007
    Posts
    7

    COUNTIF Question

    What does COUNTIF look at in a cell? Is it the underlying data, or is it what is actually displayed (due to formatting)? In the attached, I expect A12 to show 2, since there are two cells which say "Thu" There are actually 4 cells which contain a date which is a Thursday. How do I get this to count the two cells with Thu, and not the two other cells which happen to have Thursday dates?
    Attached Files Attached Files
    Last edited by fathafluff; 04-28-2021 at 02:55 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,463

    Re: COUNTIF Question

    Excel will always count 4 as the underlying data is a date (number) and the "Thu" is simply a formatting option.

    Why do you want to do this anyway?

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,813

    Re: COUNTIF Question

    One way:
    Formula: copy to clipboard
    =SUMPRODUCT(--(IFERROR(WEEKDAY($A$2:$A$9,2),0)=4))
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. If COUNTIF Question
    By cmsnelson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-07-2020, 10:59 AM
  2. [SOLVED] Excel 2007 : CountIF question
    By synses in forum Excel General
    Replies: 4
    Last Post: 07-05-2012, 12:37 PM
  3. countif question
    By Jimbob12 in forum Excel General
    Replies: 2
    Last Post: 05-07-2008, 09:37 AM
  4. Countif Question
    By Selo in forum Excel General
    Replies: 9
    Last Post: 04-20-2007, 02:33 PM
  5. countif question
    By pentatonic145 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2007, 04:35 PM
  6. RE: Countif question
    By Kleev in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-14-2005, 05:30 PM
  7. CountIf question
    By narutard in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2005, 08:25 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