Titanclaymore
New Member
- Joined
- Nov 30, 2013
- Messages
- 15
I am trying to create a formula that allows a set of data to be interrogated and then extract and display in set pattern. The data set will cover thousands of rows, for simplicity I have cut this to 15 with three columns
[TABLE="width: 204"]
<colgroup><col width="64" style="width:48pt"> <col width="76" style="width:57pt"> <col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[TD="width: 76"]Hourly Rate[/TD]
[TD="width: 64"]Gender[/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person B[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person C[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person D[/TD]
[TD="align: right"]8[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person E[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person F[/TD]
[TD="align: right"]7[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person G[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person H[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person I[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person J[/TD]
[TD="align: right"]7[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person K[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person L[/TD]
[TD="align: right"]6[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person M[/TD]
[TD="align: right"]6[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person N[/TD]
[TD="align: right"]6[/TD]
[TD]Female
[/TD]
[/TR]
</tbody>[/TABLE]
The output will be to order the data in numerical order by hourly rate and where the values are the same, this must be sorted in gender order 1 female then 1 male then 1 female etc and if there are none of difference then the same gender will populate until the next new number has been found.
The finished outcome will look like this
[TABLE="width: 204"]
<colgroup><col width="64" style="width:48pt"> <col width="76" style="width:57pt"> <col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[TD="width: 76"]Hourly Rate[/TD]
[TD="width: 64"]Gender[/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person D[/TD]
[TD="align: right"]8[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person B[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person C[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person E[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person F[/TD]
[TD="align: right"]7[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person G[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person J[/TD]
[TD="align: right"]7[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person H[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person I[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person K[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person L[/TD]
[TD="align: right"]6[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person N[/TD]
[TD="align: right"]6[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person M[/TD]
[TD="align: right"]6[/TD]
[TD]Male[/TD]
[/TR]
</tbody>[/TABLE]
Can anyone help?
[TABLE="width: 204"]
<colgroup><col width="64" style="width:48pt"> <col width="76" style="width:57pt"> <col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[TD="width: 76"]Hourly Rate[/TD]
[TD="width: 64"]Gender[/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person B[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person C[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person D[/TD]
[TD="align: right"]8[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person E[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person F[/TD]
[TD="align: right"]7[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person G[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person H[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person I[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person J[/TD]
[TD="align: right"]7[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person K[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person L[/TD]
[TD="align: right"]6[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person M[/TD]
[TD="align: right"]6[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person N[/TD]
[TD="align: right"]6[/TD]
[TD]Female
[/TD]
[/TR]
</tbody>[/TABLE]
The output will be to order the data in numerical order by hourly rate and where the values are the same, this must be sorted in gender order 1 female then 1 male then 1 female etc and if there are none of difference then the same gender will populate until the next new number has been found.
The finished outcome will look like this
[TABLE="width: 204"]
<colgroup><col width="64" style="width:48pt"> <col width="76" style="width:57pt"> <col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[TD="width: 76"]Hourly Rate[/TD]
[TD="width: 64"]Gender[/TD]
[/TR]
[TR]
[TD]Person A[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person D[/TD]
[TD="align: right"]8[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person B[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person C[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person E[/TD]
[TD="align: right"]8[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person F[/TD]
[TD="align: right"]7[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person G[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person J[/TD]
[TD="align: right"]7[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person H[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person I[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person K[/TD]
[TD="align: right"]7[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person L[/TD]
[TD="align: right"]6[/TD]
[TD]Male[/TD]
[/TR]
[TR]
[TD]Person N[/TD]
[TD="align: right"]6[/TD]
[TD]Female[/TD]
[/TR]
[TR]
[TD]Person M[/TD]
[TD="align: right"]6[/TD]
[TD]Male[/TD]
[/TR]
</tbody>[/TABLE]
Can anyone help?