I want to be able to split a data set that I have. I want to split it evenly 50/50 but want a particular column to contain equal distributions in the splits. For instance this particular column is a code column that contains numbers from 1 - 4. I want my segmentations from the 50/50 to have similar distributions of that code column.
Filter the first column and indclude the values less or equal to median. The second column imclude the values greater than or equal to median. Should split the lits into two simila columns. =FILTER(D4:D7;C4:C7<=MEDIAN(C4:C7))