Help with Averageifs and Or Statement

aviationgeek

New Member
Joined
Oct 20, 2015
Messages
4
Good Afternoon -

I am having a problem with averageifs and or combination. It is not working like I have expected it to, and I have not been able to find a solution to my problem on-line.

I am looking at the following table:

BankRunwayDateTaxi Time
18R10/10/20155
1910/10/20158
1910/10/20154
126L10/10/20157
1910/11/20154
2910/10/20159
226L10/11/20152

<colgroup><col span="2"><col><col><col></colgroup><tbody>
</tbody>


I want to find the average time time for a Bank Number 1, on 10/10/2015, and used either runway 9 or 8R. The issue I am having is that with the runway portion. I so far have =AVERAGEIFS(E2:E8,A2:A8,"=1",C2:C8,DATE(2015,10,10)), but I have not been able to figure out how to have both runway conditions in the formula.

Any help would be great.

Thank you
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
You need to switch to a defferent type of formula...

Control+shift+enter, not just enter:
Rich (BB code):

=AVERAGE(IF($A$2:$A$8=1,IF(ISNUMBER(MATCH($B$2:$B$8,{"8R",9},0)),
    IF($C$2:$C$8=DATE(2015,10,10),$E$2:$E$8))))
 
Upvote 0
You need to switch to a defferent type of formula...

Control+shift+enter, not just enter:
Rich (BB code):

=AVERAGE(IF($A$2:$A$8=1,IF(ISNUMBER(MATCH($B$2:$B$8,{"8R",9},0)),
    IF($C$2:$C$8=DATE(2015,10,10),$E$2:$E$8))))


I did use your code, but it is still not coming up with the correct answer. It is showing as 5.66666667. It is not counting the last Bank 1 flight. It is only averaging the first 3 flights and after it hits Runway 26L, it stops looking at the data. How can I fix this?

Thank you for your help.
 
Upvote 0
I did use your code, but it is still not coming up with the correct answer. It is showing as 5.66666667. It is not counting the last Bank 1 flight. It is only averaging the first 3 flights and after it hits Runway 26L, it stops looking at the data. How can I fix this?

Thank you for your help.

Row\Col
A​
B​
C​
D​
E​
1​
Bank Runway Date Taxi Time
2​
1 8R 10/10/2015 5
3​
1 9 10/10/2015 8
4​
1 9 10/10/2015 4
5​
1 26L 10/10/2015 7
6​
1 9 10/11/2015 4
7​
2 9 10/10/2015 9
8​
2 26L 10/11/2015 2

The conditions you mentioned:

(a) A2:A8 must equal 1;
(b) B2:B8 must match either 8R or 9;
(c) C2:C8 must equal DATE(2015,10,10).

This yields: 5.666667 as far as I can see.



<colgroup><col width="64" style="width:48pt"> <tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,585
Members
448,972
Latest member
Shantanu2024

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top