+ Reply to Thread
Results 1 to 9 of 9

I'm sure this is easy but.....

  1. #1
    Forum Contributor
    Join Date
    10-30-2006
    MS-Off Ver
    O365
    Posts
    311

    I'm sure this is easy but.....

    i have a column like this

    yes
    yes
    no
    yes
    no
    (blank)
    yes
    (blank)
    no

    i am looking for a formula to tell me how many times it says yes, no and (blank) in this column.

    any help would be much appreciated. thanks

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Try

    =COUNTIF(A:A,"Yes")
    =COUNTIF(A:A,"No")
    =COUNTBLANK(A:A)

    Change range as required

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by jimmisavage
    i have a column like this

    yes
    yes
    no
    yes
    no
    (blank)
    yes
    (blank)
    no

    i am looking for a formula to tell me how many times it says yes, no and (blank) in this column.

    any help would be much appreciated. thanks
    Hi,

    try

    ="Yes = "&COUNTIF(A:A,"yes")&" No = "&COUNTIF(A:A,"no")&" (blank) = "&COUNTIF(A:A,"(blank)")

    or use CountBlank is you wanted blanks.

    hth
    ---

    and Hi VBA Noob
    Si fractum non sit, noli id reficere.

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    VBA Noob formulae are excellent ...

    Just be careful with your blank cells ...
    blank means empty ... it does not mean cells blanked with several spaces ...

    HTH
    Carim

  5. #5
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211
    Quote Originally Posted by VBA Noob
    Hi,

    Try

    =COUNTIF(A:A,"Yes")
    =COUNTIF(A:A,"No")
    =COUNTBLANK(A:A)

    Change range as required

    VBA Noob
    You can not use a whole column to count blank. You have to specify a range

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    I did say

    Change range as required

    I would of assumed if he got a return of 64000 he may have guessed something was wrong

    Plus Carim but a note in already if you read the thread " Just be careful with your blank cells "

    VBA Noob
    Last edited by VBA Noob; 12-03-2006 at 04:04 PM.

  7. #7
    Registered User
    Join Date
    11-16-2006
    Posts
    32

    Quick follow up question

    Is there a formula that can count anything other than yes or no.

    i.e
    if 5 boxes shows Yes
    5 showed No
    5 others had various stuff such as NA, blank etc

    So in this case you would have Yes = 5 No = % Other =5 ?

    Thanx

  8. #8
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Please Login or Register  to view this content.
    HTH
    Carim

  9. #9
    Registered User
    Join Date
    11-16-2006
    Posts
    32
    Thanks for the speedy reply

+ 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