#1   Report Post  
Todd Nelson
 
Posts: n/a
Default #Value

I am calculating percentages and in one cell the formula works and in the
next it gives me a #value error, the formulas match perfectly just different
cells. Can anyone explain this. This is the formula
=IF(E11:E14="",0,SUMIF(E11:E14,"0")/COUNTIF(E11:E14,"0"))
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

You sure you don't want a formula like:

=IF(COUNT(E11:E14)=0,0,SUMIF(E11:E14,"0")/COUNTIF(E11:E14,"0"))
or even:
=IF(COUNTIF(E11:E14,"0")=0,0,SUMIF(E11:E14,"0")/COUNTIF(E11:E14,"0"))



Todd Nelson wrote:

I am calculating percentages and in one cell the formula works and in the
next it gives me a #value error, the formulas match perfectly just different
cells. Can anyone explain this. This is the formula
=IF(E11:E14="",0,SUMIF(E11:E14,"0")/COUNTIF(E11:E14,"0"))


--

Dave Peterson
  #3   Report Post  
Todd Nelson
 
Posts: n/a
Default

I need it to calculate the blank cells as well, i think it is more of a cell
format error


"Dave Peterson" wrote:

You sure you don't want a formula like:

=IF(COUNT(E11:E14)=0,0,SUMIF(E11:E14,"0")/COUNTIF(E11:E14,"0"))
or even:
=IF(COUNTIF(E11:E14,"0")=0,0,SUMIF(E11:E14,"0")/COUNTIF(E11:E14,"0"))



Todd Nelson wrote:

I am calculating percentages and in one cell the formula works and in the
next it gives me a #value error, the formulas match perfectly just different
cells. Can anyone explain this. This is the formula
=IF(E11:E14="",0,SUMIF(E11:E14,"0")/COUNTIF(E11:E14,"0"))


--

Dave Peterson

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

I don't think you'll have any luck playing with the format.

And I'm not sure what you mean about calculating the blank cells, too. An empty
cell could be treated as 0, but your formula looks at cells 0.



Todd Nelson wrote:

I need it to calculate the blank cells as well, i think it is more of a cell
format error

"Dave Peterson" wrote:

You sure you don't want a formula like:

=IF(COUNT(E11:E14)=0,0,SUMIF(E11:E14,"0")/COUNTIF(E11:E14,"0"))
or even:
=IF(COUNTIF(E11:E14,"0")=0,0,SUMIF(E11:E14,"0")/COUNTIF(E11:E14,"0"))



Todd Nelson wrote:

I am calculating percentages and in one cell the formula works and in the
next it gives me a #value error, the formulas match perfectly just different
cells. Can anyone explain this. This is the formula
=IF(E11:E14="",0,SUMIF(E11:E14,"0")/COUNTIF(E11:E14,"0"))


--

Dave Peterson


--

Dave Peterson
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 06:15 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"