Averageifs named ranges

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.
You haven't told us what's in those named ranges, but from the names I'm guessing you are not using the correct arguments for AVERAGEIFS in your formula.

From Excel Help on AVERAGEIFS:
AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
The AVERAGEIFS function syntax has the following arguments:

  • Average_range Required. One or more cells to average, including numbers or names, arrays, or references that contain numbers.
  • Criteria_range1, criteria_range2, … Criteria_range1 is required, subsequent criteria_ranges are optional. 1 to 127 ranges in which to evaluate the associated criteria.
  • Criteria1, criteria2, ... Criteria1 is required, subsequent criteria are optional. 1 to 127 criteria in the form of a number, expression, cell reference, or text that define which cells will be averaged. For example, criteria can be expressed as 32, "32", ">32", "apples", or B4.
 
Upvote 0
I am averaging blood glucose reading for April, May, and June. June is not complete so thats why the "<>0" is in the formula. It works with Averageif for individual months, but doesn't for all three.
 
Upvote 0
Tesnobay,

Easiest to select the whole data set and use AVERAGEIF()
 
Last edited:
Upvote 0
Tesnobay,

Yeah sorry was doing from memory and when I went to check it was wrong, serves me right I guess.
Is it possible to just select all the data and use an AVERAGEIF?
 
Upvote 0
The data for each month is not contiguous:
Apr = C4:AE6
May = C30:AG32
June = C56:AF58

Cells in June from 6/12- 6/30 currently show 0 until that days data is entered. that is why "<>0" is part of the formula.
Averageif works for an individual month, but when I put in all 3 ranges I get the too many arguments error message.
 
Upvote 0
You could always just use:
=SUM(aprildata,maydata,junedata)/SUM(COUNT(aprildata),COUNT(maydata),COUNTIF(junedata,"<>0"))
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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