PC Review


Reply
Thread Tools Rate Thread

Conditional SUM help

 
 
Jay
Guest
Posts: n/a
 
      22nd May 2007
I have a 2 column, 52 row range A1:B52. The first column contains the
numbers 1 to 52 (weeks of the year), with the second containing various
numbers (sales).

If I want to sum the sales for weeks 12 to 17, how do I do it, using a
conditional sum (Sum column B where column A >=12 and <=17.)

Any help greatly appreciated,.....thanks,

Jay


 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      22nd May 2007
Try this

=SUMPRODUCT(--(A1:A52>=12),--(A1:A52<=17),(B1:B52))

The -- will count the number of entries that meet the condition.

HTH,
Barb Reinhardt

"Jay" wrote:

> I have a 2 column, 52 row range A1:B52. The first column contains the
> numbers 1 to 52 (weeks of the year), with the second containing various
> numbers (sales).
>
> If I want to sum the sales for weeks 12 to 17, how do I do it, using a
> conditional sum (Sum column B where column A >=12 and <=17.)
>
> Any help greatly appreciated,.....thanks,
>
> Jay
>
>
>

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      22nd May 2007
=SUMIF(A1:A52,">=12",B1:B52)-SUMIF(A1:A52,">17",B1:B52)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Jay" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a 2 column, 52 row range A1:B52. The first column contains the
>numbers 1 to 52 (weeks of the year), with the second containing various
>numbers (sales).
>
> If I want to sum the sales for weeks 12 to 17, how do I do it, using a
> conditional sum (Sum column B where column A >=12 and <=17.)
>
> Any help greatly appreciated,.....thanks,
>
> Jay
>



 
Reply With Quote
 
MartinW
Guest
Posts: n/a
 
      22nd May 2007
Hi Jay,

There should be no need to use column A to do that.
Try this,

C1: 12
C2: 17
C3: =SUM(INDIRECT("B"&C1&":B"&C2))

Change the C1 and C2 values to whatever weeks you wish.
Column A just becomes a visual reference.

HTH
Martin



"Jay" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a 2 column, 52 row range A1:B52. The first column contains the
>numbers 1 to 52 (weeks of the year), with the second containing various
>numbers (sales).
>
> If I want to sum the sales for weeks 12 to 17, how do I do it, using a
> conditional sum (Sum column B where column A >=12 and <=17.)
>
> Any help greatly appreciated,.....thanks,
>
> Jay
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to apply a conditional Select distinct (or conditional Where onduplicated cell values in a column) Jamie Microsoft Access Queries 3 2nd Oct 2009 07:39 PM
Conditional Formatting No Longer Conditional in 2007 Beta =?Utf-8?B?Q2FjdHVhci1Oby1KdXRzdQ==?= Microsoft Excel Crashes 0 17th Nov 2006 10:01 PM
Using query results within Conditional Statement...sequenced conditional queries rafael.farias.jr@gmail.com Microsoft Access 3 30th Aug 2006 02:08 PM
Conditional Formatting that will display conditional data =?Utf-8?B?QnJhaW5GYXJ0?= Microsoft Excel Worksheet Functions 1 13th Sep 2005 05:45 PM
Re: Multiple conditional on conditional format formula Bob Phillips Microsoft Excel Programming 0 27th Jul 2004 05:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:00 PM.