+ Reply to Thread
Results 1 to 14 of 14

Count cells

  1. #1
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Count cells

    Hi guys, i want to count cells only if the formula in an area returns a number.
    So i use this formula and then i drag and drop down for other cells.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell F1 and others contains this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But it count all cells, even the cells who dont have any number.
    What i have done wrong?
    Nick

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Count cells

    COUNTA will count all cells that are not empty, including formula blanks. Use COUNT instead.

  3. #3
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Count cells

    Thanks for your opinion but COUNT doing the same thing. Any other advice please?

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Count cells

    Not without more information.

    What results are you getting from the formula?

    What results are you expecting?

  5. #5
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Count cells

    Ok,
    so lets say in column A and B,
    If the formula SUMIFS in cell B1 returns any number i want in cell A1 the number 1. If returns nothing i want cell A1 empty.
    If the formula SUMIFS in cell B4 returns any number i want in cell A4 the number 1. If returns nothing i want cell A4 empty.
    I want to count only the cells which returning any number from formula, but its a list and some formulas in rows doesnt return numbers.

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Count cells

    So you just want

    =IF(ISNUMBER(F1),1,"")

    No need to count anything.

  7. #7
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Count cells

    Ohh... Formula in F1 doesnt return any nymber and it gives me 1, same result if return number or not..

  8. #8
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Count cells

    That doesn't make sense, are you saying that the formula is still giving the wrong results?

  9. #9
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Count cells

    And yes! i need to count all cells with formulas which returns any number. But doesnt are all results one after one. Some rows through list are without numbers.

  10. #10
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Count cells

    Yes it still give wrong result. If i delete the formula from F1, formula in A1 works good.
    I dont know if something goes wrong with the F1 formula, the formula in A1 counts the formula and not the result of this. The SUMIFS formula works and give me the results that i want.

  11. #11
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Count cells

    Something I did not pay much attention to earlier.

    You're counting cells that contain a SUMIFS formula, SUMIFS will always return a number, meaning that every cell with a formula will be counted.

  12. #12
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Count cells

    Yes youre right, i was have #"" in format and it not showing zeros.. Sorry.
    So i try now (in real area list starts from row 10)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and it count only the cells which return 1 or higher.
    Now the first cells formula which return a number 1 or higher in column E is in third row of list and in cell C10 i take the number 3. I want to take the number 1.
    The next number >=1 is in fifth row and it gives in C14 number 5, i want to take number 2.
    Is this possible?

  13. #13
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Count cells

    Try this one

    =IF(N(F1),COUNTIF($F$1:$F1,">0"),"")

  14. #14
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Count cells

    Ohhh jason you are the best! Thank you very much for your solution, i searching a long long time for this and thanks to you i have now the solution. Thanks again.

+ 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. Count if: Compare 2 ranges and count where cells in same row differ
    By ExcelFed in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2014, 02:34 PM
  2. [SOLVED] Count formula not count hidden cells in table
    By tlacloche in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2013, 02:35 PM
  3. [SOLVED] Formula needed to only count total cells entered and not count adjacent text entered cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-07-2013, 06:22 PM
  4. [SOLVED] count cells that contain text but do not count cells containing only a formula
    By cprpacific in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-13-2013, 03:15 PM
  5. [SOLVED] Count in a range, where identical adjacent cells count as one instance.
    By the-algebraist in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-05-2013, 11:18 AM
  6. [SOLVED] count occupied cells, but put count total in different worksheet
    By NewbieOfVBA in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2012, 07:30 PM
  7. Replies: 2
    Last Post: 06-24-2010, 04:53 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