+ Reply to Thread
Results 1 to 11 of 11

fuction which counts not empty cells in a column and shows how many of it a given text

Hybrid View

  1. #1
    Registered User
    Join Date
    06-29-2021
    Location
    Békés, Hungary
    MS-Off Ver
    2016
    Posts
    10

    fuction which counts not empty cells in a column and shows how many of it a given text

    Hi Guys!

    I am looking for a function which counts how many not empty cells in a column and than it shows that how many are a text string like "Win" So actually I have a column with texts: Win or Lose and I want to count how many of these cells are "Win" out of all win and lose.

    Thank you all the help,

    Martin
    Attached Files Attached Files
    Last edited by precike123; 07-23-2021 at 01:07 PM.

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: fuction which counts not empty cells in a column and shows how many of it a given text

    Maybe:
    =COUNTIF(A:A,"WIN")

  3. #3
    Registered User
    Join Date
    06-29-2021
    Location
    Békés, Hungary
    MS-Off Ver
    2016
    Posts
    10

    Re: fuction which counts not empty cells in a column and shows how many of it a given text

    It is not working for me. And I think it should be 2 function or 2 in 1 because it has to count how many cells are not empty in a column and how many are "Win".

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,606

    Re: fuction which counts not empty cells in a column and shows how many of it a given text

    You said in the workbook that you wanted this:

    =COUNTIF(A:A;"<>")

    and this:

    =COUNTIF(A:A;"WIN")

    ; for a European locale

    but you did NOT tell us the values that you were expecting. You still haven't told us this, so the ball is in your court.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    06-29-2021
    Location
    Békés, Hungary
    MS-Off Ver
    2016
    Posts
    10

    Re: fuction which counts not empty cells in a column and shows how many of it a given text

    I am sorry I am a beginner, but what do you mean by value? These functions you wrote are not working for me, maybe because I want to count texts and not numbers? So If I rewrite the "Win" to "1" and "Lose" to "2" it will work maybe.
    Last edited by AliGW; 07-23-2021 at 01:25 PM. Reason: PLEASE don't quote unnecessarily!

  6. #6
    Registered User
    Join Date
    06-29-2021
    Location
    Békés, Hungary
    MS-Off Ver
    2016
    Posts
    10

    Re: fuction which counts not empty cells in a column and shows how many of it a given text

    I tried it with numbers instead of text and still says: #NAME?
    Last edited by AliGW; 07-23-2021 at 01:32 PM. Reason: PLEASE don't quote unnecessarily!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,606

    Re: fuction which counts not empty cells in a column and shows how many of it a given text

    You do not say in what way you think they don't work. COUNTIF is designed to count text or numbers AND it works for me on your data:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    1
    Win
    14
    =COUNTIF(A:A,"<>")
    2
    Win
    10
    =COUNTIF(A:A,"WIN")
    3
    Win
    4
    Lose
    5
    Win
    6
    Win
    7
    Win
    8
    Win
    9
    Lose
    10
    Lose
    11
    Win
    12
    Lose
    13
    Win
    14
    Win
    Sheet: Munka1

    So more details, please. Maybe your sample data is too different to your real data.
    Last edited by AliGW; 07-24-2021 at 01:58 AM.

  8. #8
    Registered User
    Join Date
    06-29-2021
    Location
    Békés, Hungary
    MS-Off Ver
    2016
    Posts
    10

    Re: fuction which counts not empty cells in a column and shows how many of it a given text

    I am triing in on the sample sheet exactly like your example with ; instead of , and still says: #NAME?
    Last edited by AliGW; 07-23-2021 at 01:32 PM. Reason: PLEASE don't quote unnecessarily!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,606

    Re: fuction which counts not empty cells in a column and shows how many of it a given text

    You need to use the Hungarian version of the function!!!

    =DARABTELI(A:A;"<>")

    =DARABTELI(A:A;"WIN")

    https://en.excel-translator.de/translator/

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.
    Last edited by AliGW; 07-23-2021 at 01:34 PM.

  10. #10
    Registered User
    Join Date
    06-29-2021
    Location
    Békés, Hungary
    MS-Off Ver
    2016
    Posts
    10

    Re: fuction which counts not empty cells in a column and shows how many of it a given text

    Works with the Hungarian function, thank you very much for your help and patient. Have a nice day.
    Last edited by AliGW; 07-23-2021 at 01:36 PM. Reason: PLEASE stop quoting unnecessarily!

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,606

    Re: fuction which counts not empty cells in a column and shows how many of it a given text

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. [SOLVED] duplicate text in empty cells along the column until new text appears in that column
    By aaaaa34 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-23-2019, 07:01 AM
  2. [SOLVED] COUNT also counts empty cells in an array function??
    By edward_glyver in forum Excel General
    Replies: 20
    Last Post: 04-25-2016, 11:34 AM
  3. How to prevent row/column counts from counting empty/blank rows?
    By reach78 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-17-2013, 01:38 AM
  4. Replies: 2
    Last Post: 05-08-2013, 04:56 PM
  5. Replies: 3
    Last Post: 11-13-2012, 04:43 PM
  6. Month() counts empty cells?
    By Armitage2k in forum Excel General
    Replies: 2
    Last Post: 05-02-2012, 01:41 AM
  7. [SOLVED] how insert same text in empty cells in column (10000 rows)
    By bromptongadgets in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2005, 11:15 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