Excel date question

Im measuring monthly figures in predicted, vs actual values monthly. In my data base I have months, and years in separate columns. I need a formula to show a zero a value if its before the current month, if its after to show the value of my sumif formula.