Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 9
Default averageif function

Hello, Im trying to have information from C2:C3 averaged unless C2 is blank or 0. If it is 0 or blank I want B3 to be blank. I am trying to add this formula into B3. Ive tried a lot of different formulas and nothing is working. Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default averageif function

Try this:

=IF(OR(C2={0,""}),"",AVERAGE(C2:C3))

HTH,
Elkar

"curtll" wrote:


Hello, Im trying to have information from C2:C3 averaged unless C2 is
blank or 0. If it is 0 or blank I want B3 to be blank. I am trying to
add this formula into B3. Ive tried a lot of different formulas and
nothing is working. Can anyone help?


--
curtll

  #4   Report Post  
Junior Member
 
Posts: 9
Default

Ive tried {=AVERAGE(IF(C2=0,0,C2:C3))} and several different variations of it.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default averageif function

=IF(C2=0,"",AVERAGE(C2:C30))

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"curtll" wrote in message
...

Ive tried {=AVERAGE(IF(C2=0,0,C2:C3))} and several different variations
of it.

Don Guillett Wrote:
Post what you have tried

--
Don Guillett
SalesAid Software

"curtll"
wrote in message
...

Hello, Im trying to have information from C2:C3 averaged unless C2 is
blank or 0. If it is 0 or blank I want B3 to be blank. I am trying
to
add this formula into B3. Ive tried a lot of different formulas and
nothing is working. Can anyone help?


--
curtll



--
curtll





  #6   Report Post  
Junior Member
 
Posts: 9
Default

Yea neither of those are working. There is one more thing I want to add. When we come to the next day(b4) even if there is a blank on the previous day I need it to keep the figure from the previous average. Basically I need to have the cells below the current and future days kept blank until the daily average is inputed in column c. I know i shouldve said this from the beginning but didnt realize it.


  #7   Report Post  
Junior Member
 
Posts: 9
Default

Nevermind I figured it out. Now how do I take an average from 1 cell on several sheets, w/o including 0's or blank cells and get it to average correctly?

Quote:
Originally Posted by curtll
Yea neither of those are working. There is one more thing I want to add. When we come to the next day(b4) even if there is a blank on the previous day I need it to keep the figure from the previous average. Basically I need to have the cells below the current and future days kept blank until the daily average is inputed in column c. I know i shouldve said this from the beginning but didnt realize it.
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ragdyer
 
Posts: n/a
Default averageif function

You're sending mixed messages!

First you say to carry the previous average down if the present row is
empty:
<<"When we come to the next day(b4) even if there is a blank on the previous
day I need it to keep the figure from the previous average."

THEN you say you want the column to be empty if there's no data in the row:
<<"Basically I need to have the cells below the current and future days kept
blank until the daily average is inputed in column c."

So, which is it ? ? ?

Also, are you averaging *only* 2 cells (days) at a time, or ... is the
average to include *all* of Column C to date?

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"curtll" wrote in message
...

Yea neither of those are working. There is one more thing I want to
add. When we come to the next day(b4) even if there is a blank on the
previous day I need it to keep the figure from the previous average.
Basically I need to have the cells below the current and future days
kept blank until the daily average is inputed in column c. I know i
shouldve said this from the beginning but didnt realize it.


Peo Sjoblom Wrote:
=IF(C2=0,"",AVERAGE(C2:C30))

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"curtll" wrote in message
...

Ive tried {=AVERAGE(IF(C2=0,0,C2:C3))} and several different
variations
of it.

Don Guillett Wrote:
Post what you have tried

--
Don Guillett
SalesAid Software

"curtll"
wrote in message
...

Hello, Im trying to have information from C2:C3 averaged unless C2 is
blank or 0. If it is 0 or blank I want B3 to be blank. I am trying
to
add this formula into B3. Ive tried a lot of different formulas and
nothing is working. Can anyone help?


--
curtll


--
curtll



--
curtll


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
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
Create an AVERAGEIF function. as Excel Worksheet Functions 2 March 2nd 05 01:27 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 02:59 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"