Help Calculating averages based on options selected in user form
I have a spreadsheet with columns size,date, number, and amount.
I've created a userform with two sets of option buttons, one which has small medium and large, and the other has the variable to analyze, or number or amount. There is also a list box with the 12 months of the year.
How do I calculate, for example, the average amount (in $) for the small shirts sold in january, given that those are the options selected in my user form?