ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Condition based on multiple cells (https://www.excelbanter.com/excel-discussion-misc-queries/249003-condition-based-multiple-cells.html)

WAR

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!

Bob I

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!



Bob Umlas[_3_]

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!



Paul C

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!


WAR

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!



All times are GMT +1. The time now is 04:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com