Averaging "N/A" (Not Available) Hourly Data Points

Malapanis

New Member
Joined
Jul 17, 2012
Messages
3
I'll begin by apologizing in case this topic has been covered earlier. I did quickly look through past topics, but I didn't find anything that was similar to my situation.

I'm using Excel 2007 professional and my knowledge is strictly limited to formulas ( I haven't done anything with macros as of yet, although I'm very interested in learning ). My task is to generate average hourly values for consecutive data points in a column. Sometimes more than one data point has been recorded by the dataloggers and the number of data points is never consistent but is usually between 1 and 7. A "#DIV0!" error returns when all values for a particular hour are "N/A". The formula I was using is:

=IF(HOUR('Unit Conversion'!$C25107)=HOUR('Unit Conversion'!$C25106),"",IF(HOUR('Unit Conversion'!$C25107)=HOUR('Unit Conversion'!$C25113),AVERAGE('Unit Conversion'!D25107:D25113),IF(HOUR('Unit Conversion'!$C25107)=HOUR('Unit Conversion'!$C25112),AVERAGE('Unit Conversion'!D25107:D25112),IF(HOUR('Unit Conversion'!$C25107)=HOUR('Unit Conversion'!$C25111),AVERAGE('Unit Conversion'!D25107:D25111),IF(HOUR('Unit Conversion'!$C25107)=HOUR('Unit Conversion'!$C25110),AVERAGE('Unit Conversion'!D25107:D25110),IF(HOUR('Unit Conversion'!$C25107)=HOUR('Unit Conversion'!$C25109),AVERAGE('Unit Conversion'!D25107:D25109),IF(HOUR('Unit Conversion'!$C25107)=HOUR('Unit Conversion'!$C25108),AVERAGE('Unit Conversion'!D25107:D25108),'Unit Conversion'!D25107)))))))


I appreciate the input!
 

Some videos you may like

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Malapanis

New Member
Joined
Jul 17, 2012
Messages
3
Hi BenMiller,

I apologize, but being I'm brand new to the forum and can't seem to figure out how to do that... Any suggestions?
 

Malapanis

New Member
Joined
Jul 17, 2012
Messages
3
I'm sorry but I'm still having trouble attaching a sample of my spreadsheet. I looked at several threads pertaining to this topic, and downloaded Excel Jeanie, but I still can't figure out how to do this. Those who discuss this in the thread that you suggested are confused as well. Any tips?
 

BenMiller

Well-known Member
Joined
Nov 17, 2011
Messages
1,961
Office Version
  1. 365
Platform
  1. Windows
If you use IE, just put borders around your data in Excel and copy/paste it into the forum.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,107
Messages
5,622,782
Members
415,927
Latest member
vedasinternational

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
Top