Split values equally into groups using excel array formula
Question: How do I divide values equally into groups (3 lists or less)?
Answer:
Formula in c4:C25:
Formula in D4:D25:
Formula in D4:D25:
Try changing value (1, 2 or 3) in D1 and see how List1, List2 and List3 changes.
Download example workbook
Download excel sample file for this tutorial.
split-values-into-groups-using-excel-formula.xls
(Excel 97-2003 Workbook *.xls)
Functions in this article:
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
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
ROW(reference)
Returns the rownumber of a reference
MIN(number1,[number2])
Returns the smallest number in a set of values. Ignores logical values and text








May 7th, 2012 at 11:38 pm
i tried to add a list number 4 with this formula =IF(D1>3,INDEX($A$2:$A$21,(ROW($A$2:$A$21)-MIN(ROW($A$2:$A$21))+1)*D1-(D1-4)),"")
the value at f4 is DD but the f5, f6,etc....arejust repeating the result
May 11th, 2012 at 3:16 pm
Fahmy,
split-values-into-groups-using-excel-formula.xlsx