Help with IF function

New Contributor

I need help with the Owed by 11/23 column.


I'm a scout leader and we have a spreadsheet to track popcorn sales, dues owed, etc. Scouts are requested to sell a certain amount of popcorn to cover their dues and we prorate their dues according to what they've earned in sales. We have some families who choose to forgo sales and just write a check. For those that owe money, we ask that a combination of sales or payments totaling $125 be made by November 23rd. The balance will be paid NLT February. Some dues were less than 125 based on financial needs, etc. 


I'm struggling making the Owed by 11/23 column display the amount due. My current formula gives me an incorrect amount if they have a zero in the Money Owed column and have dues less than $125. The table below has two examples of my problem. The first row received a full scholarship yet it shows him owing 125. The seventh row's dues were only 125.25 yet it shows $2.75 being owed. All other rows are calculating correctly. Basically, I need to show that if the Money Owed column is zero then the Owed by column should reflect zero.


Here is my current formula:

=IF('Popcorn Sales 2021'!$AF2<125,125-'Popcorn Sales 2021'!$AF2,0)


DuesMoney RaisedMoney OwedOwed by 11/23


Thank you so much for your help and assistance!



3 Replies
You could add on another IF to check if Money Owed = 0 and return 0, something like:
=IF('Popcorn Sales 2021'!$AG2=0,0,IF('Popcorn Sales 2021'!$AF2<125,125-'Popcorn Sales 2021'!$AF2,0))
Thank you! That helped with all the lines except for this one:
76.00 72.00 4.00 53.00
It should show $4 in the column with the 53. Any thoughts? I can manually correct this (and a couple others) but curious what the correct fix would be?
best response confirmed by davebussiere (New Contributor)


Would this work? If dues are less than 125, it uses the difference of that number instead of 125. The Max just makes it so if they owe a negative amount it rounds up to 0.