Forum Discussion
Allocation and grouping of data based on criteria
Hi all
I have a problem here as i wanted to allocate grouping to a set of data with 3 criteria and each group has a size limit of 12.
my team did a formula with Min, Max and Countif, to allocate the data into groups of 8 (using 100 data records to divide by 12 to get the nearest number of 8). However, we encounter an issue of the formula not able stop at the size limit of 12 in each group and weirdly there is a missing group 6 in the allocation.
I have attached the excel here for further assistance!
Appreciate of any help!
Thank you!
Kelvin
10 Replies
- Detlef_LewinSilver Contributor
*
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 teoCopper 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_LewinSilver Contributor
Kelvin,
it's still not clear to me. Could you provide the desired results?