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

I have used the SUMIF function many times on worksheets that have the same
type of information in a "range". Now I need to use the SUMIF function in a
spreadsheet where the "ranges" are not adjacent to each other. For example
in range J1 to J289 I only need every third numbered row for the SUMIF
function. I have Named the range using every third row, but when I try to
insert the Named range into the SUMIF formula, I always get an error.
My range name looks like this j1,j4,j7,j11 etc. These are rows I want to
SUMIF.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default How to use SUMIF function with non-adjacent cells

=SUMPRODUCT(--(MOD(COLUMN(J1:J289),3)=1),J1:J289)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"KLaw" wrote in message
...
I have used the SUMIF function many times on worksheets that have the same
type of information in a "range". Now I need to use the SUMIF function in

a
spreadsheet where the "ranges" are not adjacent to each other. For

example
in range J1 to J289 I only need every third numbered row for the SUMIF
function. I have Named the range using every third row, but when I try to
insert the Named range into the SUMIF formula, I always get an error.
My range name looks like this j1,j4,j7,j11 etc. These are rows I want to
SUMIF.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 296
Default How to use SUMIF function with non-adjacent cells

On Wed, 18 Oct 2006 22:58:33 +0100, "Bob Phillips"
wrote:

=SUMPRODUCT(--(MOD(COLUMN(J1:J289),3)=1),J1:J289)


Probably the lateness of the hour and a typo.
I guess Bob means Row, not Column in the above :-)

Rgds


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default How to use SUMIF function with non-adjacent cells

Time to knock-out the z's Richard.

Bob

"Richard Buttrey" wrote in
message ...
On Wed, 18 Oct 2006 22:58:33 +0100, "Bob Phillips"
wrote:

=SUMPRODUCT(--(MOD(COLUMN(J1:J289),3)=1),J1:J289)


Probably the lateness of the hour and a typo.
I guess Bob means Row, not Column in the above :-)

Rgds


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How to use SUMIF function with non-adjacent cells

Trying to match me, Bob ? <g

Pete

Bob Phillips wrote:
Time to knock-out the z's Richard.

Bob

"Richard Buttrey" wrote in
message ...
On Wed, 18 Oct 2006 22:58:33 +0100, "Bob Phillips"
wrote:

=SUMPRODUCT(--(MOD(COLUMN(J1:J289),3)=1),J1:J289)


Probably the lateness of the hour and a typo.
I guess Bob means Row, not Column in the above :-)

Rgds


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default How to use SUMIF function with non-adjacent cells

No, I went to bed just as you got started <bg

Bob

"Pete_UK" wrote in message
oups.com...
Trying to match me, Bob ? <g

Pete

Bob Phillips wrote:
Time to knock-out the z's Richard.

Bob

"Richard Buttrey" wrote in
message ...
On Wed, 18 Oct 2006 22:58:33 +0100, "Bob Phillips"
wrote:

=SUMPRODUCT(--(MOD(COLUMN(J1:J289),3)=1),J1:J289)

Probably the lateness of the hour and a typo.
I guess Bob means Row, not Column in the above :-)

Rgds


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________




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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
SUMIF Function Freshman Excel Worksheet Functions 2 September 29th 06 05:15 AM
how do i add in numbers automatically based on adjacent cells cont lemskibar Excel Discussion (Misc queries) 2 December 22nd 05 05:27 PM
Changing worksheet cells from within a function James4U2enjoy Setting up and Configuration of Excel 1 October 14th 05 02:16 PM
How do I use the TODAY function with the SUMIF function? Lisa B. Excel Worksheet Functions 2 September 30th 05 08:51 PM


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