Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Spreadsheets (https://www.askmehelpdesk.com/forumdisplay.php?f=395)
-   -   Excel randbetween (https://www.askmehelpdesk.com/showthread.php?t=69359)

  • Mar 6, 2007, 12:31 PM
    shiv94
    Excel randbetween
    Well I no how to use randbetwenn with numbers but I have some words in different cells is there anyway I can do a randbetween with those
    Thanks
  • Mar 6, 2007, 12:36 PM
    ScottGem
    Nope, RandBetween takes only numeric values as its parameters. What is it you are trying to accomplish?
  • Mar 6, 2007, 09:01 PM
    cajalat
    ScottGem is right... there is no single function that will do what you're asking. However, you can probably make use of the randbetween function in an indirect way to get what you want. For example:

    Code:

    =CHOOSE(RANDBETWEEN(1,4),A11,A12,A13,A14)
    This will randomly choose the value of some given cells. The limit of the "CHOOSE" function is 29 cells.
  • Mar 19, 2007, 10:35 AM
    Ken Hackney
    Use

    =INDEX($A1:$A10,RANDBETWEEN(1,COUNTA($A1:$A10)),1)

    for randomly choosing a word from columns A1-A10. Of course, you can change this to any rows or columns you need. Just change the formula accordingly.

  • All times are GMT -7. The time now is 01:36 AM.