hello
im having some difficulty placing some logic into a formula i have....the formula i have works exactly how i want to, but i cant seem add a futher logic to it
-basically, im calculating target quota for sales people based on their "hire date" in retrospect to the "currently month...year-to-date" the company is in...
formula: - for the purpose below (the report is for month of 31-may-2010
person below was hired: 10-may-2010; thus he's worked a total of 2.84 weeks by the of end 31-may-2010....
=if($C$7<AS$7,"",IF(S14>=0,(AS$9*AS$10),""))
C7 = current month end date (i.e. could be dec 31, 2010)
AS7 = particular month end date (i.e. if we are in may, then may 31, 2010)
S14 = # of weeks person with company in weeks (i.e. 2.84 weeks @ end of may 31)
AS 9 = quota for month $100
AS10 = # of weeks in month 4
based on this, the end result should give me (2.84 weeks)*($100) = $284 month quota
BUT my formula is giving me $400 bc i cant add logic for it to use 2.84 weeks instead of full 4 weeks (this particular person joined company in the middle of the month, so he has worked 2.84 weeks instead of a full month at 4 weeks)
....a person can start at any time frame in a month, near the beginning, middle of end, so i need it to check to see if he's worked less than the 4 or 5 weeks at the end of each month, use the # of weeks they have worked * $100
i hope its some what clear what im asking for, or looking to go with this....help is greatly appreciated guys, thxs
Bookmarks