JustBrowsing305
New Member
- Joined
- Jan 18, 2018
- Messages
- 10
Good Morning,
I've run into a strange scenario that demands a formula that can count an Employee ID under two different conditions, and THEN retrieve the name of the top 5 employees. The table or example that I will be using is shortened because the one I'm working with is too large. It's simple on a Pivottable but I'm trying to include a "Calculation" worksheet where I can link a Word page to extract certain cells. Below is the example table and the dilemma I'm facing:
<tbody>
</tbody><colgroup><col><col><col><col></colgroup>
The formula that I'm trying to create will need to do the following:
1) Count the amount of Order IDs ONLY if the "Current Date" matches and the "Area" matches.
2) Retrieve the Five top Employee IDs (with most IDs) and place them in a Descending Order.
Under the example that I used, I know that the Order will be:
1) EK1 with 5 Order IDs
2) EJ1 with 4 Order IDs
3) KG1 with 3 Order IDs
4) AZ1 with 2 Order IDs
5) KL1 with 1 Order IDs.
I apologize if I'm seeming lazy however the worksheet I'm working with has 1,360 different Employee IDs and 34,547 different order IDs. I can't use a pivottable because I need to keep certain cells locked in my "calculation" sheet. I only need a formula that shows me the top 5 under the two conditions. Thank you in advance to anyone who reads this.
I've run into a strange scenario that demands a formula that can count an Employee ID under two different conditions, and THEN retrieve the name of the top 5 employees. The table or example that I will be using is shortened because the one I'm working with is too large. It's simple on a Pivottable but I'm trying to include a "Calculation" worksheet where I can link a Word page to extract certain cells. Below is the example table and the dilemma I'm facing:
Current Date: | 1/18/2018 | ||
Area: | Jacksonville | ||
Date: | Area: | Employee ID: | Order ID: |
1/17/2018 | Jacksonville | EK1 | 55829 |
1/17/2018 | Jacksonville | EK1 | 55830 |
1/17/2018 | Miami | 58F | 55831 |
1/17/2018 | Ocala | 30J | 55832 |
1/18/2018 | Jacksonville | EK1 | 55833 |
1/18/2018 | Jacksonville | EK1 | 55834 |
1/18/2018 | Jacksonville | EJ1 | 55835 |
1/18/2018 | Jacksonville | EJ1 | 55836 |
1/18/2018 | Jacksonville | EK1 | 55837 |
1/18/2018 | Ocala | 30J | 55838 |
1/18/2018 | Jacksonville | EK1 | 55839 |
1/18/2018 | Jacksonville | EJ1 | 55840 |
1/18/2018 | Jacksonville | EK1 | 55841 |
1/18/2018 | Jacksonville | EJ1 | 55842 |
1/18/2018 | Jacksonville | KG1 | 55843 |
1/18/2018 | Jacksonville | KG1 | 55844 |
1/18/2018 | Jacksonville | KG1 | 55845 |
1/18/2018 | Jacksonville | AZ1 | 55846 |
1/18/2018 | Jacksonville | AZ1 | 55847 |
1/18/2018 | Jacksonville | KL1 | 55848 |
<tbody>
</tbody><colgroup><col><col><col><col></colgroup>
The formula that I'm trying to create will need to do the following:
1) Count the amount of Order IDs ONLY if the "Current Date" matches and the "Area" matches.
2) Retrieve the Five top Employee IDs (with most IDs) and place them in a Descending Order.
Under the example that I used, I know that the Order will be:
1) EK1 with 5 Order IDs
2) EJ1 with 4 Order IDs
3) KG1 with 3 Order IDs
4) AZ1 with 2 Order IDs
5) KL1 with 1 Order IDs.
I apologize if I'm seeming lazy however the worksheet I'm working with has 1,360 different Employee IDs and 34,547 different order IDs. I can't use a pivottable because I need to keep certain cells locked in my "calculation" sheet. I only need a formula that shows me the top 5 under the two conditions. Thank you in advance to anyone who reads this.