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!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
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?
 
Upvote 0
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?
 
Upvote 0
If you use IE, just put borders around your data in Excel and copy/paste it into the forum.
 
Upvote 0

Forum statistics

Threads
1,213,567
Messages
6,114,344
Members
448,570
Latest member
rik81h

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