How to create a random list of unique numbers in excel
Question: How do I create a random list of unique numbers from say 1 to 10, without using VBA (Generate unique random numbers) (Unique random numbers in VBA)
or without enabling iterative calculation in excel options
or not using "helper" columns?
Answer:
Formula in cell A2:
=INDEX(SMALL(IF(COUNTIF($A$1:A1, ROW($1:$10))=0, ROW($1:$10), ""), ROW(INDIRECT("1:"&SUM(IF(COUNTIF($A$1:A1, ROW($1:$10))=0, 1, 0))))), ROUND(RAND()*SUM(IF(COUNTIF($A$1:A1, ROW($1:$10))=0, 1, 0)), 0), ) + CTRL + SHIFT + ENTER copied down to cell A14.
How to customize array formula to your excel work sheet
If your list starts at F3 change $A$1:A1 to $F$2:F2 in the above array formula. To change the numbers from 1 to 10 to, for example, 2 to 12, change $1:$10 to $2:$12 also in the above array formula.
Press F9 to generate a new random list of unique numbers.
Download excel sample file for this tutorial.
unique-random-list-of-numbers.xls
(Excel 97-2003 Workbook *.xlsx)
Functions in this article:
INDEX(array,row_num,[column_num])
Returns a value or reference of the cell at the intersection of a particular row and column, in a given range
MATCH(lookup_value;lookup_array; [match_type]
Returns the relative position of an item in an array that matches a specified value
IF(logical_test;[value_if:true];[value_if_false])
Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE
COUNTIF(range,criteria)
Counts the number of cells within a range that meet the given condition
SUM(number1,[number2],)
Adds all the numbers in a range of cells
SMALL(array,k) returns the k-th smallest row number in this data set.
ROW(reference) returns the rownumber of a reference
INDIRECT(ref_text,[a1])
Returns the reference specified by a text string
Related posts:
- Create a list of all numbers or text in a column in excel
- Create a repeating list of numbers from 1 to Nth value
- Create unique list from two columns
- Create unique distinct list sorted based on text length using array formula in excel
- Filter a column and create a new unique list sorted from A to Z using array formula in excel
- Create a unique distinct alphabetically sorted list, extracted from a column in excel
- Create a unique distinct text list from a range containing both numerical and text values in excel
- Identify missing numbers in a range in excel
- How to create a unique distinct list where other columns meet two criteria
- Identify missing three character alpha code numbers in excel



Leave a Reply