I guess Column A:A needs to be fixes correct, if I drag the formula?
the A:A and A$1 references can be left as-is -- these are just being used (w/ROW) to build a dynamic array of 1 to n, to be used as k-array within the AGGREGATE call -- i.e. these references are completely agnostic of your data.
#2. Duplication - I wanted to avoid duplicates value in the same row
if I've understood, I think the below would address that?
the above, as it is copied across, removes from the 'possible' array any # already used and, adjusts the boundary of the RANDBETWEEN accordingly
so, in other words, the 2nd instance of a given condition in a row would see the upper threshold of the RANDBETWEEN reduced by 1 to account for fact one number must already be assigned, and which has been removed from the array
#3. Is there a fix for #NUM error, is it possible to have any other number from the list that is not duplicated in place of #NUM error
this one you might need to elaborate on, I'm afraid.
Would limiting the "any" number to those assigned to conditions NOT in use on that row work? using "any" unused number (irrespective of whether or not the condition is active on the row) is significantly more complicated
on a final aside, I would advise removing your CF rules on that matrix and replacing with one single rule -- with C15 the active cell, apply a CF rule (with same format) of:
=(COUNTIF($C15:$H15,C15)>1)
and apply to C15:H64
Bookmarks