Rand number between two demical values

Eyeson15

Board Regular
Joined
Apr 30, 2015
Messages
201
Hi there
I know there are lots of solutions available but none of them fits my purpose.
I have two numbers,
7.59293
7.67213
Without using VBA (if possible), how can I return a value between these two values with same number of decimal places as well?
Thank you in advance!
James
 

Some videos you may like

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

maabadi

Well-known Member
Joined
Oct 22, 2012
Messages
1,577
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Use this:
Excel Formula:
=RandBetween(759293,767213)/100000
 

Eyeson15

Board Regular
Joined
Apr 30, 2015
Messages
201

ADVERTISEMENT

Or try:

=RAND()*($B$1-$A$1)+$A$1
Hi Phuoc I tried it but it creates a value that has 4 more decimal places. like this 7.657837042
Thank you nonetheless!
 

maabadi

Well-known Member
Joined
Oct 22, 2012
Messages
1,577
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
You're Welcome and Glad we can Help.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,098
Messages
5,622,678
Members
415,921
Latest member
ExcelNoob28

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top