+ Reply to Thread
Results 1 to 4 of 4

Cell.Formula failing with single & double variables

  1. #1
    Registered User
    Join Date
    04-23-2009
    Location
    Barcelona, Spain
    MS-Off Ver
    Excel 2002
    Posts
    9

    Cell.Formula failing with single & double variables

    Hello,

    I can't hardly understand why this is happening to me. Maybe because I'm using a Spanish Office instead of an English one. Anyway, my next piece of code fails.

    Please Login or Register  to view this content.
    In excel A1 should be =CONCATENATE(FIXED(6,123456;2);" N") ... Assuming in spanish we use , instead of . as decimal mark.
    What I'm guetting is =CONCATENATE(FIXED(6;123456;2)" N")... Wich, obviously leads to a #Value error message. Why is excel doing this?

    I know I may use another cell to store the value and show the result as in A3. But that's completely lame.

    I can't hardly understand why excel behaves like that. Is this behaviour useful anyway? BTW, does anyone know how to avoid this without using a cell to store the value?

    NOTE: Checked the code in excel 2002 & 2003.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Cell.Formula failing with single & double variables

    Hi, I don't see why this should make any difference, but your code did not work for me (Excel 2002) but this did.
    Please Login or Register  to view this content.
    Regards Mick

  3. #3
    Registered User
    Join Date
    04-23-2009
    Location
    Barcelona, Spain
    MS-Off Ver
    Excel 2002
    Posts
    9

    Re: Cell.Formula failing with single & double variables

    Hi,

    I don't know why my code didn't work for you and yours did, but none of them work for me. I'm stuck with the same problem here...

    So now I guess this may have something to do with my excel being Spanish version and yours an English one... Wich it's pretty disappointing. I've been trying changing the options at options -> International so decimal marker was a dot with no luck.

    Come to think of it, it's going to be hard for those of you with english versions of excel to help me out (if it's a problem of internationalization). Could you at least test my code and grant me it's working flawlessly on your case? And, for those of you without english versions, maybe you know of some workaround (a part of the cell reference trick).

    Thanks all!

    Xavi

  4. #4
    Registered User
    Join Date
    04-23-2009
    Location
    Barcelona, Spain
    MS-Off Ver
    Excel 2002
    Posts
    9

    Re: Cell.Formula failing with single & double variables

    Bump...

    Sorry but I'm still stucked with this.

+ 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