#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Help with formula

I need to return a percentage in D1. My problem is. There may be nothing in
one or all the cells but I still need a percentage. I'm using =(A1+B1+C1)/3
if there is something in all 3 cells, but if there is nothing in say A1 I
have to use =(A1+B1+C1)/2 and so on. I keep having to change the formula each
time depending on if there is something or nothing in each cell. Thanks in
Advance!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Help with formula

=AVERAGE(A1:C1)
This will automatically adjust for empty cells
--
Gary''s Student - gsnu200791


"Richard" wrote:

I need to return a percentage in D1. My problem is. There may be nothing in
one or all the cells but I still need a percentage. I'm using =(A1+B1+C1)/3
if there is something in all 3 cells, but if there is nothing in say A1 I
have to use =(A1+B1+C1)/2 and so on. I keep having to change the formula each
time depending on if there is something or nothing in each cell. Thanks in
Advance!!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Help with formula

Thanks for your help! But I don't think I'm getting the results I need.
Example: These are the results I need.

100.00% 10.00% 10.00% 40.00%
100.00% 10.00% 55.00%
100.00% 100.00%

"Gary''s Student" wrote:

=AVERAGE(A1:C1)
This will automatically adjust for empty cells
--
Gary''s Student - gsnu200791


"Richard" wrote:

I need to return a percentage in D1. My problem is. There may be nothing in
one or all the cells but I still need a percentage. I'm using =(A1+B1+C1)/3
if there is something in all 3 cells, but if there is nothing in say A1 I
have to use =(A1+B1+C1)/2 and so on. I keep having to change the formula each
time depending on if there is something or nothing in each cell. Thanks in
Advance!!!

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



All times are GMT +1. The time now is 02:01 AM.

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

About Us

"It's about Microsoft Excel"