I am trying to figure out a way to automatically total amounts for every Quarter so I need to figure out a cell formula that only make a sum of cells between certain days.
I don’t know all the operators, and script or programming options but here’s some pseudo code for kinda what I’m trying to do.
PSEUDO CELL FORMULA (A column is Dates, D Column is Currency Values)
SUMIFS(D4:D37,A4:A37,<=Date(01/01),>=Date(03/31))
PSEUDO SCRIPT
**TOTAL**=0
For Each { **CELL** in **CELL_RANGE**
if (**CELL** date is >= *Quarter Start date* & **CELL** date is <= *Quarter End Date*) then
// Date is in the Quarter
// E.G. get the deposit from that day
**ADD_VALUE**=Get a different column value from the same row
//Add the deposit to the total
**TOTAL**=**TOTAL+ADD_VALUE**
)else(
// Date is NOT in the Quarter Do Nothing
)
Return **TOTAL**