percent to whole fraction

classic Classic list List threaded Threaded
12 messages Options
bjlockie bjlockie
Reply | Threaded
Open this post in threaded view
|

percent to whole fraction

I need a formula that takes as input a percent and outputs a fraction
that only has whole numbers.
Eg.
1% -> "1/100"
0.5% -> "1/200"
1.5% -> "3/200"

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

remygauthier remygauthier
Reply | Threaded
Open this post in threaded view
|

Re: percent to whole fraction

Hi,

I am assuming you are using Calc. There is no formula to do this: it is
a cell formatting accessible via Format -> Cells... -> Numbers Tab,
then go to the "Fraction" category. There you can select the # ???/???
format which will do what you are looking for.

I hope this helps.

R??my.
Le jeudi 25 avril 2019 ?? 21:42 +0000, James a ??crit :
> I need a formula that takes as input a percent and outputs a fraction
> that only has whole numbers.
> Eg.
> 1% -> "1/100"
> 0.5% -> "1/200"
> 1.5% -> "3/200"
>
>

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
bjlockie bjlockie
Reply | Threaded
Open this post in threaded view
|

Re: percent to whole fraction

Yes, Calc.

It works well enough using format code "# ??/200".
I guess I can use /200 for all of them but I was hoping for a formula
that would pick the lowest denominator.

Thanks.


On 2019-04-25 6:45 p.m., Remy Gauthier wrote:

> Hi,
>
> I am assuming you are using Calc. There is no formula to do this: it
> is a cell formatting accessible via Format -> Cells... -> Numbers Tab,
> then go to the "Fraction" category. There you can select the # ???/???
> format which will do what you are looking for.
>
> I hope this helps.
>
> Rémy.
> Le jeudi 25 avril 2019 à 21:42 +0000, James a écrit :
>> I need a formula that takes as input a percent and outputs a fraction
>> that only has whole numbers.
>> Eg.
>> 1% -> "1/100"
>> 0.5% -> "1/200"
>> 1.5% -> "3/200"

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Luuk Luuk
Reply | Threaded
Open this post in threaded view
|

Re: percent to whole fraction

In reply to this post by remygauthier
Is there an option to convert a cell with format 'Fraction' to text?

example:

a b 'a/b

52 297 52/297
56 302 28/151
66 311 66/311

in this third line, i want to get '28' and '151'....

i tried TEXT(C2;""), and FIND("/";C2;1),


On 26-4-2019 00:45, Remy Gauthier wrote:

> Hi,
>
> I am assuming you are using Calc. There is no formula to do this: it is
> a cell formatting accessible via Format -> Cells... -> Numbers Tab,
> then go to the "Fraction" category. There you can select the # ???/???
> format which will do what you are looking for.
>
> I hope this helps.
>
> R??my.
> Le jeudi 25 avril 2019 ?? 21:42 +0000, James a ??crit :
>> I need a formula that takes as input a percent and outputs a fraction
>> that only has whole numbers.
>> Eg.
>> 1% -> "1/100"
>> 0.5% -> "1/200"
>> 1.5% -> "3/200"
>>
>>

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Windows10 / LibreOffice  (latest?)
JOE CONNER JOE CONNER
Reply | Threaded
Open this post in threaded view
|

Re: percent to whole fraction

In reply to this post by bjlockie
Calc can format cells as a fraction.

For instance in an empty cell input "=pi()" without the quotes. The cell
will display  3.141592654.

Then format the cell as FORMAT -> FRACTION -> FORMAT CODE -> and enter
???/??? which will change the display to 355/113. Is this what you need?

On 4/25/19 3:42 PM, James wrote:
> I need a formula that takes as input a percent and outputs a fraction
> that only has whole numbers.
> Eg.
> 1% -> "1/100"
> 0.5% -> "1/200"
> 1.5% -> "3/200"
>
--
A smile - is a sign of joy.
A hug - is a sign of love.
A laugh - is a sign of happiness.
May your troubles be less...
May your blessings be more...
May nothing but happiness come through your door!!

Blessings, Joe Conner
Joshua 24:15 "...as for me and my house, we will serve the LORD."


--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Luuk Luuk
Reply | Threaded
Open this post in threaded view
|

Re: percent to whole fraction

In reply to this post by Luuk
Let me rephrase the question.... ;)

In the 'example' line we see:

56  302    28/151

The actual cell contents are:

56 302     0,18543046357615894039735099337748

Is it possible to get the values '28' and '151' as show by the
fraction-formatter?



On 26-4-2019 19:01, Luuk wrote:

>
> Is there an option to convert a cell with format 'Fraction' to text?
>
> example:
>
> a b 'a/b
>
> 52 297 52/297
> 56 302 28/151
> 66 311 66/311
>
> in this third line, i want to get '28' and '151'....
>
> i tried TEXT(C2;""), and FIND("/";C2;1),
>
>
> On 26-4-2019 00:45, Remy Gauthier wrote:
>> Hi,
>>
>> I am assuming you are using Calc. There is no formula to do this: it is
>> a cell formatting accessible via Format -> Cells... -> Numbers Tab,
>> then go to the "Fraction" category. There you can select the # ???/???
>> format which will do what you are looking for.
>>
>> I hope this helps.
>>
>> R??my.
>> Le jeudi 25 avril 2019 ?? 21:42 +0000, James a ??crit :
>>> I need a formula that takes as input a percent and outputs a fraction
>>> that only has whole numbers.
>>> Eg.
>>> 1% -> "1/100"
>>> 0.5% -> "1/200"
>>> 1.5% -> "3/200"
>>>
>>>

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Windows10 / LibreOffice  (latest?)
Johnny Rosenberg Johnny Rosenberg
Reply | Threaded
Open this post in threaded view
|

Re: percent to whole fraction

Den fre 26 apr. 2019 kl 20:37 skrev Luuk <[hidden email]>:

> Let me rephrase the question.... ;)
>
> In the 'example' line we see:
>
> 56  302    28/151
>
> The actual cell contents are:
>
> 56 302     0,18543046357615894039735099337748
>
> Is it possible to get the values '28' and '151' as show by the
> fraction-formatter?
>

Are we allowed to use the first two numbers (56 and 302 in this case) or
only the fraction (0,185…)?
Are we allowed to create our own cell functions?
Is the maximum values 999/999 or are higher numbers allowed?
Do you want one number (28) in one cell and the other number (151) in
another cell or what?


Kind regards

Johnny Rosenberg



>
>
>
> On 26-4-2019 19:01, Luuk wrote:
> >
> > Is there an option to convert a cell with format 'Fraction' to text?
> >
> > example:
> >
> > a     b       'a/b
> >
> > 52    297     52/297
> > 56    302     28/151
> > 66    311     66/311
> >
> > in this third line, i want to get '28' and '151'....
> >
> > i tried TEXT(C2;""), and FIND("/";C2;1),
> >
> >
> > On 26-4-2019 00:45, Remy Gauthier wrote:
> >> Hi,
> >>
> >> I am assuming you are using Calc. There is no formula to do this: it is
> >> a cell formatting accessible via Format -> Cells... -> Numbers Tab,
> >> then go to the "Fraction" category. There you can select the # ???/???
> >> format which will do what you are looking for.
> >>
> >> I hope this helps.
> >>
> >> R??my.
> >> Le jeudi 25 avril 2019 ?? 21:42 +0000, James a ??crit :
> >>> I need a formula that takes as input a percent and outputs a fraction
> >>> that only has whole numbers.
> >>> Eg.
> >>> 1% -> "1/100"
> >>> 0.5% -> "1/200"
> >>> 1.5% -> "3/200"
> >>>
> >>>
>
> --
> To unsubscribe e-mail to: [hidden email]
> Problems?
> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
> List archive: https://listarchives.libreoffice.org/global/users/
> Privacy Policy: https://www.documentfoundation.org/privacy
>

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Johnny Rosenberg Johnny Rosenberg
Reply | Threaded
Open this post in threaded view
|

Re: percent to whole fraction

Den fre 26 apr. 2019 kl 22:42 skrev Johnny Rosenberg <[hidden email]
>:

> Den fre 26 apr. 2019 kl 20:37 skrev Luuk <[hidden email]>:
>
>> Let me rephrase the question.... ;)
>>
>> In the 'example' line we see:
>>
>> 56  302    28/151
>>
>> The actual cell contents are:
>>
>> 56 302     0,18543046357615894039735099337748
>>
>> Is it possible to get the values '28' and '151' as show by the
>> fraction-formatter?
>>
>
> Are we allowed to use the first two numbers (56 and 302 in this case) or
> only the fraction (0,185…)?
> Are we allowed to create our own cell functions?
> Is the maximum values 999/999 or are higher numbers allowed?
> Do you want one number (28) in one cell and the other number (151) in
> another cell or what?
>

If you can use the original numbers (56 and 302 in the example above),
here's a short example:
A1=56
B1=302
C1=LCM(A1;B1)/B1 ⇨ 28
D1=LCM(A1;B1)/A1 ⇨ 151

Kind regards

Johnny Rosenberg


>
> Kind regards
>
> Johnny Rosenberg
>
>
>
>>
>>
>>
>> On 26-4-2019 19:01, Luuk wrote:
>> >
>> > Is there an option to convert a cell with format 'Fraction' to text?
>> >
>> > example:
>> >
>> > a     b       'a/b
>> >
>> > 52    297     52/297
>> > 56    302     28/151
>> > 66    311     66/311
>> >
>> > in this third line, i want to get '28' and '151'....
>> >
>> > i tried TEXT(C2;""), and FIND("/";C2;1),
>> >
>> >
>> > On 26-4-2019 00:45, Remy Gauthier wrote:
>> >> Hi,
>> >>
>> >> I am assuming you are using Calc. There is no formula to do this: it is
>> >> a cell formatting accessible via Format -> Cells... -> Numbers Tab,
>> >> then go to the "Fraction" category. There you can select the # ???/???
>> >> format which will do what you are looking for.
>> >>
>> >> I hope this helps.
>> >>
>> >> R??my.
>> >> Le jeudi 25 avril 2019 ?? 21:42 +0000, James a ??crit :
>> >>> I need a formula that takes as input a percent and outputs a fraction
>> >>> that only has whole numbers.
>> >>> Eg.
>> >>> 1% -> "1/100"
>> >>> 0.5% -> "1/200"
>> >>> 1.5% -> "3/200"
>> >>>
>> >>>
>>
>> --
>> To unsubscribe e-mail to: [hidden email]
>> Problems?
>> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
>> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
>> List archive: https://listarchives.libreoffice.org/global/users/
>> Privacy Policy: https://www.documentfoundation.org/privacy
>>
>

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Luuk Luuk
Reply | Threaded
Open this post in threaded view
|

Re: percent to whole fraction

In reply to this post by Johnny Rosenberg
reply inserted in your post.

On 26-4-2019 22:42, Johnny Rosenberg wrote:

> Den fre 26 apr. 2019 kl 20:37 skrev Luuk <[hidden email]>:
>
>> Let me rephrase the question.... ;)
>>
>> In the 'example' line we see:
>>
>> 56  302    28/151
>>
>> The actual cell contents are:
>>
>> 56 302     0,18543046357615894039735099337748
>>
>> Is it possible to get the values '28' and '151' as show by the
>> fraction-formatter?
>>
> Are we allowed to use the first two numbers (56 and 302 in this case) or
> only the fraction (0,185…)?
As long as the result is 28 and 151 (the numbers shown in the fraction),
of course you can use 56 and 302, because the vale 0.185 is the same as
56/302
> Are we allowed to create our own cell functions?
I hope they are not needed, but if they are....
> Is the maximum values 999/999 or are higher numbers allowed?
I do not see a need to specify a maximum value right now...
> Do you want one number (28) in one cell and the other number (151) in
> another cell or what?
Yes, as said, i want two numbers

>
>
> Kind regards
>
> Johnny Rosenberg
>
>
>
>>
>>
>> On 26-4-2019 19:01, Luuk wrote:
>>> Is there an option to convert a cell with format 'Fraction' to text?
>>>
>>> example:
>>>
>>> a     b       'a/b
>>>
>>> 52    297     52/297
>>> 56    302     28/151
>>> 66    311     66/311
>>>
>>> in this third line, i want to get '28' and '151'....
>>>
>>> i tried TEXT(C2;""), and FIND("/";C2;1),
>>>
>>>
>>> On 26-4-2019 00:45, Remy Gauthier wrote:
>>>> Hi,
>>>>
>>>> I am assuming you are using Calc. There is no formula to do this: it is
>>>> a cell formatting accessible via Format -> Cells... -> Numbers Tab,
>>>> then go to the "Fraction" category. There you can select the # ???/???
>>>> format which will do what you are looking for.
>>>>
>>>> I hope this helps.
>>>>
>>>> R??my.
>>>> Le jeudi 25 avril 2019 ?? 21:42 +0000, James a ??crit :
>>>>> I need a formula that takes as input a percent and outputs a fraction
>>>>> that only has whole numbers.
>>>>> Eg.
>>>>> 1% -> "1/100"
>>>>> 0.5% -> "1/200"
>>>>> 1.5% -> "3/200"
>>>>>
>>>>>
>> --
>> To unsubscribe e-mail to: [hidden email]
>> Problems?
>> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
>> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
>> List archive: https://listarchives.libreoffice.org/global/users/
>> Privacy Policy: https://www.documentfoundation.org/privacy
>>

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Windows10 / LibreOffice  (latest?)
Luuk Luuk
Reply | Threaded
Open this post in threaded view
|

Re: percent to whole fraction

In reply to this post by Johnny Rosenberg
YES, LCM() that's the function i was looking for...

I did not know it that function exists, probably because it's name in my
Dutch version of EXCEL is KGV()..... :-[

(see:
https://www.excel-function-translation.com/index.php?page=english-dutch.html 
)


On 26-4-2019 22:54, Johnny Rosenberg wrote:

> Den fre 26 apr. 2019 kl 22:42 skrev Johnny Rosenberg <[hidden email]
>> :
>> Den fre 26 apr. 2019 kl 20:37 skrev Luuk <[hidden email]>:
>>
>>> Let me rephrase the question.... ;)
>>>
>>> In the 'example' line we see:
>>>
>>> 56  302    28/151
>>>
>>> The actual cell contents are:
>>>
>>> 56 302     0,18543046357615894039735099337748
>>>
>>> Is it possible to get the values '28' and '151' as show by the
>>> fraction-formatter?
>>>
>> Are we allowed to use the first two numbers (56 and 302 in this case) or
>> only the fraction (0,185…)?
>> Are we allowed to create our own cell functions?
>> Is the maximum values 999/999 or are higher numbers allowed?
>> Do you want one number (28) in one cell and the other number (151) in
>> another cell or what?
>>
> If you can use the original numbers (56 and 302 in the example above),
> here's a short example:
> A1=56
> B1=302
> C1=LCM(A1;B1)/B1 ⇨ 28
> D1=LCM(A1;B1)/A1 ⇨ 151
>
> Kind regards
>
> Johnny Rosenberg
>
>
>> Kind regards
>>
>> Johnny Rosenberg
>>
>>
>>
>>>
>>>
>>> On 26-4-2019 19:01, Luuk wrote:
>>>> Is there an option to convert a cell with format 'Fraction' to text?
>>>>
>>>> example:
>>>>
>>>> a     b       'a/b
>>>>
>>>> 52    297     52/297
>>>> 56    302     28/151
>>>> 66    311     66/311
>>>>
>>>> in this third line, i want to get '28' and '151'....
>>>>
>>>> i tried TEXT(C2;""), and FIND("/";C2;1),
>>>>
>>>>
>>>> On 26-4-2019 00:45, Remy Gauthier wrote:
>>>>> Hi,
>>>>>
>>>>> I am assuming you are using Calc. There is no formula to do this: it is
>>>>> a cell formatting accessible via Format -> Cells... -> Numbers Tab,
>>>>> then go to the "Fraction" category. There you can select the # ???/???
>>>>> format which will do what you are looking for.
>>>>>
>>>>> I hope this helps.
>>>>>
>>>>> R??my.
>>>>> Le jeudi 25 avril 2019 ?? 21:42 +0000, James a ??crit :
>>>>>> I need a formula that takes as input a percent and outputs a fraction
>>>>>> that only has whole numbers.
>>>>>> Eg.
>>>>>> 1% -> "1/100"
>>>>>> 0.5% -> "1/200"
>>>>>> 1.5% -> "3/200"
>>>>>>
>>>>>>
>>> --
>>> To unsubscribe e-mail to: [hidden email]
>>> Problems?
>>> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
>>> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
>>> List archive: https://listarchives.libreoffice.org/global/users/
>>> Privacy Policy: https://www.documentfoundation.org/privacy
>>>

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Windows10 / LibreOffice  (latest?)
Johnny Rosenberg Johnny Rosenberg
Reply | Threaded
Open this post in threaded view
|

Re: percent to whole fraction

Den fre 26 apr. 2019 kl 23:09 skrev Luuk <[hidden email]>:

> YES, LCM() that's the function i was looking for...
>
> I did not know it that function exists, probably because it's name in my
> Dutch version of EXCEL is KGV()..... :-[
>

It's named ”MGM()” in my Swedish version (Minsta Gemensamma Multipel).
Do you know that you can easily pick another language for the graphical
user interface? You need to restart LibreOffice, and then all cell
functions are in the selected language (English would be a good choice in
this case). I usually do that when I'm about to ask or reply to questions
on this mailing lists, if I need to copy and paste cell formulas or explain
how to find a certain thing in the menues. Nobody will understand
”≈OM(ÄRTAL(LETARAD(blah;blah;blah));1;0)”, for instance.
Also, do you know that you can hit Ctrl+F2 for help when creating cell
formulas? I dialogue will pop up helping you to find what you need and you
can look through cell functions by category and more. You can also see the
results of parts of your formula, making it easier to debug a faulty
formula. I found it very helpful and there's where I found the LCM()
function (although it was called MGM when I found it).


Kind regards

Johnny Rosenberg



>
> (see:
>
> https://www.excel-function-translation.com/index.php?page=english-dutch.html
> )
>
>
> On 26-4-2019 22:54, Johnny Rosenberg wrote:
> > Den fre 26 apr. 2019 kl 22:42 skrev Johnny Rosenberg <
> [hidden email]
> >> :
> >> Den fre 26 apr. 2019 kl 20:37 skrev Luuk <[hidden email]>:
> >>
> >>> Let me rephrase the question.... ;)
> >>>
> >>> In the 'example' line we see:
> >>>
> >>> 56  302    28/151
> >>>
> >>> The actual cell contents are:
> >>>
> >>> 56 302     0,18543046357615894039735099337748
> >>>
> >>> Is it possible to get the values '28' and '151' as show by the
> >>> fraction-formatter?
> >>>
> >> Are we allowed to use the first two numbers (56 and 302 in this case) or
> >> only the fraction (0,185…)?
> >> Are we allowed to create our own cell functions?
> >> Is the maximum values 999/999 or are higher numbers allowed?
> >> Do you want one number (28) in one cell and the other number (151) in
> >> another cell or what?
> >>
> > If you can use the original numbers (56 and 302 in the example above),
> > here's a short example:
> > A1=56
> > B1=302
> > C1=LCM(A1;B1)/B1 ⇨ 28
> > D1=LCM(A1;B1)/A1 ⇨ 151
> >
> > Kind regards
> >
> > Johnny Rosenberg
> >
> >
> >> Kind regards
> >>
> >> Johnny Rosenberg
> >>
> >>
> >>
> >>>
> >>>
> >>> On 26-4-2019 19:01, Luuk wrote:
> >>>> Is there an option to convert a cell with format 'Fraction' to text?
> >>>>
> >>>> example:
> >>>>
> >>>> a     b       'a/b
> >>>>
> >>>> 52    297     52/297
> >>>> 56    302     28/151
> >>>> 66    311     66/311
> >>>>
> >>>> in this third line, i want to get '28' and '151'....
> >>>>
> >>>> i tried TEXT(C2;""), and FIND("/";C2;1),
> >>>>
> >>>>
> >>>> On 26-4-2019 00:45, Remy Gauthier wrote:
> >>>>> Hi,
> >>>>>
> >>>>> I am assuming you are using Calc. There is no formula to do this: it
> is
> >>>>> a cell formatting accessible via Format -> Cells... -> Numbers Tab,
> >>>>> then go to the "Fraction" category. There you can select the #
> ???/???
> >>>>> format which will do what you are looking for.
> >>>>>
> >>>>> I hope this helps.
> >>>>>
> >>>>> R??my.
> >>>>> Le jeudi 25 avril 2019 ?? 21:42 +0000, James a ??crit :
> >>>>>> I need a formula that takes as input a percent and outputs a
> fraction
> >>>>>> that only has whole numbers.
> >>>>>> Eg.
> >>>>>> 1% -> "1/100"
> >>>>>> 0.5% -> "1/200"
> >>>>>> 1.5% -> "3/200"
> >>>>>>
> >>>>>>
> >>> --
> >>> To unsubscribe e-mail to: [hidden email]
> >>> Problems?
> >>> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> >>> Posting guidelines + more:
> https://wiki.documentfoundation.org/Netiquette
> >>> List archive: https://listarchives.libreoffice.org/global/users/
> >>> Privacy Policy: https://www.documentfoundation.org/privacy
> >>>
>
> --
> To unsubscribe e-mail to: [hidden email]
> Problems?
> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
> List archive: https://listarchives.libreoffice.org/global/users/
> Privacy Policy: https://www.documentfoundation.org/privacy
>

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Johnny Rosenberg Johnny Rosenberg
Reply | Threaded
Open this post in threaded view
|

Re: percent to whole fraction

Den lör 27 apr. 2019 kl 13:29 skrev Johnny Rosenberg <[hidden email]
>:

>
>
> Den fre 26 apr. 2019 kl 23:09 skrev Luuk <[hidden email]>:
>
>> YES, LCM() that's the function i was looking for...
>>
>> I did not know it that function exists, probably because it's name in my
>> Dutch version of EXCEL is KGV()..... :-[
>>
>
> It's named ”MGM()” in my Swedish version (Minsta Gemensamma Multipel).
>

I didn't pay attention that you wrote ”EXCEL”, I was still talking about
LibreOffice Calc. Sorry for the confusion.


> Do you know that you can easily pick another language for the graphical
> user interface? You need to restart LibreOffice, and then all cell
> functions are in the selected language (English would be a good choice in
> this case). I usually do that when I'm about to ask or reply to questions
> on this mailing lists, if I need to copy and paste cell formulas or explain
> how to find a certain thing in the menues. Nobody will understand
> ”≈OM(ÄRTAL(LETARAD(blah;blah;blah));1;0)”, for instance.
> Also, do you know that you can hit Ctrl+F2 for help when creating cell
> formulas? I dialogue will pop up helping you to find what you need and you
> can look through cell functions by category and more. You can also see the
> results of parts of your formula, making it easier to debug a faulty
> formula. I found it very helpful and there's where I found the LCM()
> function (although it was called MGM when I found it).
>
>
> Kind regards
>
> Johnny Rosenberg
>
>
>
>>
>> (see:
>>
>> https://www.excel-function-translation.com/index.php?page=english-dutch.html
>> )
>>
>>
>> On 26-4-2019 22:54, Johnny Rosenberg wrote:
>> > Den fre 26 apr. 2019 kl 22:42 skrev Johnny Rosenberg <
>> [hidden email]
>> >> :
>> >> Den fre 26 apr. 2019 kl 20:37 skrev Luuk <[hidden email]>:
>> >>
>> >>> Let me rephrase the question.... ;)
>> >>>
>> >>> In the 'example' line we see:
>> >>>
>> >>> 56  302    28/151
>> >>>
>> >>> The actual cell contents are:
>> >>>
>> >>> 56 302     0,18543046357615894039735099337748
>> >>>
>> >>> Is it possible to get the values '28' and '151' as show by the
>> >>> fraction-formatter?
>> >>>
>> >> Are we allowed to use the first two numbers (56 and 302 in this case)
>> or
>> >> only the fraction (0,185…)?
>> >> Are we allowed to create our own cell functions?
>> >> Is the maximum values 999/999 or are higher numbers allowed?
>> >> Do you want one number (28) in one cell and the other number (151) in
>> >> another cell or what?
>> >>
>> > If you can use the original numbers (56 and 302 in the example above),
>> > here's a short example:
>> > A1=56
>> > B1=302
>> > C1=LCM(A1;B1)/B1 ⇨ 28
>> > D1=LCM(A1;B1)/A1 ⇨ 151
>> >
>> > Kind regards
>> >
>> > Johnny Rosenberg
>> >
>> >
>> >> Kind regards
>> >>
>> >> Johnny Rosenberg
>> >>
>> >>
>> >>
>> >>>
>> >>>
>> >>> On 26-4-2019 19:01, Luuk wrote:
>> >>>> Is there an option to convert a cell with format 'Fraction' to text?
>> >>>>
>> >>>> example:
>> >>>>
>> >>>> a     b       'a/b
>> >>>>
>> >>>> 52    297     52/297
>> >>>> 56    302     28/151
>> >>>> 66    311     66/311
>> >>>>
>> >>>> in this third line, i want to get '28' and '151'....
>> >>>>
>> >>>> i tried TEXT(C2;""), and FIND("/";C2;1),
>> >>>>
>> >>>>
>> >>>> On 26-4-2019 00:45, Remy Gauthier wrote:
>> >>>>> Hi,
>> >>>>>
>> >>>>> I am assuming you are using Calc. There is no formula to do this:
>> it is
>> >>>>> a cell formatting accessible via Format -> Cells... -> Numbers Tab,
>> >>>>> then go to the "Fraction" category. There you can select the #
>> ???/???
>> >>>>> format which will do what you are looking for.
>> >>>>>
>> >>>>> I hope this helps.
>> >>>>>
>> >>>>> R??my.
>> >>>>> Le jeudi 25 avril 2019 ?? 21:42 +0000, James a ??crit :
>> >>>>>> I need a formula that takes as input a percent and outputs a
>> fraction
>> >>>>>> that only has whole numbers.
>> >>>>>> Eg.
>> >>>>>> 1% -> "1/100"
>> >>>>>> 0.5% -> "1/200"
>> >>>>>> 1.5% -> "3/200"
>> >>>>>>
>> >>>>>>
>> >>> --
>> >>> To unsubscribe e-mail to: [hidden email]
>> >>> Problems?
>> >>>
>> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
>> >>> Posting guidelines + more:
>> https://wiki.documentfoundation.org/Netiquette
>> >>> List archive: https://listarchives.libreoffice.org/global/users/
>> >>> Privacy Policy: https://www.documentfoundation.org/privacy
>> >>>
>>
>> --
>> To unsubscribe e-mail to: [hidden email]
>> Problems?
>> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
>> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
>> List archive: https://listarchives.libreoffice.org/global/users/
>> Privacy Policy: https://www.documentfoundation.org/privacy
>>
>

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy