Forum Discussion
Allocation and grouping of data based on criteria
*
kelvin teo wrote:my team did a formula with Min, Max and Countif, to allocate the data into groups of 8
Your formula does nothing of that kind. It simply counts the occurrences of each CODE.
Maybe you are looking for this:
=QUOTIENT(ROWS(D$2:D2)-1,$M$2)+1
- kelvin teoJul 02, 2018Copper Contributor
Detlef_Lewin Thank you the fast reply!
able to help me understand the use of quotient for this case?
=QUOTIENT(ROWS(D$2:D2)-1,$M$2)+1
and what would be the use of cell "M" in the formula?
indeed we want to count the occurrence of the code but we are unable to limit it to 12 in each group. Hence we faced a road block..
Just realized i missed out mentioning about the criteria. In each group, we hope to achieve an equal mix of Criteria 1 (same number mixing of C, M, I and O), Criteria 2 (equal mix of 1 and 2) and Criteria 3 (equal mix of A, B, C and D).
Thank you!!
Cheers
Kelvin
- Detlef_LewinJul 02, 2018Silver Contributor
Kelvin,
it's still not clear to me. Could you provide the desired results?
- kelvin teoJul 02, 2018Copper Contributor
the desire result would be a a good mix of the following in each group, assuming on the 100 records split into 8 groups:
1. equal mix of Criteria 3: (A, B, C and D) and each of them may not be the same number
2. equal mix of Criteria 2: (1 and 2) and there may not be 50 of each.
3. equal mix of Criteria 1: (C, M, I, O) and each of them may not be the same number.
Hence, we came up with the CODE columns, to have a combination of C1A, C1B, C1C so on so forth. and we hope to split the C1A, C1B etc into different groups.
Hence, 1 group should have at least 1 permutation of the CODE.
Hope the above clarifies.
Thank you!
Cheers
Kelvin