I'm developing a spreadsheet for work, and I need to simplify the following formula:
=IF(AND(B4>0,B4<8),1*A4,0)+IF(AND(B5>0,B5<8),1*A5,0)
I need it to calculate from B4:B30 and A4:A30, and repeating the formula 27 times just doesn't seem all that efficient. (I currently have it calculated this way, and it does work, but needless to say it's extremely long.)
To further explain,here is what I'm trying to accomplish:
Column A equals the unit, which will either be 1 or .5 if it's a split sale. Column B equals the date on which the unit was sold. If the unit is sold within a specified date range (in this instance, the 1st through the 8th), it needs to be added to this cell.
Bookmarks