ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Output 0 to 100 (https://www.excelbanter.com/excel-programming/395292-output-0-100-a.html)

Hassan

Output 0 to 100
 
Hi All,

Is there any formula which return the value 0 to 100 only?

Thanks & Regards

Hassan

Thomas Ramel

Output 0 to 100
 
Grüezi

Hassan wrote at 11.08.2007

Is there any formula which return the value 0 to 100 only?


If you like an random value in between these ranges you can try the
following:

=TRUNC(RAND()*100,0)



Mit freundlichen Grüssen
Thomas Ramel

--
- MVP für Microsoft-Excel -
[Win XP Pro SP-2 / xl2003 SP-2]
Microsoft Excel - Die ExpertenTipps

Vergel Adriano

Output 0 to 100
 

=RANDBETWEEN(0,100)

.... but you'll need to load the Analysis Toolpack Add-In


--
Hope that helps.

Vergel Adriano


"Hassan" wrote:

Hi All,

Is there any formula which return the value 0 to 100 only?

Thanks & Regards

Hassan


Dallman Ross

Output 0 to 100
 
In , Thomas Ramel
spake thusly:

Hassan wrote at 11.08.2007

Is there any formula which return the value 0 to 100 only?


If you like an random value in between these ranges you can try
the following:

=TRUNC(RAND()*100,0)


Easier:

=MOD(somenumber,100)

--
=dman=

Thomas Ramel

Output 0 to 100
 
Grüezi Dallman

Dallman Ross schrieb am 12.08.2007

In , Thomas Ramel

Hassan wrote at 11.08.2007

Is there any formula which return the value 0 to 100 only?


If you like an random value in between these ranges you can try
the following:

=TRUNC(RAND()*100,0)


Easier:

=MOD(somenumber,100)


....and how you make 'somenumber' random and without decimals...?


Mit freundlichen Grüssen
Thomas Ramel

--
- MVP für Microsoft-Excel -
[Win XP Pro SP-2 / xl2003 SP-2]
Microsoft Excel - Die ExpertenTipps

Dallman Ross

Output 0 to 100
 
In , Thomas Ramel
spake thusly:

Grüezi Dallman


Bist Du aus der Schweiz?

Dallman Ross schrieb am 12.08.2007

In , Thomas Ramel

Hassan wrote at 11.08.2007

Is there any formula which return the value 0 to 100 only?

If you like an random value in between these ranges you can try
the following:

=TRUNC(RAND()*100,0)


Easier:

=MOD(somenumber,100)


...and how you make 'somenumber' random and without decimals...?


I wasn't addressing the "random" idea, which you proposed but
which the OP has not confirmed to be his wish. I was merely
going to the OP's original question of supplying a formula that
will return only that range of values. Yes, for a requirment
for random data, your answer is of course very good.

=dman=

Thomas Ramel

Output 0 to 100
 
Grüezi Dallman

Dallman Ross schrieb am 15.08.2007

In , Thomas Ramel

Grüezi Dallman


Bist Du aus der Schweiz?


Ja, bin ich - hört man das *so* gut?

Dallman Ross schrieb am 12.08.2007

In , Thomas Ramel

Hassan wrote at 11.08.2007

Is there any formula which return the value 0 to 100 only?

If you like an random value in between these ranges you can try
the following:

=TRUNC(RAND()*100,0)

Easier:

=MOD(somenumber,100)


...and how you make 'somenumber' random and without decimals...?


I wasn't addressing the "random" idea, which you proposed but
which the OP has not confirmed to be his wish. I was merely
going to the OP's original question of supplying a formula that
will return only that range of values. Yes, for a requirment
for random data, your answer is of course very good.


OK, I understand your point of view - interesting, in deed.

So now we wait until the OP will decide.


Mit freundlichen Grüssen
Thomas Ramel

--
- MVP für Microsoft-Excel -
[Win XP Pro SP-2 / xl2003 SP-2]
Microsoft Excel - Die ExpertenTipps

Dallman Ross

Output 0 to 100
 
In , Thomas Ramel
spake thusly:

Grüezi Dallman

Dallman Ross schrieb am 15.08.2007

In , Thomas Ramel

Grüezi Dallman


Bist Du aus der Schweiz?


Ja, bin ich - hört man das *so* gut?


Häsche dini Ovo hüüt scho' g'haaa?

:-)

I wasn't addressing the "random" idea, which you proposed but
which the OP has not confirmed to be his wish. [. . .]


OK, I understand your point of view - interesting, in deed.

So now we wait until the OP will decide.


Okay, I'm as curious as you are.

=dman=


All times are GMT +1. The time now is 01:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com