Random Percentage Markup

dirhl

New Member
Joined
Sep 6, 2006
Messages
1
I am trying to write a formula to add a random percentage of markup.
I have a value in one cell of a sheet that I want to add a randomly chosen percentage to from .25% to 1.75% and place the result in another linked cell of the same workbook on a different sheet.

Like

='SOURCESHEET'!K12 plus a randomly chosen percentage from .25% to 1.75% added to the original number = contents of cell on second sheet.

Can this be done ? (Random percentages ?)

Thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Hi Dirhl

Welcome to the Board!

If you type the following formula into a cell, it will generate a % between 0.25% and 1.75% using the RAND function:

Code:
=RAND()*1.5%+0.25%

This should let you do what you want.

Best regards

Richard
 

SteveO59L

Well-known Member
Joined
Apr 21, 2004
Messages
7,896
But, if you did this, each time your workbook is recalculated, your values will change. Is this what you want.
 

Harvey

Well-known Member
Joined
Nov 18, 2004
Messages
953
=A1*(ASELECT()*0.015+1.0025)

or did you mean 25% and 175%:
=A1*(ASELECT()*1.5+1.25)

[edit]hmm im slow :([/edit]
 

R_Stephens

Board Regular
Joined
Dec 23, 2004
Messages
143
Hi dirhl,

While it is possible to have excel add a random value to a number using a formula, you have the problem that it will recalculate and change everytime your spreadsheet recalculates.

='SOURCESHEET'!K12*(1+(0.015*RAND()+0.0025))

Will add your 0.25% - 1.75%, but the calue will change everytime your sheet changes.

If you are wanting the value to be created and then not change you are probably going to have to have some VB code to save the value.

Hope it helps

Richard
 

Harvey

Well-known Member
Joined
Nov 18, 2004
Messages
953
when you have finished typing the formula, you can press F9 in the formula bar to change the formula to a static value (ie. it wont change anymore, but it won't be a reference anymore also)
 

Forum statistics

Threads
1,137,061
Messages
5,679,388
Members
419,825
Latest member
MegastarMagus

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