Date: prev next · Thread: first prev next last


Hej!
Mitt problem just nu är en beräkning av moms i Calc.
Jag vet en summa (med moms), men den är angiven med decimalpunkt. (ex. B2 .: 19.90) Med detta tal skall en beräkning göras (ex. C2 .: 19,90 * 0,8 = 15,92), men resultatet skall presenteras med decimalpunkt (15.92) Det enda sätt jag kom på, var att skriva denna formel i cellen - Avrundat till två decimaler
C2 .: =BYT.UT(AVRUNDA(BYT.UT(B2;".";",")*0,8; 2);",";".")
Det verkar fungera.

Men det verkliga problemet är när cellen B2 inte innehåller något alls (inte "0")
.
Då kommer C2 innehålla texten #Värde!. (Vet inte om andra fel kan uppkomma.)
Om cellen B2 är tom eller något annat fel uppstår, önskar jag att cellen C2 skall förbli tom.

Hur löser man min önskan på ett bra sätt?

//Jan Ö



--
For unsubscribe instructions e-mail to: users+unsubscribe@sv.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/sv/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.