+ Reply to Thread
Results 1 to 4 of 4

The AutoSum function distorted by hidden signs before the figures in a cell

  1. #1
    Forum Contributor
    Join Date
    08-04-2005
    Location
    Madrid, Spain
    MS-Off Ver
    2010
    Posts
    241

    The AutoSum function distorted by hidden signs before the figures in a cell

    When my file contains cells copied/pasted (from other formats probably), some of those cells have acquired hidden signs or other material, not visually apparent, preceding the numeric value.
    In such cases, when my macro orders an implicit AutoSum, the cell is seen as text (not so in explicit additions, which see them as numeric all right).
    Insisting on giving a general or numeric format to the cells has no effect.
    I have to click within each cell, go all the way to the left of the visible characters, and press Delete To Left; only then disappears the invisible ‘something’ that lurked before the figures.
    But doing this on every the faulty cell, one by one, is time-consuming.
    Can anybody suggest some code to search for all those cells and perform that deletion?.

  2. #2
    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,507

    Re: The AutoSum function distorted by hidden signs before the figures in a cell

    Please see the yellow banner at the top of the page.
    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


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

    Re: The AutoSum function distorted by hidden signs before the figures in a cell

    If you have pasted the data from an HTML source, then it is likely to be the non-breaking space character, which has a code of 160. You can use Find & Replace to get rid of all these in one operation, by selecting the offending cells, then CTRL-H to bring up the F&R dialogue box, and then enter:

    Find What: Alt-0160

    Replace with: leave blank

    Click Replace All

    where Alt-0160 means to hold down the Alt key while typing 0160 on the numeric keypad.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    08-04-2005
    Location
    Madrid, Spain
    MS-Off Ver
    2010
    Posts
    241

    Re: The AutoSum function distorted by hidden signs before the figures in a cell

    Thank you, TMS for your reminder.
    And thanks, Pete_UK, for your instructions; but they don’t seem to apply at all to my Excel, perhaps because it is a different version (its language is Spanish).
    But I’ve come across a very simple solution to my own query. In case you’re interested, it’s this:
    - Select a column
    - Click on the top label, “Data”
    - There, on the function “Text in columns”
    - On that dialogue boox, “Apply” or “End”.
    And that’s it: all numbers in the column are set to the number format and recognized as such by an implicit AutoSum.
    I know the function, “Text in columns”, is meant for further work (dividing the cell contents into several columns, requiring several dialogue boxes for the various options); but just ending it at the first dialogue box, does that (apply the number format to figures).
    I do that manually for the columns, one by one, in which I see faulty cells, and these are easy to spot as they are marked with a black top left angle.
    ACA

+ 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. SUBSTITUTE function or? to get rid of dollar signs
    By riwiseuse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2020, 01:12 AM
  2. Rule to Autosum specific figures relating to a corresponding piece of data
    By Alastair_Aralia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2019, 08:06 AM
  3. [SOLVED] Assigning -,+ signs to if/then function outcomes
    By Rookie5000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-01-2014, 09:02 PM
  4. Conversion of an array of figures inputted into cells as word figures to Excel figures
    By Allan Simpson730 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2013, 07:25 AM
  5. Code which deletes all signs behind a number of signs
    By Mula in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-30-2009, 05:53 AM
  6. [SOLVED] How do I omit hidden data from autosum calculations?
    By wolfthrone in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-03-2006, 04:15 PM
  7. [SOLVED] I want to get brackets round my figures not minus signs
    By Peru in forum Excel General
    Replies: 3
    Last Post: 02-03-2005, 06: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