How to generate a log-normal distribution?

Aqil

New Member
Joined
May 5, 2011
Messages
9
I need to generate a random log-normal distribution with a given average 500,000 and standard deviation 100,000. For a normal distribution I would simply type
=NORM.INV(RAND();500000;100000)​

which produces reasonable results with approximately an average output of 500,000 and standard deviation around 100,000. However, I can't get my head around the =LOGNORM.INV() function. Typing

=LOGNORM.INV(RAND();500000;100000)​

produces a #NUM! error, seemingly because the output is too large. Typing

=LOGNORM.INV(RAND();5;1)​

solves this issue, but produces an average output of approximately 245 and standard deviation over 300, which just isn't reasonable. Microsoft's support page seems to suggest

=LOGNORM.INV(RAND();LN(500000);LN(100000))​

but this also produces erratic and unreasonably large output, of more than 10^24.

The problem doesn't necessarily have to be solved using the =LOGNORM.INV() function, but it does seem to be the most straight-forward method, isn't it? I can't find any clear explanation, and I'm all out of ideas. So can somebody please advise me on how to generate random numbers from a log-normal distribution?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,215,029
Messages
6,122,757
Members
449,094
Latest member
dsharae57

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