View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Luke M Luke M is offline
external usenet poster
 
Posts: 2,722
Default Lottery function - how to randomly select cells

With the Analysis ToolPak add-in activated (tools-addins):

Cell address in range A1:Z1000
=ADDRESS(RANDBETWEEN(1,1000),RANDBETWEEN(1,26),4)
Press F9 to generate a new random address.

If you want the contents of that cell:
=INDIRECT(ADDRESS(RANDBETWEEN(1,1000),RANDBETWEEN( 1,26),4))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"ap@rfr" wrote:

how to create function to randomly select names