Solved

Excel random number (based on another cell)

Posted on 2013-12-10
7
311 Views
Last Modified: 2013-12-10
Experts:

I need assistance with deriving a random number which range is determined by the value of another cell.

Usually, for a random number generation, I may chose the following formula:
=RANDBETWEEN(1,20)

... which, as you know, generates any number between 1 and 20.

Now, here's what I need to achieve instead.   Based on another cell value, derive a random number that is within a 30% range (up or down).   For example, let's say I have the following values in the below cell range:

Cell A1 = 10
Cell B1 = random number should be between 7 or 13 (30% of 10 = 3... thus, 10 - 3 or 10 + 3)

Cell A2 = 90
Cell B2 = random number should be between 63 and 117 (30% of 90 = 27... up or down)

Does anyone know how to generate the random number function for this concept?

Thanks,
EEH
0
Comment
Question by:ExpExchHelp
  • 3
  • 3
7 Comments
 
LVL 19

Expert Comment

by:regmigrant
ID: 39708440
The obvious answer is
=randbetween(B1*.3,B1*.7) assuming your target number is in B1

are you looking for something more complex?

Reg
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 39708447
=RANDBETWEEN(A1-0.3*A1,A1+0.3*A1)
0
 
LVL 19

Expert Comment

by:regmigrant
ID: 39708449
oops, what he said

Reg
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Closing Comment

by:ExpExchHelp
ID: 39708470
PERFECT!!!!   Thanks for the quick response!
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39708481
I really think that points should have been awarded to Reg as his solution came in first and is more simplified. I did not see his solution when I posted.
0
 
LVL 19

Expert Comment

by:regmigrant
ID: 39708497
Thanks Ssaqibh, but your solution was more accurate
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39708532
Ahh I see.

I had followed up with

=RANDBETWEEN(0.7*A1,1.3*A1)

but deleted that comment thinking that it was the same as yours.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now