Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
AOP AOP is offline
external usenet poster
 
Posts: 23
Default Quarterly figures with criteria

I have the following formula, giving me quarterly values. I need to add a
criteria "apples" to give me quarterly figures for that item. Any ideas?

{=SUM((A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0))*$D$4:$D$5000)}
This code is as an array. Is it best to use arrays or formulas?

--
AOP
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Quarterly figures with criteria

maybe:

{=SUM((A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0))*$D$4:$D$5000)
*($x$4:$x$5000="apples")}

(still an array formula--where you use ctrl-shift-enter)

AOP wrote:

I have the following formula, giving me quarterly values. I need to add a
criteria "apples" to give me quarterly figures for that item. Any ideas?

{=SUM((A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0))*$D$4:$D$5000)}
This code is as an array. Is it best to use arrays or formulas?

--
AOP


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
AOP AOP is offline
external usenet poster
 
Posts: 23
Default Quarterly figures with criteria

Thanks Dave.
If I did not want to use a array formular, how would I write the formular
--
AOP


"Dave Peterson" wrote:

maybe:

{=SUM((A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0))*$D$4:$D$5000)
*($x$4:$x$5000="apples")}

(still an array formula--where you use ctrl-shift-enter)

AOP wrote:

I have the following formula, giving me quarterly values. I need to add a
criteria "apples" to give me quarterly figures for that item. Any ideas?

{=SUM((A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0))*$D$4:$D$5000)}
This code is as an array. Is it best to use arrays or formulas?

--
AOP


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Quarterly figures with criteria

First, I think I screwed up the ()'s:

=SUM((A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0))*($D$4:$D$5000)
*($X$4:$X$5000="apples"))
(still array entered)

You could use =sumproduct(), but the only difference would be that you don't
need to use ctrl-shift-enter. But in my eyes, it's still an array formula.

=SUMproduct((A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0))*($D$4:$D$5000)
*($X$4:$X$5000="apples"))

or
=SUMproduct(--(A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0)),($D$4:$D$5000),
--($X$4:$X$5000="apples"))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html


AOP wrote:

Thanks Dave.
If I did not want to use a array formular, how would I write the formular
--
AOP

"Dave Peterson" wrote:

maybe:

{=SUM((A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0))*$D$4:$D$5000)
*($x$4:$x$5000="apples")}

(still an array formula--where you use ctrl-shift-enter)

AOP wrote:

I have the following formula, giving me quarterly values. I need to add a
criteria "apples" to give me quarterly figures for that item. Any ideas?

{=SUM((A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0))*$D$4:$D$5000)}
This code is as an array. Is it best to use arrays or formulas?

--
AOP


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
AOP AOP is offline
external usenet poster
 
Posts: 23
Default Quarterly figures with criteria

Thanks very Dave.
I used the sumproduct formula, that works well.
--
AOP


"Dave Peterson" wrote:

First, I think I screwed up the ()'s:

=SUM((A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0))*($D$4:$D$5000)
*($X$4:$X$5000="apples"))
(still array entered)

You could use =sumproduct(), but the only difference would be that you don't
need to use ctrl-shift-enter. But in my eyes, it's still an array formula.

=SUMproduct((A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0))*($D$4:$D$5000)
*($X$4:$X$5000="apples"))

or
=SUMproduct(--(A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0)),($D$4:$D$5000),
--($X$4:$X$5000="apples"))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html


AOP wrote:

Thanks Dave.
If I did not want to use a array formular, how would I write the formular
--
AOP

"Dave Peterson" wrote:

maybe:

{=SUM((A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0))*$D$4:$D$5000)
*($x$4:$x$5000="apples")}

(still an array formula--where you use ctrl-shift-enter)

AOP wrote:

I have the following formula, giving me quarterly values. I need to add a
criteria "apples" to give me quarterly figures for that item. Any ideas?

{=SUM((A5005=ROUNDUP(MONTH($A$4:$A$5000)/3,0))*$D$4:$D$5000)}
This code is as an array. Is it best to use arrays or formulas?

--
AOP

--

Dave Peterson


--

Dave Peterson



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
add figures to existing figures in excel Barkster Excel Worksheet Functions 0 June 21st 06 02:54 PM
How to calculate quarterly Rao Ratan Singh New Users to Excel 2 December 9th 05 01:11 PM
Changing positive figures to minus figures Louise Excel Worksheet Functions 2 September 14th 05 10:05 AM
Quarterly tax percentages viz Excel Worksheet Functions 12 July 18th 05 05:53 AM
Adding the sum of figures in one column if they meet 2 criteria Justine Burn via OfficeKB.com Excel Worksheet Functions 4 February 22nd 05 02:36 AM


All times are GMT +1. The time now is 02:52 AM.

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"