Aveageif containing blank value => return #VALUE!

garga

New Member
Joined
Jun 9, 2016
Messages
9
Hi guys,

After spending couple of hours trying to find a solution to my problem, I ask for the first time to professionals :)

My data

Team 9/05/2016 9/05/2016 10/05/2016 13/05/2016 14/05/2016 16/05/2016
Ben
Ben 3.00
Ben 1.12
Ben 1.08
Michel 1.08
Ben 0.49

My formula : =AVERAGEIFS(B2:G7,A2:A7,"Ben")

I presume it is linked to the fact I have empty cells but I can't fix it and it's driving me crazy !!

Please help !

Thanks and respect in advance to my hero !
Cyrille
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Thanks for your answer Brian,

Nevertheless, even if I changed it by =AVERAGEIFS(A2:G7,A2:G7,"Ben") I get a #DIV/0!

What shall I do then ?

Thanks in advance
Cyrille
 
Upvote 0
What are you trying to average, or what criteria must be met before averaging?

If A2:G7 is your header row, there is nothing to average.

If A2:A10 contains Ben and B2:B10 values, AVERAGEIF would be sufficient

=AVERAGEIF($A$2:$A$10,"BEN",$B$2:$B$10)

=

I want just an average when the Name "Ben" is met. The problem is that I have empty cells in my range, therefore it doesn't work !

Any thoughts ?

Thanks in advance mate
 
Upvote 0
I want just an average when the Name "Ben" is met. The problem is that I have empty cells in my range, therefore it doesn't work !

Any thoughts ?

Thanks in advance mate

Why doesn't it work?

Average disregards empty cells in the range.

What have you tried?
 
Upvote 0
Maybe this...


A
B
C
D
E
F
G
1
Team​
09/05/2016​
09/05/2016​
10/05/2016​
13/05/2016​
14/05/2016​
16/05/2016​
2
Ben​
3
Ben​
3,00​
4
Ben​
1,12​
5
Ben​
1,08​
6
Michel​
1,08​
7
Ben​
0,49​
8
9
Criteria​
Result​
10
Ben​
1,4225​

<tbody>
</tbody>


put the criteria in A10

Array formula in B10
=AVERAGE(IF(A2:A7=A10,IF(ISNUMBER(B2:G7),B2:G7)))

confirmed with Ctrl+Shift+Enter, not just Enter

Hope this helps

M.
 
Last edited:
Upvote 0
I have tried everything... !!

Here are my data:
Team 9/05/2016 9/05/2016 10/05/2016 13/05/2016 14/05/2016 16/05/2016
Ben
Ben 3
Ben 1.12
Ben 1.08
Michel 1.08
Ben 0.49

Try to make it work, personally I don't understand what is wrong.. what will you do ?

Thanks again !
 
Upvote 0
If all the values are in the same day, 09/05/2016 for example, the AVERAGEIF formula suggested in post #4 should work.
Otherwise you should use an array formula as i suggested in post #7.

Please clarify if all the values are in the same day (column) or not.

M.
 
Last edited:
Upvote 0
Hi Marcelo,

I have tried your way and I get #DIV/0!....

I confirm the value are not the same date.. ! sometimes it will be filled, sometimes not !
 
Upvote 0
It worked perfectly for me. Have you confirmed the formula with Ctrl+Shift+Enter?

If you are not familiar with array formulas, take a look at
Array Formulas

M.
 
Upvote 0

Forum statistics

Threads
1,216,269
Messages
6,129,813
Members
449,538
Latest member
cookie2956

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