Ignoring blank cells from and average and blank cell when #DIV/0

Farruko

New Member
Joined
Nov 28, 2019
Messages
2
Office Version
  1. 2019
Platform
  1. MacOS
Hi guys, I need help finding the best way to do this.
On column Weight (Kg) I add the number, on column weigh in (Pounds) I'v added in every cell: =F27*2.2 to get the number in pounds.
On average (lbs) I'm using the formula =AVERAGEIF(H27:H33,"<>0") to get the average and ignore the blank cells or zeros but I'm getting #DIV/0
To get rid of the #DIV/0 I've used before =IFERROR(AVERAGE(H27:H33),0)
How can I do both things, get the average ignoring blank cells and if #DIV/0 get a blank cell? to do that in the same cell is it possible?
Screen Shot 2019-11-28 at 11.49.05.png


Many thanks in advance, hope is not too confusing.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Welcome to the forum.

Just wrap the AVERAGEIF in the IFERROR:

=IFERROR(AVERAGEIF(H27:H33,"<>0") ,0)
 
Upvote 0

Forum statistics

Threads
1,215,216
Messages
6,123,669
Members
449,114
Latest member
aides

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