+ Reply to Thread
Results 1 to 5 of 5

Countif Issue

  1. #1
    Registered User
    Join Date
    02-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    80

    Countif Issue

    Hi

    I have issue with Countif function.

    I have following formula in E10 cell

    =IF(COUNTIF(G10:V10,$E$4)=0,"",COUNTIF(G10:V10,$E$4))

    and following in F10 cell

    =IF(COUNTIF(G10:V10,$F$4)=0,"",COUNTIF(G10:V10,$F$4))

    I am trying to add the value together form cell E10&F10 into cell D10, BUT it produces #VA:UE!.

    All i am trying to do is not to display ZERO in Countif formula and add to cell together.

    PLEASE CAN SOMEONE HELP ME.

    Regards

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Countif Issue

    try this...

    =sum(E10:F10)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    80

    Re: Countif Issue

    Quote Originally Posted by FDibbins View Post
    try this...

    =sum(E10:F10)
    Hi

    I can't use SUM function as cell has TEXT data, that the reason why i have to use COUNTIF.

    REgards

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Countif Issue

    SUM() ignores text values so it should not be a problem.

    You could simply use in E10
    =COUNTIF(G10:V10,$E$4)
    and format cells as 0;-0; to hide (not display) zero values and similarly for F10.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Countif Issue

    I wasnt suggesting you replace your count formula, I meant use SUM() to add the 2 answers together.

+ 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. COUNTIF issue resolution
    By Backroomgeeza in forum Excel General
    Replies: 5
    Last Post: 04-24-2012, 07:24 AM
  2. COUNTIF issue
    By JO505 in forum Excel General
    Replies: 4
    Last Post: 05-29-2011, 09:13 PM
  3. CountIf & AND Operator Issue
    By chrisbrayden in forum Excel General
    Replies: 3
    Last Post: 05-23-2011, 03:18 AM
  4. CountIF issue
    By edmdas in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-03-2007, 11:48 AM
  5. [SOLVED] issue with countif in vba
    By Xavier Minet in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2005, 11:05 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