Not

tlindeman

Active Member
Joined
Jun 29, 2005
Messages
313
I know not is the wrong function for this but I need something where I averageif where it does not equal 6.1 or 5.2, so this is my "fake" formula

=averageif($D3:$D$501, not(5.2,6.1),$I$3:$I$501)

Thank You
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I know not is the wrong function for this but I need something where I averageif where it does not equal 6.1 or 5.2, so this is my "fake" formula

=averageif($D3:$D$501, not(5.2,6.1),$I$3:$I$501)

Thank You

For which range 5.2 and 6.1 must not hold - D-range or I-range?
 
Upvote 0
I know not is the wrong function for this but I need something where I averageif where it does not equal 6.1 or 5.2, so this is my "fake" formula

=averageif($D3:$D$501, not(5.2,6.1),$I$3:$I$501)

Thank You
Try this array formula**:

Use cells to hold the criteria:
  • A3 = 5.2
  • A4 = 6.1
Array entered**:

=AVERAGE(IF(ISNA(MATCH(D3:D501,A3:A4,0)),I3:I501))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
D range,
Thank You

Control+shift+enter, not just enter:

=AVERAGE(IF(1-ISNUMBER(MATCH($D3:$D$501,{5.2,6.1},0)),$I$3:$I$501))

This formula hard-codes the criteria to exclude.

However, you can also have a range housing the critera to exclude and name this range ExcludeList. This set up allows you to invoke...

=AVERAGE(IF(1-ISNUMBER(MATCH($D3:$D$501,ExcludeList,0)),$I$3:$I$501))

Note. If D-range house formulas, you might need to invoke something like...

=AVERAGE(IF(1-ISNUMBER(MATCH(ROUND($D3:$D$501,1),ExcludeList,0)),$I$3:$I$501))

The latter two formulas also require control+shift+enter.
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,879
Members
452,948
Latest member
Dupuhini

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