+ Reply to Thread
Results 1 to 5 of 5

Returning a random selection from the content of a cell

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-18-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    641

    Returning a random selection from the content of a cell

    In A1 I have these symbols :

    !@#$%^&*()


    I'd like in A4 to enter a formula which would randomly select and return one of these symbols.


    Grateful for any advice on this.

    Last edited by CDandVinyl; 07-24-2020 at 10:40 PM.
    Using Excel , Word and Access 2003 - For the whole of 2024

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Returning a random selection from the content of a cell

    Please try in A4:

    =MID(A1, RANDBETWEEN(1,10), 1)
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,956

    Re: Returning a random selection from the content of a cell

    Use this formula for excel 2003:

    =MID(A1, 1+INT(RAND()*LEN(A1)), 1)

  4. #4
    Forum Contributor
    Join Date
    01-18-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    641

    Re: Returning a random selection from the content of a cell

    Ok Thanks guys. That's solved it.


  5. #5
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Returning a random selection from the content of a cell

    Thanks for the feedback and rep

    I think randbetween() was available in XL 2003 (via the analysis toolpack) right?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 08-03-2019, 10:11 AM
  2. Replies: 1
    Last Post: 03-12-2014, 01:26 PM
  3. [SOLVED] Returning cell content from array based on two conditions
    By mistert in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-25-2012, 02:19 AM
  4. Random colour change on cell content input
    By JamesT1 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-13-2010, 08:23 PM
  5. How to get an index of cell number in selction range.
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2006, 12:25 PM
  6. Returning Specific Cell Content using IF Statement
    By weeclaire in forum Excel General
    Replies: 2
    Last Post: 02-17-2006, 09:55 AM
  7. Returning Specific Cell Content using IF Statement
    By weeclaire in forum Excel General
    Replies: 0
    Last Post: 02-17-2006, 05:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1