Hi, I wonder whether someone may be able to help me please.
For several days I've been attempting to put together a script which in simple terms finds the 'Highest and Second' highest activity and associated FTE for a given sub group.
To be more specific:
- On the "Slide 1" sheet look at the values in column J starting at row 7 until blank;
- For each value, then search the "All Monthly Direct Activities" sheet in column C for the same value, excluding the 'Subtotal' rows;
- Where a match is found, compare all the values in column E for that sub group;
- And Find the highest and second highest figure;
- Once these are found copy this figure and associated value in column B and paste onto the "slide 1" sheet.
I must admit, I've failed quite miserable, and I just wonder whether someone may be able to look at this please and offer some guidance on how I may go about achieving this.
I appreciate that my description may not be the most straight forward, so I have attached a sample workbook.
This work book shows the 'Source' data on the "All Monthly Direct Activities" sheet and the 'Destination', "Slide 1" sheet. The cells in orange are the expected outcome from the 'Source' sheet.
Many thanks and kind regards
Bookmarks