#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Several Formulas

I want to add up a row and average that row but some cells will not have data
and I want a true average. And if this is a continue spreadsheet I only want
to look back 7 days.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Several Formulas

Average ignores empty cells, so you can just use that.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"LostNFound" wrote in message
...
I want to add up a row and average that row but some cells will not have
data
and I want a true average. And if this is a continue spreadsheet I only
want
to look back 7 days.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 213
Default Several Formulas

I want to add up a row and average that row but some cells will not
have data and I want a true average.


If it’s row 1, maybe this’ll help:
=SUM(1:1)
=AVERAGE(1:1)
The AVERAGE function ignores cells that are empty or have text in them.


And if this is a continue
spreadsheet I only want to look back 7 days.


Assuming each cell is for one day, put this in G2 and extend it to the
right:
=SUM(A1:G1)
Then put this in G3 and extend it to the right:
=IF(COUNT(A1:G1)=0,"",AVERAGE(A1:G1))

(The "COUNT" test helps if all seven look-back days have no data.)
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
lookup formulas dependent upon lookup formulas Skibee Excel Worksheet Functions 1 July 20th 07 01:06 PM
automatically copy formulas down columns or copy formulas all the HowlingBlue Excel Worksheet Functions 1 March 16th 07 11:11 PM
Formulas not evaluated, Formulas treated as strings Bob Sullentrup Excel Discussion (Misc queries) 0 November 27th 06 08:01 PM
formulas for changing formulas? creativeops Excel Discussion (Misc queries) 4 January 26th 06 03:07 AM


All times are GMT +1. The time now is 02:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"