I have a data set of simulations where I am calculating the total daily sales of 5000 different combinations of a group of 6 sales people, based off the individual sales members' average daily sales total and std. I have already ran the simulation 10000 times and have a 5000x10000 array of all the trials. Each trial is independent of the other 9999 trials. Row 1 has the group ID numbers 1-5000, column A has the trials numbered 1-10000.
What I am trying to do, with no luck, is find out how many times out of the 10000 trials, each of the 5000 groups was in the top 10% of total sales.
I have minimal coding experience outside of normal excel formulas. Is there an easy way to do this with normal formals or simple VBA? I was hoping for something like a COUNTIF the number in this column is greater than the 90%percentile of the row it is in, and then be able to carry it through all 5000 groups.
**Edit 1: to clarify, what I'm hoping to find is a formula that would count if the number in each cell in this column is in the top 10% of all the numbers in its respective row, or vice versa. I can copy and paste transposed if the formula needed to be the number in each cell in this row is in the top 10% of the numbers in it's respective column.