A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Condition based on multiple cells



 
 
Thread Tools Display Modes
  #1  
Old November 20th, 2009, 03:13 PM posted to microsoft.public.excel.misc
WAR
external usenet poster
 
Posts: 26
Default Condition based on multiple cells

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!
  #2  
Old November 20th, 2009, 03:20 PM posted to microsoft.public.excel.misc
Bob I
external usenet poster
 
Posts: 10,698
Default Condition based on multiple cells

=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!


  #3  
Old November 20th, 2009, 03:21 PM posted to microsoft.public.excel.misc
Bob Umlas[_3_]
external usenet poster
 
Posts: 197
Default Condition based on multiple cells

=IF(COUNTA(A6,C6,E6)=0,"",AVERAGE(A6,C6,E6))
Bob Umlas
Excel MVP

"WAR" wrote in message
...
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!


  #4  
Old November 20th, 2009, 03:27 PM posted to microsoft.public.excel.misc
Paul C
external usenet poster
 
Posts: 202
Default Condition based on multiple cells

=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!

  #5  
Old November 20th, 2009, 04:04 PM posted to microsoft.public.excel.misc
WAR
external usenet poster
 
Posts: 26
Default Condition based on multiple cells

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!

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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