+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Autosum doesn't work

  1. #1
    Registered User
    Join Date
    09-22-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    27

    Autosum doesn't work

    Dear Friends,

    I copied data from html file and pasted in MS Excel 2007. Now, when I try to calculate the values using Auto Sum. It just shows "0". How to solve the problem? Other Excel Sheets which I am manually typing are working fine.

    Thanks in advance.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Autosum doesn't work

    If copied from the web I suspect the values contain a non-breaking space - this is CHAR(160)

    To correct the simplest approach is to:

    a) highlight the numerical data

    b) run Edit -> Replace
    -- Find What: hold ALT and type 0160 on Numerical keypad if using a laptop hold ALT and FN and type 0160 on numerical keypad.
    -- Replace With: leave blank
    -- click OK.

    You should find your numerical values are coerced to numbers and your SUM now returns a value.

    The other alternative which works without altering the underlying values is to use SUMPRODUCT rather than SUM, ie:

    =SUMPRODUCT(--SUBSTITUTE(A1:A10,CHAR(160),""))

    but this is less efficient than correcting the underlying data first hand

  3. #3
    Registered User
    Join Date
    09-22-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Autosum doesn't work

    Quote Originally Posted by DonkeyOte View Post
    If copied from the web I suspect the values contain a non-breaking space - this is CHAR(160)

    To correct the simplest approach is to:

    a) highlight the numerical data

    b) run Edit -> Replace
    -- Find What: hold ALT and type 0160 on Numerical keypad if using a laptop hold ALT and FN and type 0160 on numerical keypad.
    -- Replace With: leave blank
    -- click OK.

    You should find your numerical values are coerced to numbers and your SUM now returns a value.

    The other alternative which works without altering the underlying values is to use SUMPRODUCT rather than SUM, ie:

    =SUMPRODUCT(--SUBSTITUTE(A1:A10,CHAR(160),""))

    but this is less efficient than correcting the underlying data first hand

    Thanks for your reply. I didn't get it clearly. I am attching the Excel file where I copied the data froma a webpage (html). Can you please demonstrate it on this attached sheet?

    Thanks again.
    Attached Files Attached Files

+ 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