Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default Adding cells that have varying contents

Have a group of cells in a row that all contain similar formulas.
They look like:
=IF(T17="","",T17*($M17/$N17)) or, =IF(U17="","",U17*($M17/$N17))

I want to add up the results of their formulas, including the cells
that have returned blanks.

If 8 columns have this (or similar) formula, and only 2 display
numbers, how can I return a true sum, that is not" #VALUE" as a total
for that row?

TIA for any help.

Pierre

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Adding cells that have varying contents

One way:

=SUM(T17:AA17)

SUM() ignores text.In article
. com,
Pierre wrote:

Have a group of cells in a row that all contain similar formulas.
They look like:
=IF(T17="","",T17*($M17/$N17)) or, =IF(U17="","",U17*($M17/$N17))

I want to add up the results of their formulas, including the cells
that have returned blanks.

If 8 columns have this (or similar) formula, and only 2 display
numbers, how can I return a true sum, that is not" #VALUE" as a total
for that row?

TIA for any help.

Pierre

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Adding cells that have varying contents

maybe =sumif(A1:h25,"<""",a1:h25)
--
JNW


"Pierre" wrote:

Have a group of cells in a row that all contain similar formulas.
They look like:
=IF(T17="","",T17*($M17/$N17)) or, =IF(U17="","",U17*($M17/$N17))

I want to add up the results of their formulas, including the cells
that have returned blanks.

If 8 columns have this (or similar) formula, and only 2 display
numbers, how can I return a true sum, that is not" #VALUE" as a total
for that row?

TIA for any help.

Pierre


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default Adding cells that have varying contents

On Sep 11, 5:14 pm, JNW wrote:
maybe =sumif(A1:h25,"<""",a1:h25)
--
JNW



"Pierre" wrote:
Have a group of cells in a row that all contain similar formulas.
They look like:
=IF(T17="","",T17*($M17/$N17)) or, =IF(U17="","",U17*($M17/$N17))


I want to add up the results of their formulas, including the cells
that have returned blanks.


If 8 columns have this (or similar) formula, and only 2 display
numbers, how can I return a true sum, that is not" #VALUE" as a total
for that row?


TIA for any help.


Pierre- Hide quoted text -


- Show quoted text -


I should have been more specific: The range containing the formulas
are in a row, but the formulas I want totaled are in "every other
column";

=SUM(T17:AA17) ,a SUM with a contiguous range won't total the cells as
needed. Couldn't get the SUMIF as noted above to work either.



T17+V17+X17 etc. Those cells contain the formula, and we're after a
total of those in column Y.

Thanks again for a second look.

Pierre


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Adding cells that have varying contents

=SUMPRODUCT(--(MOD(COLUMN(T17:AA17),2)=0),T17:AA17)


"Pierre" wrote:

On Sep 11, 5:14 pm, JNW wrote:
maybe =sumif(A1:h25,"<""",a1:h25)
--
JNW



"Pierre" wrote:
Have a group of cells in a row that all contain similar formulas.
They look like:
=IF(T17="","",T17*($M17/$N17)) or, =IF(U17="","",U17*($M17/$N17))


I want to add up the results of their formulas, including the cells
that have returned blanks.


If 8 columns have this (or similar) formula, and only 2 display
numbers, how can I return a true sum, that is not" #VALUE" as a total
for that row?


TIA for any help.


Pierre- Hide quoted text -


- Show quoted text -


I should have been more specific: The range containing the formulas
are in a row, but the formulas I want totaled are in "every other
column";

=SUM(T17:AA17) ,a SUM with a contiguous range won't total the cells as
needed. Couldn't get the SUMIF as noted above to work either.



T17+V17+X17 etc. Those cells contain the formula, and we're after a
total of those in column Y.

Thanks again for a second look.

Pierre





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default Adding cells that have varying contents

On Sep 11, 8:08 pm, Teethless mama
wrote:
=SUMPRODUCT(--(MOD(COLUMN(T17:AA17),2)=0),T17:AA17)






Thank you Teethless!!

Pierre

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
Copying cells from varying rows annettek Excel Discussion (Misc queries) 2 May 25th 07 02:51 PM
concatenate with a varying range of cells Riversage Excel Worksheet Functions 0 January 29th 07 07:43 PM
compare the contents of one range of cells with the contents of a. Dozy123 Excel Discussion (Misc queries) 1 January 24th 07 10:14 AM
Adding contents of one cell to a range of cells. CLJinVA Excel Worksheet Functions 1 February 10th 05 10:19 PM
Adding contents of cells by clicking in Excel 2002 Kevin Gordon Excel Discussion (Misc queries) 7 January 11th 05 04:49 PM


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