A simple function for our schedule that sorts how much overtime people have been offered. I'm doing it the long way, and it's probably not the easiest way, but I think it's the simplest. I've gotten really close (it pulls the data, uses large to rank it and then compares Person A's total to the number)
For example
Jim 20
Shannon 37
Joe 15
Then it ranks it low to high
15
20
37
Then it makes a list of names, it does this by using nested if functions, if C1 = B1 then D1 would = Jim, if C1 = B2 then D1 would = Shannon, etc.
Here's the code I'm using. Only problem is when people have the same amount, in this code Mateo and Shannon have the same amount, so it lists Shannon's name twice in F95 and F96 (this code is repeated 4 times):
=IF((B94=F96),"Linda",IF((B95=F96),"Shannon1",IF((B96=F96),"Mateo",IF((B97=F96),"Jim K.",""))))
Bookmarks