Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default how can i adapt this formula?

=SUM(IF(NOT(ISERROR(C6:H6)),C6:H6),0)

i need to skip column D

--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default how can i adapt this formula?

=IF(NOT(ISERROR(C6)),C6) + SUM(IF(NOT(ISERROR(E6:H6)),E6:H6),0)
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default how can i adapt this formula?

thanks, i was trying to combine the c6,e6:h6 instead of separating them and
adding the result

--


Gary


"abcd" wrote in message
...
=IF(NOT(ISERROR(C6)),C6) + SUM(IF(NOT(ISERROR(E6:H6)),E6:H6),0)



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default how can i adapt this formula?


Gary-

If I understand your formula, you are trying to sum the value of the cells
in the range if none of them contain an error value. If there is an error
value in the range, you want to return 0.

The isError funciton returns a value indicating whether an expression, not a
range, is an error value. Try this formula to see if it does what you want.
It returns the sum of the range if the sum expression does not evaluate to an
error value or 0 if it does.

=IF(NOT(ISERROR(SUM(C6,E6:H6))),SUM(C6,E6:H6),0)

Within the SUM function, you can separate discontinuous ranges with a comma.

Stan Shoemaker
Saratoga, CA



"Gary Keramidas" wrote:

thanks, i was trying to combine the c6,e6:h6 instead of separating them and
adding the result

--


Gary


"abcd" wrote in message
...
=IF(NOT(ISERROR(C6)),C6) + SUM(IF(NOT(ISERROR(E6:H6)),E6:H6),0)




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default how can i adapt this formula?

tried that and it didn't work in all cases. it evaluates to a zero
sometimes. the formula in the other response works all the time.

--


Gary


"stanshoe" wrote in message
...

Gary-

If I understand your formula, you are trying to sum the value of the cells
in the range if none of them contain an error value. If there is an
error
value in the range, you want to return 0.

The isError funciton returns a value indicating whether an expression, not
a
range, is an error value. Try this formula to see if it does what you
want.
It returns the sum of the range if the sum expression does not evaluate to
an
error value or 0 if it does.

=IF(NOT(ISERROR(SUM(C6,E6:H6))),SUM(C6,E6:H6),0)

Within the SUM function, you can separate discontinuous ranges with a
comma.

Stan Shoemaker
Saratoga, CA



"Gary Keramidas" wrote:

thanks, i was trying to combine the c6,e6:h6 instead of separating them
and
adding the result

--


Gary


"abcd" wrote in message
...
=IF(NOT(ISERROR(C6)),C6) + SUM(IF(NOT(ISERROR(E6:H6)),E6:H6),0)








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default how can i adapt this formula?

I can not talk for him, but I understood it an other way:
it seems he was happy with its formula, and wanted to change
(excluding a column from it).

So, it seems he wants to add all the non error columns (having a non
error result, counting error cells as zeros)
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
Help to adapt Formula syntax to work with Visible Filtered Cells Sam via OfficeKB.com Excel Worksheet Functions 6 September 16th 05 11:42 PM
Help to adapt Formula syntax to work with Dynamic Named Ranges Sam via OfficeKB.com Excel Worksheet Functions 13 April 29th 05 12:36 AM
adapt macro monty Excel Worksheet Functions 3 March 9th 05 12:44 PM
Please help me to adapt this code. Rob Hargreaves Excel Programming 1 February 2nd 05 08:27 PM
Trying to adapt progress meter hotherps[_144_] Excel Programming 0 October 17th 04 02:46 PM


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