I'm building a report and I want to allow the user to select the quarter and year from combo boxes. The selected values should then be used in my SUMPRODUCT calculations to filter the data/calculations based on date ranges.
For example:
User Selects '1st Quarter' and '2005' from the two combo boxes.
Based on this selection, I need to include only rows of data where my 'date' column is between 1/1/05 and 3/31/05.
Is there a clean way to do this so that I don't have SUMPRODUCT formulas for both that start and end date, i.e. SUMPRODUCT((StartDate>="01/01/05")*(EndDate<"04/01/05")*(Sales))
My formulas are getting really hard to read, and I know that what I'm doing is better suited for VB or Access, but I don't know how enough about either to accomplish the task.
If I can get the add-in installed on this computer I'll go ahead and post the sheet I'm working on. In the meantime, if anyone has any suggestions it would be greatly appreciated.
Thanks,
Mike
For example:
User Selects '1st Quarter' and '2005' from the two combo boxes.
Based on this selection, I need to include only rows of data where my 'date' column is between 1/1/05 and 3/31/05.
Is there a clean way to do this so that I don't have SUMPRODUCT formulas for both that start and end date, i.e. SUMPRODUCT((StartDate>="01/01/05")*(EndDate<"04/01/05")*(Sales))
My formulas are getting really hard to read, and I know that what I'm doing is better suited for VB or Access, but I don't know how enough about either to accomplish the task.
If I can get the add-in installed on this computer I'll go ahead and post the sheet I'm working on. In the meantime, if anyone has any suggestions it would be greatly appreciated.
Thanks,
Mike