+ Reply to Thread
Results 1 to 3 of 3

formulas equating to numbers, then pasted as values, seem not to be quite numbers...

  1. #1
    Registered User
    Join Date
    01-17-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003, 2007, & 2010 Beta
    Posts
    78

    formulas equating to numbers, then pasted as values, seem not to be quite numbers...

    I am puzzled by something I've not noticed before, and that fact of only seeing it now also surprises me.
    If I have a formula, which strings a few digits together, e.g. left(a4,1)&mid(B4,2,1)&right(C4,1) which displays as 123, and I copy it as a value to the same (or even to another) cell, say, to D4, then the strange anomaly happens that if I type into E4 that D4=123, I will get the result FALSE rather than TRUE. Something carrying over in some sense as 'non-numerical' seems to be at play from the formula pasted in (to D4) as a value. If I type =value(D4)=123, I will get TRUE. Why does the 'number' not quite 'answer' as a number?

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: formulas equating to numbers, then pasted as values, seem not to be quite numbers...

    Strigning numbers together with & creates a number formatted as text, which is not the same as a true number.

    You should also notice that it is aligned to the left of the cell, while a true number is aligned to the right (unless you have changed the formatting).

    Any of the following methods will correct it at the source.

    =--(left(a4,1)&mid(B4,2,1)&right(C4,1))

    =value(left(a4,1)&mid(B4,2,1)&right(C4,1))

    =(left(a4,1)&mid(B4,2,1)&right(C4,1))+0

    =(left(a4,1)&mid(B4,2,1)&right(C4,1))*1
    Last edited by jason.b75; 02-10-2019 at 09:06 AM.

  3. #3
    Registered User
    Join Date
    01-17-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003, 2007, & 2010 Beta
    Posts
    78

    Re: formulas equating to numbers, then pasted as values, seem not to be quite numbers...

    I get it, set the values at the 'formula' stage, within the cell. Copying a string as a value will not quite work. Pasting as a value is really about formulas with numbers, come to think of it.
    Thanks, Jason.

+ 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. Cut and pasted numbers change in new box.
    By Jan Sutherland in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-20-2017, 09:34 PM
  2. [SOLVED] Remove spaces in pasted numbers
    By Jonathan9 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-14-2014, 01:15 PM
  3. Replies: 2
    Last Post: 05-15-2013, 11:08 PM
  4. Numbers pasted cannot be summed
    By torontoem4o in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-03-2013, 12:16 PM
  5. [SOLVED] Changing column of numbers made of formulas to just numbers
    By CJ in forum Excel General
    Replies: 2
    Last Post: 06-14-2006, 09:15 AM
  6. [SOLVED] Help: Pasted red numbers turn black
    By Al in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-19-2005, 08:06 PM
  7. How can I keep leading 0's in pasted numbers?
    By imoux1 in forum Excel General
    Replies: 2
    Last Post: 01-18-2005, 02:06 PM

Tags for this Thread

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