Mr2017

Well-known Member
Joined
Nov 28, 2016
Messages
644
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

I need to use an averageifs formula to get the average UNIT price of Item SKUs greater than 30000 in the data below and ensure that Quantities of 0 are excluded.

I've tried to use the following formula

=AVERAGEIFS($B$5:$D$24,$B$5:$B$24,">30000",$C$5:$C$24,"<>0")

but get a value error. Can anyone please point out where I've gone wrong?

The data starts in cell A4 ie the CustomerID text in cell A4 and the UnitPrice text is in cell D4.

Thanks in advance.

CustomerIDItemSKUQuantityUnitPrice
87258011234510010.5
882526823456222.5
8048929589109317.5
8032245111212122.5
8147770314151217.5
8836323161711620
828639981920408.75
8243640212222121.89
82008813242512.0
815812226272689.0
811536382930450.0
8072604313233338.3
802984533435050.8
7987086363731054.7
794432783940058.7
7901567414242162.7
7858808344452666.6
781604946474070.6
7773290849503774.5
773053151525078.5

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

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hi,

If you're trying to Average "UnitPrice", you have a typo/mistake in your formula for "Average Range".

Should be:

=AVERAGEIFS($D$5:$D$24,$B$5:$B$24,">30000",$C$5:$C$24,"<>0")
 
Upvote 0
You're welcome, glad to help.
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,660
Members
449,462
Latest member
Chislobog

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