• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Job Distribution

Aloun

New Member
Hi Everyone,

I'm trying to create a macro for my attached spreadsheet.

We want to distribute an "exclusive" to the person starting with the highest gross income.

So I want to be able to enter a unit in the unit column and run a macro that will pop a name in the agent column according to the table on the left.

I want to be able to do this "round robin" style where we we go down the list of those qualified for one until we have no more units to give out.

Happy to take any suggestions/any help!

Thank you!
 

Attachments

  • Exclusive Distribution .xls
    45 KB · Views: 8
Hi, Aloun!

Welcome to Chandoo forums!
Checked this yet?
http://chandoo.org/forum/forums/new-users-please-start-here.14/

About your question, why not using formulas?
=SI.ERROR(INDICE(A$2:A$32;COINCIDIR(K.ESIMO.MAYOR(SI(D$2:D$32="Y";C$2:C$32);FILA()-1);C$2:C$32;0));"") -----> in English:
=IFERROR(INDEX(A$2:A$32,MATCH(LARGE(IF(D$2:D$32="Y",C$2:C$32),ROW()-1),C$2:C$32,0)),"")

It's an array formula so enter it with Shift+Ctrl+Enter instead of just Enter.

Regards!
 
Back
Top