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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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
 
Upvote 0
But, if you did this, each time your workbook is recalculated, your values will change. Is this what you want.
 
Upvote 0
=A1*(ASELECT()*0.015+1.0025)

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

[edit]hmm im slow :([/edit]
 
Upvote 0
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
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,214,989
Messages
6,122,622
Members
449,093
Latest member
catterz66

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