Sorting a table the correct way

IVANAROS

New Member
Joined
Apr 30, 2017
Messages
4
Hi

In the example below on columns N to P I am trying to get a sorted array (smaller to larger) with the following

Automatic entry times if they exist (no limit of entries)
And after that the Minimum entry times follow (limit of entries is specified in P4).

I have sort of done it (tables N-P) as you can see using a temp table (K-L, that I would like to get rid of) but I am getting blank cells and it's not sorted in descending- ascending order automatically it doesn't take the limit into account.

K3 contains = INDEX(A2:A100,MATCH("Senior"&"Male",$B$2:$B$100&$C$2:$C$100, 0))
L2 is a vlookup


P2 =INDEX(I3:I11,MATCH("Automatic entry time"&"Senior"&"Male",F3:F8&G3:G8&H3:H8,0))
P3=INDEX(I3:I11,MATCH("Minimum entry time"&"Senior"&"Male",F3:F8&G3:G8&H3:H8,0))
P4=INDEX(I3:I11,MATCH("Number of places in the team"&"Senior"&"Male",F3:F8&G3:G8&H3:H8,0))


N7=IF(L3 <= $P$2, K3, "")
O7=Vlookup
p7=IF(L3<=$P$2,"Automatic Time", "")

N11=IF(AND(L3<=$P$3,L3>$P$2),K3,"")


925d90281d9f45058fe5db60a5e22777.png


Thanks in advance.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,214,839
Messages
6,121,891
Members
449,058
Latest member
Guy Boot

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top