ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   randbetween(1.1,1.25) (https://www.excelbanter.com/excel-worksheet-functions/149622-randbetween-1-1-1-25-a.html)

Deniz

randbetween(1.1,1.25)
 
Hi

I need to get random result between 1.1 and 1.25 like :
randbetween(1.1,1.25) or randbetween(1.125,1.235)

It gives always 1. How cani solve this ?

Thanks,

Deniz


Peo Sjoblom

randbetween(1.1,1.25)
 
It clearly states integers in the help, try something like this instead

=(RAND()*(1.25-1.1)+1.1

or


=ROUND(RAND()*(1.25-1.1)+1.1,2)



--
Regards,

Peo Sjoblom



"Deniz" wrote in message
...
Hi

I need to get random result between 1.1 and 1.25 like :
randbetween(1.1,1.25) or randbetween(1.125,1.235)

It gives always 1. How cani solve this ?

Thanks,

Deniz




Bernie Deitrick

randbetween(1.1,1.25)
 
Deniz,

=1 + RANDBETWEEN(10,25)/100

RANDBETWEEN only takes integers....

HTH,
Bernie
MS Excel MVP


"Deniz" wrote in message ...
Hi

I need to get random result between 1.1 and 1.25 like : randbetween(1.1,1.25) or
randbetween(1.125,1.235)

It gives always 1. How cani solve this ?

Thanks,

Deniz




Max

randbetween(1.1,1.25)
 
Just modify it: =RANDBETWEEN(110,125)/100
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Deniz" wrote:
Hi

I need to get random result between 1.1 and 1.25 like :
randbetween(1.1,1.25) or randbetween(1.125,1.235)

It gives always 1. How cani solve this ?

Thanks,

Deniz




All times are GMT +1. The time now is 12:42 PM.

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