In column "A", I have entry dates. In column "C", I have the names of wholesalers. Column "E" has the formula for what I am trying to achieve which is below.
=IFERROR(VLOOKUP(C2,Quota!B:O,LEFT(TEXT(A2,"m")+1),0)/(COUNTIF(C:C,C2)),0)
What this formula is doing is looking up the name of the wholesaler in a separate table and then pulling the corresponding quota number based on what month is in column "A". It then proceeds to divide that calculation by the amount of times each wholesaler name shows up in the sheet. This formula works perfectly, except for one detail: I need the counts in the second half of the formula to reset once a new month changes. Right now, what the formula is doing is if the wholesaler has entries in January and February, then January's quota number(the formula above) is going to divide by the amount of time the wholesaler shows up in January and February, rather than having the count reset each month like I want it to, I hope this makes sense. Any help or direction is GREATLY appreciated!
Bookmarks