+ Reply to Thread
Results 1 to 4 of 4

Countif multiple cells if cell 1 equals X

  1. #1
    Registered User
    Join Date
    04-30-2010
    Location
    Pebble Beach, California
    MS-Off Ver
    2016
    Posts
    44

    Countif multiple cells if cell 1 equals X

    I have a spreadsheet where C3 has a capital X as the text in it. Cells E3 through AF3 have a value in each of them ranging from 1 to 5. I want to calculate that if C3 has an X, then tell me how many 5's are there total in cells E3 through AF3. I know I can get the total number of 5's using =(COUNTIF(E3:AF3, "5")). but I'm stuck on qualifying it with if C3 has an X or not.

    EDIT:

    OK, so I think I figured it out. =IF(C3="X",(COUNTIF(E3:AF3, "5")))

    However, IF the result is False (IE: no X, therefore no value) how do I get it to show zero?
    Last edited by argentraven; 10-30-2015 at 03:00 PM.

  2. #2
    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
    48,484

    Re: Countif multiple cells if cell 1 equals X

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    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


  3. #3
    Registered User
    Join Date
    04-30-2010
    Location
    Pebble Beach, California
    MS-Off Ver
    2016
    Posts
    44

    Re: Countif multiple cells if cell 1 equals X

    Awesome!! Thank you!

  4. #4
    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
    48,484

    Re: Countif multiple cells if cell 1 equals X

    You're welcome. Thanks for the rep.

+ 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. Counting data across multiple cells using a cell specific formula in countif
    By Brighteyed in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-24-2015, 10:04 PM
  2. Copy certain cells from a row to another sheet if cell equals value
    By Nikc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2014, 06:13 AM
  3. Count cells containing unique text in cell A if cell B equals i.e. 1
    By killi3000 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-14-2014, 09:32 AM
  4. [SOLVED] CountIf Date Equals Specific "Month" Across Multiple Columns
    By molson1973 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-31-2014, 01:12 PM
  5. [SOLVED] If a cell equals X, then format that many cells for input?
    By ppjn348 in forum Excel General
    Replies: 5
    Last Post: 12-01-2012, 02:24 AM
  6. Replies: 15
    Last Post: 06-27-2011, 08:58 PM
  7. If all cells equals a value then format a cell
    By Post2gary in forum Excel General
    Replies: 1
    Last Post: 06-12-2011, 05:42 PM

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