If you want an integer from a contiguous range of numbers such as
0,1,2,3,...,100, I suggest RANDBETWEEN. For a***l-retentive folks like
me, it isn't the best thing on the planet, but might suffice for your
application.
If you want to get a single sample from an arbitrary data set, that
might even include text or booleans, then, to make this easy on
yourself, Insert/Name/Define the set as something like "SampleRng" (do
this by selecting, say, B2:B101, before naming the thing). I'm assuming
your data are in a column.
Then in a convenient cell, such as C2, enter the formula
=INDEX(SampleRng,RANDBETWEEN(1,ROWS(SampleRng))).
Check out Excel's Help on Index to see what it does; it's a very useful
function.
Note that you have to have the Ananlysis ToolPak installed
(Tools/Add-Ins) for this to work. If you are uncomfortable with that,
then repost, and we can show you how to generate integers from the core
Excel product; it's easy, and actually better implemented, but not as
self-documenting as what I'm suggesting.
Hope this helps,
Dave Braden
MVP - Excel