+ Reply to Thread
Results 1 to 5 of 5

Sum Error, Cell Values Not Counted

  1. #1
    Registered User
    Join Date
    10-08-2021
    Location
    USA
    MS-Off Ver
    Home and Student 2019
    Posts
    11

    Sum Error, Cell Values Not Counted

    Good morning, I am trying to sum the values of a series of cells and the values of some cells are not counted. The value of the cell is binary (either 1 or 0), but is determined by an if statement, such as EXAMPLE: =IF(A1="ball", "1", "0") ...the cells the result is sent to is set to "number," but cells with "1" are not being counted. Are the values still being read as text because of the formula? Any help would be much appreciated!

  2. #2
    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. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,387

    Re: Sum Error, Cell Values Not Counted

    Welcome to the forum.

    It's your fault, I'm afraid - you have made them into text.

    Change this:

    =IF(A1="ball", "1", "0")

    to this:

    =IF(A1="ball", 1, 0)
    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.

  3. #3
    Registered User
    Join Date
    10-08-2021
    Location
    USA
    MS-Off Ver
    Home and Student 2019
    Posts
    11

    Re: Sum Error, Cell Values Not Counted

    I suspected as much, thank you so much!

  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. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,387

    Re: Sum Error, Cell Values Not Counted

    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 all those who offered help.

  5. #5
    Registered User
    Join Date
    10-08-2021
    Location
    USA
    MS-Off Ver
    Home and Student 2019
    Posts
    11

    Re: Sum Error, Cell Values Not Counted

    Will do x2, 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. Pivot report. Null values counted
    By MarkJohn51 in forum Excel General
    Replies: 3
    Last Post: 05-24-2020, 10:43 PM
  2. Replies: 7
    Last Post: 10-10-2019, 11:57 AM
  3. Replies: 1
    Last Post: 09-25-2018, 11:28 PM
  4. Return counted values from a different sheet
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-06-2014, 11:56 PM
  5. Blank cell counted as zero
    By famchiroly in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2014, 03:09 PM
  6. Counting Values Contiguously but duplicates counted as 1
    By akwishestofish in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2013, 10:22 AM
  7. range values counted problem
    By Alan M in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-23-2005, 02:06 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