+ Reply to Thread
Results 1 to 4 of 4

RIGHT function bug

  1. #1
    Registered User
    Join Date
    10-22-2020
    Location
    Borne, Netherlands
    MS-Off Ver
    2002 build 12527.21104
    Posts
    2

    RIGHT function bug

    A cell contains the value 1.0
    When I do a RIGHT function in this cell (e.g A1 contains 1.0; in A2: =RIGHT(A1;1)) it returns 1 instead of the expected 0
    I can do make a workaround with: =RIGHT(A1*10;1), this returns the wanted 0

    It seems that it has to do with something like deleting decimal 0's.
    When the value = 1.2 then RIGHT returns the expected 2

    Seems like a serious bug in EXCEL about handling decimal 0's.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: RIGHT function bug

    It's not a bug. The value of the cell is 1 - the .0 is merely formatting.
    Rory

  3. #3
    Registered User
    Join Date
    10-22-2020
    Location
    Borne, Netherlands
    MS-Off Ver
    2002 build 12527.21104
    Posts
    2

    Re: RIGHT function bug

    Hi Rorya,

    For me it's a bug because I want to filter on decimal values and 0 is also a value for me.
    Now I get wrong results, but as I mentioned I can workaround with it by multilpying by 10,
    but when I want to filter on the second decimal I've to multiply with 100 and so on

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: RIGHT function bug

    I'm sure it's inconvenient for you, but it's not a bug.

    You could use =RIGHT(TEXT(A1;"0.0");1)

+ 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. Right function, Left function, Mid function to extract values in column A
    By bjnockle in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-14-2020, 03:14 PM
  2. How to combine the WORKDAY function with an IF function to build a working Gantt chart.
    By roomaggoo in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 07-07-2018, 11:54 AM
  3. COUNTUNIQUE Function in Google Sheets; Excel lacks a direct counterpart to this function?
    By PivotTablePSHomage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2018, 05:27 AM
  4. [SOLVED] Usage of standard functions into custom function (or user defined function)
    By tusharb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2016, 12:43 AM
  5. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  6. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  7. Replies: 1
    Last Post: 03-21-2012, 11:22 AM

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