Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default SUMIF with non-adjancent cells

Hi. Anyone knows how to use ranges of non-adjacent cells in a SUMIF function?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default SUMIF with non-adjancent cells

Could you perhaps mean

=SUMIF(C10:C19,1,G20:G29)

Mike

"ismae" wrote:

Hi. Anyone knows how to use ranges of non-adjacent cells in a SUMIF function?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default SUMIF with non-adjancent cells

No, I mean when the "range" and "sum_range" contain non-adjacent cells. For
example, I want to sum from cells C5,G5,K5,O5,.....,AI5 only the ones with
positive values. I tried the formula

=SUMIF((C5,G5,K5,O5,S5,W5,AA5,AE5,AI5),"0",(C5,G5 ,K5,O5,S5,W5,AA5,AE5,AI5))

but it returns #VALUE!





"Mike H" wrote:

Could you perhaps mean

=SUMIF(C10:C19,1,G20:G29)

Mike

"ismae" wrote:

Hi. Anyone knows how to use ranges of non-adjacent cells in a SUMIF function?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMIF with non-adjancent cells

I want to sum from cells C5,G5,K5,O5,.....,AI5
only the ones with positive values.


Try this:

=SUMPRODUCT(--(MOD(COLUMN(C5:AI5)+1,4)=0),--(C5:AI50),C5:AI5)

--
Biff
Microsoft Excel MVP


"ismae" wrote in message
...
Hi. Anyone knows how to use ranges of non-adjacent cells in a SUMIF
function?



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
SumIf with discontinuous cells? RBee Excel Discussion (Misc queries) 6 September 29th 06 04:38 PM
Sumif Cells Are Not Blank Powlaz Excel Worksheet Functions 12 March 15th 06 04:40 PM
SUMIF - Can I total the value of cells if three other cells = set mg_sv_r Excel Worksheet Functions 3 December 7th 05 04:51 PM
sumif with similar cells Mosqui Excel Worksheet Functions 5 August 20th 05 07:50 AM
Using SUMIF with non-blank cells Peter Aitken Excel Worksheet Functions 7 February 10th 05 02:11 PM


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