+ Reply to Thread
Results 1 to 13 of 13

SUM calculation skipping a cell

  1. #1
    Registered User
    Join Date
    11-01-2006
    Location
    Whitstable, Kent, UK
    MS-Off Ver
    MS 365
    Posts
    20

    SUM calculation skipping a cell

    Hi

    I had a column that I totalled using SUM function and it returned a value. I noticed the value was somewhat short of what I knew the total should be.
    Inspecting the values in the column i noticed one cell looked different. The cell didn't contain an apostrophe.
    I used ISTEXT function on the cell and it returned TRUE.
    I then used clear all to remove the contents and format of the cell and keyed the value in again and all was resolved.
    In Options - Formulas, Error checking rules - Numbers formatted as text or preceded by an apostrophe is checked.

    I'd like to know is there a way that Excel can visually indicate if a cell contains a text value in a cell. This could of so easily of been missed.

    Any help greatly appreciated.

    Kenneth

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,921

    Re: SUM calculation skipping a cell

    Which version of Excel are you using?

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-01-2006
    Location
    Whitstable, Kent, UK
    MS-Off Ver
    MS 365
    Posts
    20

    Re: SUM calculation skipping a cell

    Morning Ali
    I'm using 365 and unfortunately work security restrictions prevent me from uploading attachments.

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

    Re: SUM calculation skipping a cell

    Please update your forum profile with your Excel version NOW.

    It sounds as if there is something else in the cell.

    Try =LEN(A1) - does it return the correct character count? If not, how many extra invisible characters are there?

    Have you tried:

    =TRIM(A1)

    =CLEAN(A1)

    Can you upload a sample file with some representative data (single column) that shows the issue when you get home?

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: SUM calculation skipping a cell

    If there is no alignment formatting on the cell, text values will be left aligned and numeric values (numbers, dates, times, etc.) will be right aligned. Visible leading zeroes on a numeric value can also be an indicator that the cell is formatted as text.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,921

    Re: SUM calculation skipping a cell

    To highlight cells:

    Select cell A1 > conditional formatting rule > formula rule > =ISTEXT(A1) > set required formatting > save > Applies to: $A:$A.

    But it's better to resolve the problem globally if you can.

  7. #7
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: SUM calculation skipping a cell

    I think the ask is a conditional format just to highlight them although the above might be the solution as it removes them
    https://www.excel-easy.com/data-****...ormatting.html

    =istext(a1) and format in an appropriate colour

    getting rid of the errors is always the best option but if it is purely the values are formatted as text
    =SUMPRODUCT((a1:a10)*1) may give the sum you require

  8. #8
    Registered User
    Join Date
    11-01-2006
    Location
    Whitstable, Kent, UK
    MS-Off Ver
    MS 365
    Posts
    20

    Re: SUM calculation skipping a cell

    Thanks again Ali.
    Yes LEN returned 6 whereas the cell contained 5 characters.
    - If I CLEAN the cell and then copy and paste as value, I get the green indicator in the cell that the number is stored as text.
    - If I click on the cell and press delete after the value in the formula bar it converts to a numeric value and the SUM value automatically updates.
    Profile updated, thanks.

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

    Re: SUM calculation skipping a cell

    Then you may have a non-breaking space in the cell.

    What happens if you do this?

    =N(A1)

    Does it then still report as being text in the formula cell, or a number?

    Also try:

    =SUBSTITUTE(A1,CHAR(160),"")

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

    Re: SUM calculation skipping a cell

    Try selecting the column containing the numbers.

    Find & Replace > in the Find box, hold down the ALT key and type 0160 on the numeric keypad, then release the ALT key. Click Replace All.

    Does this resolve the issue?

  11. #11
    Registered User
    Join Date
    11-01-2006
    Location
    Whitstable, Kent, UK
    MS-Off Ver
    MS 365
    Posts
    20

    Re: SUM calculation skipping a cell

    =n(cell) returned 0
    Find & replace returned 'we couldn't find anything to replace'

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,921

    Re: SUM calculation skipping a cell

    There's a space there, but which one!

    Try find and replace with ALT+0255 instead.

    EDIT: You MUST have the whole column selected when you do the F&R.
    Last edited by AliGW; 08-03-2023 at 05:32 AM.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,921

    Re: SUM calculation skipping a cell

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

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) 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.

+ 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] Pivot Table - "% Difference From" is Skipping Row in its Calculation
    By boba7523 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-17-2020, 12:27 AM
  2. Replies: 2
    Last Post: 12-07-2016, 12:39 PM
  3. Replies: 1
    Last Post: 12-06-2016, 06:16 PM
  4. [SOLVED] Skipping cell
    By jjbigfish in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-06-2015, 02:06 PM
  5. Replies: 1
    Last Post: 05-21-2014, 04:30 PM
  6. [SOLVED] Drag a formula that references a cell from another Sheet (Skipping a cell incrementing 1)
    By DixieDiver in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-05-2013, 06:25 PM
  7. Replies: 0
    Last Post: 04-20-2005, 12: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