Display random text

bbvierra

New Member
Joined
Jun 7, 2007
Messages
38
Is there an easy way to display random text in excel? I know it's pretty easy for numbers, but I'm having trouble with text.

In Column B, I have random text in cells B1 through B1000. I would like A1= one of the B column cells at random. A2 = another random B cell, etc. Some of these A cells will have the same value as others, which is not a problem.

Any help is greatly appreciated.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Try

=INDEX(B1:B1000,RANDBETWEEN(1,1000))

Randbetween requires the Analysis Toolpack from Tools - Addins.

Hope that helps.
 
Upvote 0
UDF
Code:
Function RandomText() As String
    RandomText = Cells("B" & WorksheetFunction.RandBetween(1, 1000))
End Function
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,240
Members
452,898
Latest member
Capolavoro009

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