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
 
If you have gotten a #DIV/0! result probably there are extraneous characters (spaces) in A2:A7.

See if this array formula works
B10
=AVERAGE(IF(TRIM(A2:A7)=A10,IF(ISNUMBER(B2:G7),B2:G7)))
Ctrl+Shift+Enter

M.
 
Upvote 0
If you have gotten a #DIV/0! result probably there are extraneous characters (spaces) in A2:A7.

See if this array formula works
B10
=AVERAGE(IF(TRIM(A2:A7)=A10,IF(ISNUMBER(B2:G7),B2:G7)))
Ctrl+Shift+Enter

M.

Thanks Marceloooooooooo

The Trim solved it !!!!!!!!!!

Owe you a beer !
 
Upvote 0

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