简体   繁体   中英

How to Create Formula with Excel Averageifs Using 2 criteria, including a range

I'm having a hard time getting this excel averageif formula to work.

I'm trying to combine 2 criteria using an external reference.

The first criteria is that the a range in an external worksheet matches a line in the current worksheet (ie that's the external reference)

If there is a match, the averageif calculates only if the figure from the range is less than 300.

I have this so far (that's not working):

=AVERAGEIFS(Mission!$A$1:$A$122,"="&C4,Mission!$C$1:$C$122,"<300")

I also tried: =AVERAGE(IF((Mission!$A$1:$A$122,"="&C4)+(Mission!$C$1:$C$122"<300"),Mission!$C$1:$C$122))

Try the following:

=AVERAGEIFS(Mission!$C$1:$C$122,Mission!$A$1:$A$122,C4,Mission!$C$1:$C$122,"<"&300)

Screenshots of my data:

工作表1

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM