I have been tasked with providing a 'flexible' spreadsheet for analysing sales figures. Resolving by product, sales margins, etc has not proced a problem. However, the data set covers several years. What I have been trying to generate a conditional sum based on two dates entered by the user. As there are multiple columns for the various products, I am looking for a generic solution based on cells in the sheet rather than hard code the column. My currnet attempt is:
The variables (as a ref to a cell) include:
- S_Date is a variable date range (Sales Date) to allow for addition of later data;
- Start & End dates and the relevant rows as above to be summed (solved);
- Column to Sum. ??? Have tried COLUMN(), Column No in SUMIFS() plus other ideas.
I am sure that there is a solution, but cannot locate it.
=SUMIFS(column(), S_Date," >="&$AG$3, S_Date,"<="&$AG&4)
The variables (as a ref to a cell) include:
- S_Date is a variable date range (Sales Date) to allow for addition of later data;
- Start & End dates and the relevant rows as above to be summed (solved);
- Column to Sum. ??? Have tried COLUMN(), Column No in SUMIFS() plus other ideas.
I am sure that there is a solution, but cannot locate it.