Excel random number (based on another cell)


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:

... 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?

Who is Participating?
Saqib Husain, SyedConnect With a Mentor EngineerCommented:
The obvious answer is
=randbetween(B1*.3,B1*.7) assuming your target number is in B1

are you looking for something more complex?

oops, what he said

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

ExpExchHelpAuthor Commented:
PERFECT!!!!   Thanks for the quick response!
Saqib Husain, SyedEngineerCommented:
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.
Thanks Ssaqibh, but your solution was more accurate
Saqib Husain, SyedEngineerCommented:
Ahh I see.

I had followed up with


but deleted that comment thinking that it was the same as yours.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.