bbrimberry
New Member
- Joined
- Mar 23, 2016
- Messages
- 34
Hello,
I am hopeful someone will be able to help me with the problem outlined below.
I have 2 tables. One table has sales reps and the number of hours in a week they work.
<tbody>
</tbody>
My second table has stores each rep can drive to.
<tbody>
</tbody>
I need to get excel to return the stores that are within each reps capacity of 40 hours.
I would like excel to somehow return the stores with the least number of miles.
if we used rep john as an example john has 2 hours left.
lets also assume that each store is 1 hour of work.
so i would like exel to return the 2 rows below as the answer
<tbody>
</tbody>
thanks for any help provided.
I am hopeful someone will be able to help me with the problem outlined below.
I have 2 tables. One table has sales reps and the number of hours in a week they work.
Rep | Weekly Hours | Capacity How many hours left? |
John | 38 | 2 |
Mary | 37 | 3 |
Sue | 39 | 1 |
Bob | 40 | 0 |
<tbody>
</tbody>
My second table has stores each rep can drive to.
Rep | Store Number | Miles Away |
John | 18 | 85 |
Mary | 27 | 91 |
Sue | 40 | 45 |
Bob | 34 | 31 |
John | 5 | 55 |
Mary | 2 | 55 |
Sue | 6 | 99 |
Bob | 32 | 21 |
John | 1 | 13 |
Mary | 12 | 98 |
Sue | 11 | 58 |
Bob | 45 | 99 |
John | 11 | 28 |
Mary | 1 | 90 |
Sue | 42 | 49 |
Bob | 42 | 55 |
John | 4 | 30 |
Mary | 5 | 30 |
Sue | 25 | 63 |
Bob | 15 | 99 |
John | 22 | 95 |
Mary | 47 | 76 |
Sue | 44 | 56 |
Bob | 48 | 33 |
John | 50 | 56 |
Mary | 50 | 26 |
Sue | 7 | 64 |
Bob | 23 | 100 |
John | 14 | 71 |
Mary | 38 | 32 |
Sue | 13 | 10 |
Bob | 37 | 79 |
<tbody>
</tbody>
I need to get excel to return the stores that are within each reps capacity of 40 hours.
I would like excel to somehow return the stores with the least number of miles.
if we used rep john as an example john has 2 hours left.
lets also assume that each store is 1 hour of work.
so i would like exel to return the 2 rows below as the answer
Rep | Store Number | Miles Away |
John | 1 | 13 |
John | 11 | 28 |
<tbody>
</tbody>
thanks for any help provided.