Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Geno
 
Posts: n/a
Default Clear Cell If Function = 0

Hello,

I have a spreadsheet that contains averages and sums of columns, tracking
mileage and fuel costs by the month for 12 months. The first 3 months (12
separate Sheets) obviously have data in them: Jan ~ March, but the rest of
the sheets display [#DIV/0!] where data has yet to be entered.
I know it is something simple but I just cant remember how to return
nothing in the cells where data isnt present.

YTD sheet #13, cell I57 = Apr-06 I70 which contains this function [=AVERAGE
(I61:I69)]

I am thinking it is something like this but havent gotten it right so far:

[ =AVERAGE (I61:I69) IF<0=0 ]

I want the cells to display 0 or nothing if data has not yet been entered.

Thanks so much for your help!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Richard Buttrey
 
Posts: n/a
Default Clear Cell If Function = 0

On Sun, 12 Mar 2006 15:26:27 -0800, Geno
wrote:

Hello,

I have a spreadsheet that contains averages and sums of columns, tracking
mileage and fuel costs by the month for 12 months. The first 3 months (12
separate Sheets) obviously have data in them: Jan ~ March, but the rest of
the sheets display [#DIV/0!] where data has yet to be entered.
I know it is something simple but I just can’t remember how to return
nothing in the cells where data isn’t present.

YTD sheet #13, cell I57 = Apr-06 I70 which contains this function [=AVERAGE
(I61:I69)]

I am thinking it is something like this but haven’t gotten it right so far:

[ =AVERAGE (I61:I69) IF<0=0 ]

I want the cells to display 0 or nothing if data has not yet been entered.

Thanks so much for your help!


Just wrap the whole thing in an IF(ISERROR()) function. i.e.

IF(ISERROR(=AVERAGE (I61:I69)),0, AVERAGE (I61:I69))

Replace the 0 with "" if you wish to show Null or nothing.

HTH

__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Clear Cell If Function = 0

=IF(COUNT(I61:I69)=0,0,your_average_formula)

--

Regards,

Peo Sjoblom

Northwest Excel Solutions

www.nwexcelsolutions.com

(remove ^^ from email address)

Portland, Oregon




"Geno" wrote in message
...
Hello,

I have a spreadsheet that contains averages and sums of columns, tracking
mileage and fuel costs by the month for 12 months. The first 3 months (12
separate Sheets) obviously have data in them: Jan ~ March, but the rest of
the sheets display [#DIV/0!] where data has yet to be entered.
I know it is something simple but I just cant remember how to return
nothing in the cells where data isnt present.

YTD sheet #13, cell I57 = Apr-06 I70 which contains this function
[=AVERAGE
(I61:I69)]

I am thinking it is something like this but havent gotten it right so
far:

[ =AVERAGE (I61:I69) IF<0=0 ]

I want the cells to display 0 or nothing if data has not yet been entered.

Thanks so much for your help!


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default Clear Cell If Function = 0


I'd suggest either

=IF(COUNT(I61:I69),AVERAGE(I61:I69),"")

or

=SUM(I61:I69)/MAX(1,COUNT(I61:I69))


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=521572

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Geno
 
Posts: n/a
Default Clear Cell If Function = 0


The formula from daddylonglegs worked perfectly, Thank You!
The formula from Peo Sjoblom flashed my memory on how to correct the other
cell problems I was having.
My mileage for 2006 is ready to Rock n Roll, thank you so much for your
assistance! Sopranos are starting soon, its nice to be done!


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
Excel 2000: sum function automated? [email protected] Excel Discussion (Misc queries) 2 February 3rd 06 11:30 AM
Change Cell properties by Function Gilles P (FR) Excel Worksheet Functions 2 January 31st 06 12:26 PM
Reading Cell Function??? roy.okinawa Excel Worksheet Functions 2 December 1st 05 11:29 PM
IF Function to test formula in a cell Fred Holmes Excel Worksheet Functions 5 November 18th 05 12:04 AM
How do I find the contents of a cell using the "ADDRESS" function. sweeney Excel Worksheet Functions 2 April 5th 05 03:23 AM


All times are GMT +1. The time now is 09:38 PM.

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

About Us

"It's about Microsoft Excel"