hellotown2345_
New Member
- Joined
- Aug 28, 2019
- Messages
- 1
Hi,
I am trying to create averages with three criteria. See example below. I tried to create using the AverageIf function however when I added three criteria it wouldn't work. Please Note the formula did work with three criteria. I was told I need to use macros to make it work. Please respond with example if possible. Thanks
I need the average for example of days for Portland, San diego and Austin. I cannot do AverageIfs with all three of those critera
A B
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>[TABLE="width: 0"]
<colgroup><col style="width: 100px"><col width="100"></colgroup><tbody>[TR]
[TD]Days[/TD]
[TD]City[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]San Diego[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]San Diego[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[TD]Boston[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Austin[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]Austin[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Miami[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD]Austin[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD]Austin[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I am trying to create averages with three criteria. See example below. I tried to create using the AverageIf function however when I added three criteria it wouldn't work. Please Note the formula did work with three criteria. I was told I need to use macros to make it work. Please respond with example if possible. Thanks
I need the average for example of days for Portland, San diego and Austin. I cannot do AverageIfs with all three of those critera
A B
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>[TABLE="width: 0"]
<colgroup><col style="width: 100px"><col width="100"></colgroup><tbody>[TR]
[TD]Days[/TD]
[TD]City[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]San Diego[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]San Diego[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[TD]Boston[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Austin[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]Austin[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Miami[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD]Austin[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD]Austin[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD]Portland[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]