PC Review


Reply
Thread Tools Rate Thread

Condition based on multiple cells

 
 
WAR
Guest
Posts: n/a
 
      20th Nov 2009
I would like to look at 3 cells: A6, C6, E6. If all 3 of these cells are
blank, I would like to return a blank cell. If any of the 3 cells has a
value, I would like to return the average.

I am familar with how to do this based on 1 cell, but confused as to how to
get it to work with 3!
 
Reply With Quote
 
 
 
 
Bob I
Guest
Posts: n/a
 
      20th Nov 2009
=IF(AND(A6="",C6="",E6=""),"",AVERAGE(A6,C6,E6))

WAR wrote:
> I would like to look at 3 cells: A6, C6, E6. If all 3 of these cells are
> blank, I would like to return a blank cell. If any of the 3 cells has a
> value, I would like to return the average.
>
> I am familar with how to do this based on 1 cell, but confused as to how to
> get it to work with 3!


 
Reply With Quote
 
Bob Umlas
Guest
Posts: n/a
 
      20th Nov 2009
=IF(COUNTA(A6,C6,E6)=0,"",AVERAGE(A6,C6,E6))
Bob Umlas
Excel MVP

"WAR" <(E-Mail Removed)> wrote in message
news:645AFD41-D507-47BA-B2E0-(E-Mail Removed)...
> I would like to look at 3 cells: A6, C6, E6. If all 3 of these cells are
> blank, I would like to return a blank cell. If any of the 3 cells has a
> value, I would like to return the average.
>
> I am familar with how to do this based on 1 cell, but confused as to how
> to
> get it to work with 3!


 
Reply With Quote
 
Paul C
Guest
Posts: n/a
 
      20th Nov 2009
=if(and(a6="",c6="",e6=""),"",average(a6:c6)
--
If this helps, please remember to click yes.


"WAR" wrote:

> I would like to look at 3 cells: A6, C6, E6. If all 3 of these cells are
> blank, I would like to return a blank cell. If any of the 3 cells has a
> value, I would like to return the average.
>
> I am familar with how to do this based on 1 cell, but confused as to how to
> get it to work with 3!

 
Reply With Quote
 
WAR
Guest
Posts: n/a
 
      20th Nov 2009
Thanks, Paul for your timely answer . . . back to work!

"Paul C" wrote:

> =if(and(a6="",c6="",e6=""),"",average(a6:c6)
> --
> If this helps, please remember to click yes.
>
>
> "WAR" wrote:
>
> > I would like to look at 3 cells: A6, C6, E6. If all 3 of these cells are
> > blank, I would like to return a blank cell. If any of the 3 cells has a
> > value, I would like to return the average.
> >
> > I am familar with how to do this based on 1 cell, but confused as to how to
> > get it to work with 3!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sum cells in columns based on condition Manosh Microsoft Excel Discussion 5 16th Aug 2010 03:49 AM
Set a value in multiple cells based on a condition Hickory Microsoft Excel Misc 2 3rd Jan 2010 06:03 PM
Sum Cells Based on Condition (2 problems) =?Utf-8?B?RGF2ZSBZ?= Microsoft Excel Worksheet Functions 3 5th Nov 2006 01:46 AM
Adding cells based on condition =?Utf-8?B?VGVkIE1ldHJv?= Microsoft Excel Worksheet Functions 1 22nd Jun 2005 09:15 PM
locking cells based on condition itsmaheshp Microsoft Excel Programming 1 1st Nov 2004 01:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:28 AM.