Random percentages

Davemk

New Member
Joined
Sep 14, 2017
Messages
2
Hi,

I need a bit of help for a work project i'm currently looking in to.

I need to return a random value that is between 10-25% higher than a specified value. For example, I have a figure of £314.25 and, in the next cell, I need to get a figure that is randomly between 10-25% higher.

I know it's not really much to go on and it's my first time posting here so apologies if I've not provided enough information.

Thanks in advance

Dave
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi,
I need to return a random value that is between 10-25% higher than a specified value. For example, I have a figure of 314.25 and, in the next cell, I need to get a figure that is randomly between 10-25% higher.

Ostensibly, if 314.25 is in A1:

=ROUND(A1*(1 + RANDBETWEEN(10,25)%), 2)

However, that generates only "integer" percentages 10%, 11%, 12%, etc. If you want percentages with 2 percentage decimal places -- 10.00%, 10.01%, 10.02% etc -- one way to do that is:

=ROUND(A1*(1 + RANDBETWEEN(1000,2500)/10000), 2)

For unlimited decimal places, you could write:

=ROUND(A1*(1 + (10% + (25%-10%)*RAND())), 2)
or
=ROUND(A1*(1 + (10% + 15%*RAND())), 2)
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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
Back
Top