Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default formula returning incorrect blanks

Problem:

When I enter the following equation into a cell with a blank in cell
CH12 or CH13 I get the correct answer (the sum of the cells with
numbers in them) but when there is a blank in cell CH14 I get an
incorrect answer (in the form of a clank cell).

=IF(AND(ISNUMBER(CH12:CH14)),SUM(CH12:CH14),"")

Does anyone have any suggestions?

Thanks,
Elaine

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default formula returning incorrect blanks

When CH14 is blank, ISNUMBER perceives it as a non-numeric so the IF is
returning the "false" value, a blank. I'm trying to think of
workarounds, and without knowing the rationale for the ISNUMBER the
best I can think of is to enter a zero instead of a blank.

  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default formula returning incorrect blanks

Hi,
Thanks but I cannot use zero's. I have stepwise calculations on raw
data and I have to ensure that true zero's are kept in while empty
cells (with no raw data) are continuously considered blank (not
zero's). For the example above I cannot use a simple sum function
(which would work if I was only missing 1 or 2 cells of the range)
because if all three cells are missing/blank in the previous
calculation, they have to return a blank, not a zero.
Thanks,
Elaine

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default formula returning incorrect blanks

Re-read your post: land the cell pointer on your formula and press F2
to edit, then convert it to an array formula by pressing
CTRL-SHIFT-ENTER. It will then behave as expected.

  #5   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default formula returning incorrect blanks

I have tried changing it to an array but then will get a blank cell
whenever any of the 3 cells are blank.

I must be using the wrong formula - what I want to do is have a formula
that will sum any cells within the range that have a number but if ALL
of the cells are empty I need the formula cell to remain blank.



  #6   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default formula returning incorrect blanks

in case anyone has a similar problem, I got this suggestion from Dave
Peterson and it works perfectly!

=if(count(sh12:ch14)0,sum(ch12:ch14),"")

the 0 can be replaced with whatever number you want before a summation
is done (i.e. 1 value, 2 values, etc. present)

  #7   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default formula returning incorrect blanks

If you want zero sum to be blank,

=IF(SUM(CH12:CH14)0,SUM(CH12:CH14),"")

"Dave O" wrote:

When CH14 is blank, ISNUMBER perceives it as a non-numeric so the IF is
returning the "false" value, a blank. I'm trying to think of
workarounds, and without knowing the rationale for the ISNUMBER the
best I can think of is to enter a zero instead of a blank.


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
sum formula not working, producing incorrect answers Excel 2003 crzyg8r Excel Discussion (Misc queries) 5 January 14th 06 09:09 PM
Nesting-Don't use Blanks inside formula Angela Excel Worksheet Functions 9 December 8th 05 05:41 PM
Formula for Returning values in another spreadsheet lrbest4x4xfar Excel Worksheet Functions 1 October 14th 05 02:52 PM
Formula returning #N/A Error---why??? Excel User Excel Worksheet Functions 4 September 26th 05 02:25 PM
How do I prevent incorrect formula results appearing in cell? Marc Todd Excel Worksheet Functions 2 January 26th 05 07:57 AM


All times are GMT +1. The time now is 03:33 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"