+ Reply to Thread
Results 1 to 5 of 5

Booleans used in openoffice not recognizable in excel

  1. #1
    Registered User
    Join Date
    06-03-2010
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2003 & Excel 2010
    Posts
    19

    Booleans used in openoffice not recognizable in excel

    Recently, my evaluation of MS Office expired at the worst possible moment (as is usually the case) so I resorted to using openoffice as a temporary replacement while I gather the money to purchase the real deal.

    I created a spreadsheet which I needed to distribute to some friends, I found openoffice's spreadsheet (almost distastefully) identical to excel 2003 so I was able to finish up quickly, I saved it as an .xls and sent it out.

    The following day I received emails stating that the spreadsheet was not working properly. After a couple of hours of checking and double checking I noticed that open office saves boolean values as 1 or 0 (as expected) however uppon opening the file in excel it was considering these values not as boolean values (true or false) but literally as numerical 1 or 0 making most expressions incalculable or providing false conclusions.

    I checked to see if this also occured the other way around (creating a file in excel and opening it in openoffice), the values were correctly identified as booleans.

    Im not sure if this is a bug on behalf of MS excel or openoffice and if there's any way around it.

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

    Re: Booleans used in openoffice not recognizable in excel

    got an example that doesn't work?
    "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

  3. #3
    Registered User
    Join Date
    06-03-2010
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2003 & Excel 2010
    Posts
    19

    Re: Booleans used in openoffice not recognizable in excel

    A really basic example, but it shows what I mean.
    Attached Files Attached Files

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

    Re: Booleans used in openoffice not recognizable in excel

    hmm you need to coerce the value
    =IF(--C2=1,"one is one","one is not one")
    or just use
    =IF(C2,"one is one","one is not one")

  5. #5
    Registered User
    Join Date
    06-03-2010
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2003 & Excel 2010
    Posts
    19

    Re: Booleans used in openoffice not recognizable in excel

    That works.

    Thanks.

+ 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