+ Reply to Thread
Results 1 to 8 of 8

Can't Sum Column Even After Formatting as Numbers

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    Pomona, CA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Can't Sum Column Even After Formatting as Numbers

    Hi Everyone,

    I'm unable to use the sum equation for column B for the different days shown on the spreadsheet. I've tried formatting column B as numbers but it still doesn't work. Any ideas would appreciated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Can't Sum Column Even After Formatting as Numbers

    looks like you have additional spaces in your information or somthing at the end of your data

    try this

    =SUM(--(LEFT(B15:B62,LEN(B15:B62)-1)))

    entered with Control + Shift + Enter
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Can't Sum Column Even After Formatting as Numbers

    You have a "160" space after each number.
    If you're using a regular keypad with a number pad to the right
    select all your numbers in B
    CNTRL H to bring up Find and Replace
    Replace what: ALT + 0160 (on number pad)
    Replace with: leave it blank
    Replace All
    Did that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,434

    Re: Can't Sum Column Even After Formatting as Numbers

    You have a non-breaking space character (code = 160) at the end of each of your numbers, so they are treated as text values, and you can't do arithmetic on text.

    A quick way to get rid of them is to highlight column B, then CTRL-H (Find & Replace) and in the Find What box you should hold down the Alt key while typing 0160 on the numeric keypad, leave the Replace box empty, and then click on Replace All.

    Hope this helps.

    Pete

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Can't Sum Column Even After Formatting as Numbers

    there are spaces after the numbers in col b but its char(160) try find alt+0160 (from the numric keypad only)replace with nothing
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    02-01-2013
    Location
    Pomona, CA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Can't Sum Column Even After Formatting as Numbers

    Thank you guys for the quick response. You guys are awesome.

  7. #7
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Can't Sum Column Even After Formatting as Numbers

    Weird, this must be because I am on a Mac or something, but the character at the end returns code 202 for me, and not 160.
    I used: =CODE(RIGHT(B15,1)) and it returns 202

    Char(160) on this Mac is a cross symbol

    - Moo
    Last edited by Moo the Dog; 02-01-2013 at 12:53 PM.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Can't Sum Column Even After Formatting as Numbers

    The character encoding used by your computer depends on the operating system used - Windows uses the ANSI character set, whereas Macintosh uses the Macintosh character set.

    Therefore, the characters returned by the Excel Char Function for specific number codes may differ across operating environments

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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