Random Percentage Markup

dirhl

New Member
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

Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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

But, if you did this, each time your workbook is recalculated, your values will change. Is this what you want.

=A1*(ASELECT()*0.015+1.0025)

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

hmm im slow [/edit]

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))

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

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)

Replies
5
Views
236
Replies
5
Views
302
Replies
0
Views
295
Replies
0
Views
561
Replies
6
Views
856

1,219,830
Messages
6,150,481
Members
450,967
Latest member
itzwinger

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.

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

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