+ Reply to Thread
Results 1 to 6 of 6

Count if ('true) does not work

  1. #1
    JMod
    Guest

    Count if ('true) does not work

    I am trying to tabulate the results of a web survey that have been
    stored in a database and ported to excel. Unfortunately the survey
    makes extensive use of True/False questions. Since Excel interperates
    True and False as boolean values in the cell the DB back quoted all
    response as 'true or 'false. But now when I want to count them in a
    [Countif(A2:A23, 'true')]formula I get a 0 returned every time.

    I've tried different ways of trying to get Excell to understand what I
    am looking for, short of manually changing all cell values to TRUE or.
    FALSE. (which could cause data integriy problems)

    any help would really make my job easier.

    -jmod


  2. #2
    Dave Peterson
    Guest

    Re: Count if ('true) does not work

    I'd try one of these:

    =countif(a2:a23,true)
    or
    =countif(a2:a23,"True")





    JMod wrote:
    >
    > I am trying to tabulate the results of a web survey that have been
    > stored in a database and ported to excel. Unfortunately the survey
    > makes extensive use of True/False questions. Since Excel interperates
    > True and False as boolean values in the cell the DB back quoted all
    > response as 'true or 'false. But now when I want to count them in a
    > [Countif(A2:A23, 'true')]formula I get a 0 returned every time.
    >
    > I've tried different ways of trying to get Excell to understand what I
    > am looking for, short of manually changing all cell values to TRUE or.
    > FALSE. (which could cause data integriy problems)
    >
    > any help would really make my job easier.
    >
    > -jmod


    --

    Dave Peterson

  3. #3
    Bob Phillips
    Guest

    Re: Count if ('true) does not work

    It is not clear what formula u r using. If u used

    =COUNTIF(A2:A23,'true') you would get an error.

    If it is because the cells are text, try

    =SUMPRODUCT(--(H9:H17="TRUE"))


    --

    HTH

    RP

    "JMod" <john.g.martinson@gmail.com> wrote in message
    news:1137539661.322668.283620@g47g2000cwa.googlegroups.com...
    > I am trying to tabulate the results of a web survey that have been
    > stored in a database and ported to excel. Unfortunately the survey
    > makes extensive use of True/False questions. Since Excel interperates
    > True and False as boolean values in the cell the DB back quoted all
    > response as 'true or 'false. But now when I want to count them in a
    > [Countif(A2:A23, 'true')]formula I get a 0 returned every time.
    >
    > I've tried different ways of trying to get Excell to understand what I
    > am looking for, short of manually changing all cell values to TRUE or.
    > FALSE. (which could cause data integriy problems)
    >
    > any help would really make my job easier.
    >
    > -jmod
    >




  4. #4
    Bob Phillips
    Guest

    Re: Count if ('true) does not work

    sorry, that was my test range, should be

    =SUMPRODUCT(--(A2:A23="TRUE"))


    --

    HTH

    RP

    "Bob Phillips" <bob.phillips@notheretiscali.co.uk> wrote in message
    news:uiZt727GGHA.984@tk2msftngp13.phx.gbl...
    > It is not clear what formula u r using. If u used
    >
    > =COUNTIF(A2:A23,'true') you would get an error.
    >
    > If it is because the cells are text, try
    >
    > =SUMPRODUCT(--(H9:H17="TRUE"))
    >
    >
    > --
    >
    > HTH
    >
    > RP
    >
    > "JMod" <john.g.martinson@gmail.com> wrote in message
    > news:1137539661.322668.283620@g47g2000cwa.googlegroups.com...
    > > I am trying to tabulate the results of a web survey that have been
    > > stored in a database and ported to excel. Unfortunately the survey
    > > makes extensive use of True/False questions. Since Excel interperates
    > > True and False as boolean values in the cell the DB back quoted all
    > > response as 'true or 'false. But now when I want to count them in a
    > > [Countif(A2:A23, 'true')]formula I get a 0 returned every time.
    > >
    > > I've tried different ways of trying to get Excell to understand what I
    > > am looking for, short of manually changing all cell values to TRUE or.
    > > FALSE. (which could cause data integriy problems)
    > >
    > > any help would really make my job easier.
    > >
    > > -jmod
    > >

    >
    >




  5. #5
    JMod
    Guest

    Re: Count if ('true) does not work

    Thanks Bob that worked like a charm


  6. #6
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Re: Countif ('true) does not work

    I am surprised that after 7years =COUNTIF(A1,A1) with A1='true still produce the wrong answer, 0.
    You would have thought Excel's programmers could fixed it, but it is probably too difficult ;-)
    Mark the problem as Solved under the Yellow bar up Top right, under Thread Tools, when you received a solution.
    It saves time, to skip already solved threads.

+ 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