Excel Countif and sum functions not working

Anonymous
2019-11-06T18:32:52+00:00

I have a spreadsheet of reservations for a room. It lists who is responsible for that reservation.  At the top, I have a summary where it will count each name and give a total (ie - "=countif I:I,A2" where "A2" is the persons name).  This works fine.  I then try to sum this column of numbers. The function arguments box while I build it gives the "formula result= 37" but when I hit OK, the cell says "0" and I can't run my other formula based on that total.  What is going on???? How do I fix it????

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

9 answers

Sort by: Most helpful
  1. Anonymous
    2019-11-06T19:14:09+00:00

    The values in column D are probably text.  Confirm with formulas like =ISTEXT(D2).  A visual inspection can be misleading, and the cell format does not matter.

    A quick-and-dirty solution is:  =SUMPRODUCT(--D2:D5).  But other references to column D might cause problems.

    It would be better to replace the text values with numeric values.  Often, you can use Text To Columns.  Select D2:D5, click Data > Text To Columns, then press Finish.

    FYI, the Function Wizard (fx) works because it is smarter (albeit misleading) in interpreting the cell values.

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2019-11-06T20:28:49+00:00

    The =istext(d2) returns a "0".

    Using the =sumproduct(d2:d5) also still returns a "0"

    Not sure what you mean by the text to columns.  These are formula results in a column already.

    0 comments No comments
  3. Ashish Mathur 100.9K Reputation points Volunteer Moderator
    2019-11-06T23:29:06+00:00
    0 comments No comments
  4. Anonymous
    2019-11-07T01:49:36+00:00

    I guess I somehow didn't make myself clear.  This is not text, it was not copied from somewhere else and is not text that needs to be put in columns.

    This is data created by formulas as I stated in my original post.

    0 comments No comments
  5. Ashish Mathur 100.9K Reputation points Volunteer Moderator
    2019-11-07T02:33:30+00:00

    What formula do you have in cell D2?

    0 comments No comments