I have a column of dates in a worksheet and need to get the most frequently occurring month returned as a number (April would be 4) in a variable. I found the following piece of code but it returns the most frequently occurring date. I've tried a couple of iterations but I'm not having any luck. Any suggestions?
MostMonth = Application.Evaluate("INDEX(B1:B" & LastRow & ",MODE(IF(B1:B" & LastRow & "<>"""",MATCH(B1:B" & LastRow & ",B1:B" & LastRow & ",0))))")
Thanks,
renigar