+ Reply to Thread
Results 1 to 16 of 16

Countif and Countifs

Hybrid View

  1. #1
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,694

    Re: Countif and Countifs

    Some of your values in column U have "trailing spaces" - a "C" followed by a space, so that isn't counted. Get rid of those and the formula should count OK.......or you can switch to this version

    =SUMPRODUCT(($C$2:$Z$2=AA$2)*(TRIM($C3:$Z3)={"C";"D";"P";"N"}))

    which uses TRIM in the formula to get rid of any additional spaces - so that should give you the correct count without changing the data
    Audere est facere

  2. #2
    Registered User
    Join Date
    01-14-2013
    Location
    Chesapeake VA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Countif and Countifs

    Thank you so much! I could have never figured that out by myself. I'm glad you had a way to account for the spaces. Like I said, I inherited this schedule so there is no telling how many cells have trailing spaces in them! Now I have to get back to my patients.

    Best Regards,
    Brian Alexander, alias Provider #1

+ 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