Re: [libreoffice-users] Integer part of a number
At 10:49 15/10/2012 +0300, Pertti Rönnberg wrote: On 14.10.2012 12:20, Gilles SICHE wrote: could anyone tell me which formula I should use for the integer part of a cell to be shown in another cell, ... The answer could be: =IF(C31;0;INT(C3)) You are overthinking the problem: if C3 is positive, that's no different from =INT(C3) Brian Barker -- For unsubscribe instructions e-mail to: users+h...@global.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/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Integer part of a number
Hi :) The best answer in this thread was the first answer, by Rolf Lochbühler. Brian is right as usual but Pertti's answer deals with unexpectedly wrong counts. Regards from Tom :) From: Brian Barker b.m.bar...@btinternet.com To: users@global.libreoffice.org Sent: Monday, 15 October 2012, 9:45 Subject: Re: [libreoffice-users] Integer part of a number At 10:49 15/10/2012 +0300, Pertti Rönnberg wrote: On 14.10.2012 12:20, Gilles SICHE wrote: could anyone tell me which formula I should use for the integer part of a cell to be shown in another cell, ... The answer could be: =IF(C31;0;INT(C3)) You are overthinking the problem: if C3 is positive, that's no different from =INT(C3) Brian Barker -- For unsubscribe instructions e-mail to: users+h...@global.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/global/users/ All messages sent to this list will be publicly archived and cannot be deleted -- For unsubscribe instructions e-mail to: users+h...@global.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/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Integer part of a number
At 12:38 15/10/2012 +0100, Tom Davies wrote: ... but Pertti's answer deals with unexpectedly wrong counts. It does nothing of the sort, of course. Brian Barker -- For unsubscribe instructions e-mail to: users+h...@global.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/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Fwd: Re: [libreoffice-users] Integer part of a number
Hi everybody, When I tried to give an answer to Gilles' basic question I proposed my formula based on the reality that I have never experienced negative voting. The very interesting (theoretical) discussion this caused shows that there may be several correct solutions. I can imagine that Gilles (and me too) is curious to know what is the best answer to his problem. Even if I did (I admit) some overthinking I cannot see that my answer is wrong. So, what is the best way for Gilles to continue? Pertti Rönnberg Original Message Subject:Re: [libreoffice-users] Integer part of a number Date: Mon, 15 Oct 2012 10:49:51 +0300 From: Pertti Rönnberg p...@elisanet.fi To: users@global.libreoffice.org Good morning Gilles others, Provided that I got your problem right, I think the answer is: SumVotes_group1 = 5,78(in Calc e.g. in cellC3) SumVotes_group2 = 7,34(in C4) SumVotes_group3= 0,78(in C5) SumVotes_ group4= 0,99(in C6) The answer could be: a write following formula in(e.g.)cellD3 =IF(c31;0;INT(c3)) b copy the formula to d4..d6 The formula translated into english: if value in cell c3 is /_less than_/ '1' then d3 shall be '0', else (-- if c3 is '1' or bigger then -- ) use the integer of value in c3) I hope this is of help. Pertti Rönnberg On 14.10.2012 12:20, Gilles SICHE wrote: Hello, could anyone tell me which formula I should use for the integer part of a cell to be shown in another cell, and for the value of this cell to be changed, since, for example, 5,77 would become equal to 5? When finding out who won in an election, if one group or party gets a result of 5,28, they get 5 seats, if the result is 0,77, they get no seat at all, I would then want the figure 5 and the figure 0 to appear in a cell. But I need the real value to be 5 and 0, not only to be shown as such, since these values (0 and not 0,77) will be used in another operation (to know which group gets the last remaining seat). I hope my question is not too unclear, thank you for your answers anyway, G. Siche -- For unsubscribe instructions e-mail to: users+h...@global.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/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: Fwd: Re: [libreoffice-users] Integer part of a number
At 21:13 15/10/2012 +0300, Pertti Rönnberg wrote: At 10:49 15/10/2012 +0300, Pertti Rönnberg wrote: On 14.10.2012 12:20, Gilles SICHE wrote: could anyone tell me which formula I should use for the integer part of a cell to be shown in another cell, and for the value of this cell to be changed, since, for example, 5,77 would become equal to 5? The answer could be: a write following formula in(e.g.)cellD3 =IF(c31;0;INT(c3)) When I tried to give an answer to Gilles' basic question I proposed my formula based on the reality that I have never experienced negative voting. The very interesting (theoretical) discussion this caused shows that there may be several correct solutions. I can imagine that Gilles (and me too) is curious to know what is the best answer to his problem. Even if I did (I admit) some overthinking I cannot see that my answer is wrong. No, your answer was not wrong, but it was unnecessarily complicated - like adding zero to something: not wrong but pointless and confusing. For non-negative C3, =IF(C31;0;INT(C3)) is identical to and no better than =INT(C3). So, what is the best way for Gilles to continue? Using INT(), as was suggested in the very first reply (before any of my comments). Brian Barker -- For unsubscribe instructions e-mail to: users+h...@global.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/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
[libreoffice-users] Integer part of a number
Hello, could anyone tell me which formula I should use for the integer part of a cell to be shown in another cell, and for the value of this cell to be changed, since, for example, 5,77 would become equal to 5? When finding out who won in an election, if one group or party gets a result of 5,28, they get 5 seats, if the result is 0,77, they get no seat at all, I would then want the figure 5 and the figure 0 to appear in a cell. But I need the real value to be 5 and 0, not only to be shown as such, since these values (0 and not 0,77) will be used in another operation (to know which group gets the last remaining seat). I hope my question is not too unclear, thank you for your answers anyway, G. Siche -- For unsubscribe instructions e-mail to: users+h...@global.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/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Integer part of a number
On 10/14/2012 05:20 AM, Gilles SICHE wrote: Hello, could anyone tell me which formula I should use for the integer part of a cell to be shown in another cell, and for the value of this cell to be changed, since, for example, 5,77 would become equal to 5? When finding out who won in an election, if one group or party gets a result of 5,28, they get 5 seats, if the result is 0,77, they get no seat at all, I would then want the figure 5 and the figure 0 to appear in a cell. But I need the real value to be 5 and 0, not only to be shown as such, since these values (0 and not 0,77) will be used in another operation (to know which group gets the last remaining seat). I hope my question is not too unclear, thank you for your answers anyway, G. Siche = Int() --Dan -- For unsubscribe instructions e-mail to: users+h...@global.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/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Integer part of a number
could anyone tell me which formula I should use for the integer part of a cell to be shown in another cell, The function you're probably looking for is INT(). Example: A1: 0.77 B1: =INT(A1) → 0 C1: =A1*2 → 1.54 D1: =B1*2 → 0 and for the value of this cell to be changed, since, for example, 5,77 would become equal to 5? I guess I don't understand the restrictions in your spreadsheet. Without knowing any further details of your application, I'd say, why not use the value calculated by INT() instead of the original value in any subsequent operations? -rl -- For unsubscribe instructions e-mail to: users+h...@global.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/global/users/ All messages sent to this list will be publicly archived and cannot be deleted