IF formula based on specific values in a range

Mushroomman

New Member
Joined
Mar 8, 2014
Messages
14
Hi,

I'm trying to average values based on 2 fields. The 1st is straight forward (by date). The second one isn't as straight forward.

I need to average column C if column A contains houses numbers 31,36,37,41,46,48 and the date is 01-06-16.

So the average of the example below is 9 (houses 31 & 37 are on 01-06-16).

I've used averageifs formula and used the IF with AND before, but only when numbers are in order (between 1 & 10), not when I need to search specific numbers.

Thanks,
Paul

House NumberDateYield
3101-06-1610
3602-06-169
3701-06-168
103-06-169
501-06-1610

<tbody>
</tbody>
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Control+shift+enter, not just enter:

=AVERAGE(IF($B$2:$B$6="01-06-16"+0,IF(ISNUMBER(MATCH($A$2:$A$6,{31,36,37,41,46,48},0)),$C$2:$C$6)))
 
Upvote 0

Forum statistics

Threads
1,215,284
Messages
6,124,064
Members
449,139
Latest member
sramesh1024

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