+ Reply to Thread
Results 1 to 2 of 2

Macro or Not? Recalculating Individual Values

  1. #1
    Registered User
    Join Date
    07-15-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    77

    Macro or Not? Recalculating Individual Values

    Hi All

    I currently use ROUND to split a store target between my sales team based on the number of hours they work through the month.

    In G35 is the store target and the individual targets are calculated & displayed in G5:G32. The formula in these cells is:

    Please Login or Register  to view this content.
    The problem at the moment is that the individual targets do not always equal the value of G35.

    What i would like is that if the sum of G5:G32 exceeds G35 then the extra sales are taken off the correct individual(s) i.e. the person with the least hours worked would lose a sale off their target then the next lowest etc. It needs to stop when G35 = The Sum of G5:G32.

    If the sum of G5:G32 is lower than G35 then the opposite of the above needs to happen, i.e. highest hours gains a targeted sale and next highest gains until again G35 matches sum of G5:G32.

    I have ranked the hours worked on 'rotas' tab in column BK cells 4 to 31 (28 sales advisors max in total) if that helps?

    1) Should i use ranking or just the total hours worked to calculate how to make relevant adjustments?
    2) Should i use a formula or macro to make this happen?

    Thanks in advance
    Mark

    Sample.xlsm
    Last edited by markrennolds; 11-24-2009 at 02:46 PM.

  2. #2
    Registered User
    Join Date
    07-15-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Macro or Not? Recalculating Individual Values

    Hi All

    I have been thinking about the question I posted and think it definately needs to be a macro as an IF formula would not be able to look at the rankings correctly to decide who to take the extra sales off until totals balanced.

    Can anyone help with the macro which needs to look at G35 on sales tracker then the sum of G5:G32 to see if they equal each other. If not then as per original post, using the ranking on 'Rotas' tab then targets need to be adjusted. I have changed the ranking to different cells (C42:AD42) so they fall under the names in cells C3:AD3. I think this will help when trying to build macro?

    Attached
    Thanks
    Mark

    Sample.xlsm

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1