I want to sum values in a column according to results of calculation.
For example, dates are placed in column A. First, I want to subtract values in the column A from a static date. Then, according to results (like less than 31, between 31 and 91, greater than 91), I want to sum up values in another column.
Since you used
SUMIFSin your question tags I assume that you talk about Excel. This is a screenshot of my dummy data and results:You see dates in the column
A, values to sum up in the columnB. The static date is inB1.Formula in
C4(you should copy it downwards):Formula in
E2:Formula in
F2:Formula in
G2: