# Average Question, based on 2 to 3 sets of criteria.

#### ExcelDude

##### New Member
OK, I have a promotion begin date, and a promotion end date in 2 columns. I also have, say 50 columns with weekly sales data and a date heading. What I need to do is to average this data in 3 different areas. Avg before promo, during promo, and after promo. I also need it to average data that does not have a zero, which I believe I know how to do(=AVERAGE(IF(A2:A7<>0, A2:A7,""). Right now I'm manually averaging this data based on the different beg. and end dates, but it's a very manual process as the beg. and end dates very from title to title. Any ideas?

### Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Can't you use a similar Average(if formula and make the criteria <= cell with reference begin date, etc..?

Replies
5
Views
267
Replies
0
Views
419
Replies
0
Views
421
Replies
9
Views
890
Replies
1
Views
423

### Forum statistics

1,221,052
Messages
6,157,632
Members
451,426
Latest member
VinnyDoesntKnowExcelCode

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back