AverageIfS Function

CleverUserName

New Member
Joined
Nov 25, 2018
Messages
11
I am having trouble with this AverageIfS function. It seems to only calculate the average of the "A" criteria and is not including "UC" & "US" criteria. The result in this case I receive is 76 and it should be 62.6. Thank you for your help.

FORMULA:
{=AVERAGEIFS('GSMLS Data'!B:B,'GSMLS Data'!G:G,{"A","UC","US"},'GSMLS Data'!D:D,">="&N15,'GSMLS Data'!D:D,"<="&O15)}

In the formula N15 represents a value of: 500000 and O15 represents a value of: 600000

Spreadsheet: GSMLS Data
Column B Column C Column D Column E Column F Column G
DAYSONMARKETEXPIREDATELISTPRICEORIGLISTPRICESPRICESTATUS
13200:00.0529000549000A
7600:00.0559900595000A
2000:00.0579900579900A
700:00.0519000519000UC
7800:00.0599000657000UC


<tbody>
</tbody>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
This should work entered CTRL-SHIFT-ENTER:

=AVERAGE(IF('GSMLS Data'!D2:D100>=N15,IF('GSMLS Data'!D2:D100<=O15,IF((('GSMLS Data'!G2:G100="A")+('GSMLS Data'!G2:G100="UC")+('GSMLS Data'!G2:G100="US"))>0,'GSMLS Data'!B2:B100))))
 
Last edited:
Upvote 0
Or possibly:

=SUM(SUMIFS('GSMLS Data'!B:B,'GSMLS Data'!D:D,">="&N15,'GSMLS Data'!D:D,"<="&O15,'GSMLS Data'!G:G,{"A","UC","US"}))/SUM(COUNTIFS('GSMLS Data'!D:D,">="&N15,'GSMLS Data'!D:D,"<="&O15,'GSMLS Data'!G:G,{"A","UC","US"}))
 
Upvote 0
Try:

=SUMPRODUCT(('GSMLS Data'!D2:D6000>=N15)*('GSMLS Data'!D2:D6000<=O15)*(('GSMLS Data'!G2:G6000="A")+('GSMLS Data'!G2:G6000="UC")+('GSMLS Data'!G2:G6000="US"))*('GSMLS Data'!B2:B6000))/COUNT('GSMLS Data'!B2:B6000)
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,668
Members
449,463
Latest member
Jojomen56

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