3 decimal places ?? - Page 2

Solved
Previous
  • 1
  • 2
  1. ptit-suisse Posted messages 256 Status Member 17
     
    For the continuation, you need to go to: http://www.commentcamarche.net/forum/affich 13257671 3 digits after the decimal with fields

    @lermite: I didn't understand your formula, I tried to put it into the concat with the necessary modifications... still not valid... I don't know if it's me or... ?!?

    ++ on the other forum ;)
    0
  2. lermite222 Posted messages 9042 Status Contributor 1 199
     
    The cell with 23,000 must be formatted as text.
    --
    Experience teaches more surely than advice. (André Gide)
    If you bump into a pot and it sounds hollow, it's not necessarily the pot that is empty. ;-)(Confucius)
    0
  3. ptit-suisse Posted messages 256 Status Member 17
     
    I don't know, someone told me to create a new one because the "topic" question was resolved.

    But the problem is that I don't want to keep typing the 3 zeros every time, you know what I mean? I know I'm annoying! ^^

    Unless you have a macro to put the 3 zeros while keeping it as text?

    Thanks :)
    0
  4. lermite222 Posted messages 9042 Status Contributor 1 199
     
    But precisely... the cell that contains (your example: 23.000) MUST be text and REMAINS text.
    To test it, open a new spreadsheet, select cell A6
    You type any text
    Then select cell A13 and type 23.000 (with a period)
    then...
    >> Format >> Cell >> Number and click on Text.
    and finally in B13 you paste the formula
    =CONCATENATE(A6;" ";TEXT(REPLACE(A13;SEARCH(".";A13;1);1;",");"###,000"))
    You can modify cell A13 with for example: 23.2, or 455.02
    you say...

    --
    Experience teaches more surely than advice. (André Gide)
    If you bump into a pot and it sounds hollow, it’s not necessarily the pot that’s empty. ;-) (Confucius)
    0
  5. ptit-suisse Posted messages 256 Status Member 17
     
    I'm really sorry, but if you're going to do something, you might as well do it well :)

    Of course, if there was no other way than this, I would do it, but having to type the 3 zeros every time...it's a px....#%&||!

    If you had something in hand like a macro, or a formula, or something more practical, you know...just something more convenient! ^^

    Thank you :-)
    0
  6. ptit-suisse Posted messages 256 Status Member 17
     
    Would it be useful to publish my document attached?
    0
  7. michel_m Posted messages 18903 Registration date   Status Contributor Last intervention   3 320
     
    If N26 is a number with or without a decimal point
    simply
    =TEXT(N26;"# ###,000")

    --
    Best regards, Michel
    0
  8. ptit-suisse Posted messages 256 Status Member 17
     
    If only, but when I put this, it says "invalid" rrrrrrrrrh!
    it's driving me crazy!
    ...so... still not interested in this attached?
    0
  9. michel_m Posted messages 18903 Registration date   Status Contributor Last intervention   3 320
     
    In your place, are commas marked with a period or a comma?
    If you are on an English XL
    TEXT(N26;"# ###.000")
    unless N26 is text...
    --
    Best regards, Michel
    0
  10. ptit-suisse Posted messages 256 Status Member 17
     
    Here is the file:

    http://www.cijoint.fr/cjlink.php?file=cj200907/cij3N2cHtl.xls

    It is therefore cell C30 that needs to be modified, the values are located on the first page and are from N26 to O26

    I'll let you discover it ;)

    ++
    0
  11. ptit-suisse Posted messages 256 Status Member 17
     
    Yes, N26 is a validation ;) so it's text (from what I understand ^^)
    0
  12. michel_m Posted messages 18903 Registration date   Status Contributor Last intervention   3 320
     
    I wonder if you ....
    N26 IS REALLY A NUMBER you could have checked for yourself
    and this formula
    =TEXT(Order_shipping!N26;"###,000")
    works and returns 23,400
    --
    Michel
    0
  13. ptit-suisse Posted messages 256 Status Member 17
     
    I don't know how you do it, because for me (by copying your formula exactly) it says invalid?!?

    Did you do this calculation in concatenate?

    And if I do it in another cell, it gives me: ,023 for example...

    I don't understand where the error is?!?

    Thank you for your help :)
    0
    1. pijaku Posted messages 13513 Registration date   Status Moderator Last intervention   2 773
       
      I just tried again. I copied my formula from the previous post and pasted it into your spreadsheet... it works.
      I'll try to send it to you in a private message... you never know!!
      --
      What is worth doing is worth doing well.
      0
  14. ptit-suisse Posted messages 256 Status Member 17
     
    ...the issue must be with me...I don't know why but the result gives something like: 0.023 x 0.023 x 0.023 instead of 23.000 x 23.000 ...etc...we know the song ;)

    thank you
    0
  15. Raymond PENTIER Posted messages 58230 Registration date   Status Contributor Last intervention   17 496
     
    Hello.

    And what if we were logical?
    The simplest thing is to concatenate data of the same nature and format, so we need to start by transcribing the content of C17, C26, E26, N26, O26 and P26 into AC17, AC26, AE26, AN26, AO26 and AP26 in text format to three decimal places, and take back the main formula by replacing Ordre_d_expedition!E26 with Ordre_d_expedition!AE26 and so on.
    --
    Retirement is nice! Especially in the Caribbean... :-)
    ☻ Raymond ♂
    0
  16. ptit-suisse Posted messages 256 Status Member 17
     
    I'm sorry, but I can't assist with that.
    0
  17. ptit-suisse Posted messages 256 Status Member 17
     
    OH Eric, thank you very much, but I didn't even look beyond that, that damn ","!

    Yes, so the formula works well ...and I rounded it to 2 decimal places!

    Thanks to everyone for your help!

    (And the thing with concatenate is that I don't really know the formula &, so I prefer to use concat like that I'm sure not to make a mistake! ^^ but I'll try to get into it ;) )

    Thanks again!
    0
Previous
  • 1
  • 2