A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

SUMPRODUCT with conditions



 
 
Thread Tools Display Modes
  #1  
Old April 28th, 2010, 09:17 AM posted to microsoft.public.excel.worksheet.functions
CW
external usenet poster
 
Posts: 701
Default SUMPRODUCT with conditions

Hi All

I have a formula which is working as follows:
=SUMPRODUCT((Data1!B4:B52="Testing")*(Data1!D452 ""))

This basically counts the numbers of values in a column against a set value.
So for me it counts the number of projects that have dates against the
'testing' phase.

I need to amend this to only count the value if the phase is currently in
progress. This would basically be if D452 Today() and E4:E52 Today().

Unfortunately I'm having great difficulty putting this in to a formula.
Could someone please assist?

Thanks
CW
  #2  
Old April 28th, 2010, 09:40 AM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default SUMPRODUCT with conditions

Try this:

=SUMPRODUCT((Data1!B4:B52="Testing")*(Data1!D452 TODAY())*(Data!
E4:E52TODAY()))

Hope this helps.

Pete

On Apr 28, 9:17*am, CW wrote:
Hi All

I have a formula which is working as follows:
=SUMPRODUCT((Data1!B4:B52="Testing")*(Data1!D452 ""))

This basically counts the numbers of values in a column against a set value.
*So for me it counts the number of projects that have dates against the
'testing' phase.

I need to amend this to only count the value if the phase is currently in
progress. *This would basically be if D452 Today() and E4:E52 Today().

Unfortunately I'm having great difficulty putting this in to a formula. *
Could someone please assist?

Thanks
CW


  #3  
Old April 28th, 2010, 10:03 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default SUMPRODUCT with conditions

Try the below...

=SUMPRODUCT((Data1!B4:B52="Testing")*(ISNUMBER(Dat a1!D452))*(ISNUMBER(Data1!E4:E52))*(Data1!D452 =TODAY())*
(Data1!E4:E52=TODAY()))

--
Jacob (MVP - Excel)


"CW" wrote:

Hi All

I have a formula which is working as follows:
=SUMPRODUCT((Data1!B4:B52="Testing")*(Data1!D452 ""))

This basically counts the numbers of values in a column against a set value.
So for me it counts the number of projects that have dates against the
'testing' phase.

I need to amend this to only count the value if the phase is currently in
progress. This would basically be if D452 Today() and E4:E52 Today().

Unfortunately I'm having great difficulty putting this in to a formula.
Could someone please assist?

Thanks
CW

  #4  
Old April 28th, 2010, 11:10 AM posted to microsoft.public.excel.worksheet.functions
CW
external usenet poster
 
Posts: 701
Default SUMPRODUCT with conditions

Thanks both, both formulas do the job.



"Pete_UK" wrote:

Try this:

=SUMPRODUCT((Data1!B4:B52="Testing")*(Data1!D452 TODAY())*(Data!
E4:E52TODAY()))

Hope this helps.

Pete

On Apr 28, 9:17 am, CW wrote:
Hi All

I have a formula which is working as follows:
=SUMPRODUCT((Data1!B4:B52="Testing")*(Data1!D452 ""))

This basically counts the numbers of values in a column against a set value.
So for me it counts the number of projects that have dates against the
'testing' phase.

I need to amend this to only count the value if the phase is currently in
progress. This would basically be if D452 Today() and E4:E52 Today().

Unfortunately I'm having great difficulty putting this in to a formula.
Could someone please assist?

Thanks
CW


.

  #5  
Old April 28th, 2010, 01:39 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default SUMPRODUCT with conditions

You're welcome - thanks for feeding back.

Pete

On Apr 28, 11:10*am, CW wrote:
Thanks both, both formulas do the job.



"Pete_UK" wrote:
Try this:


=SUMPRODUCT((Data1!B4:B52="Testing")*(Data1!D452 TODAY())*(Data!
E4:E52TODAY()))


Hope this helps.


Pete


On Apr 28, 9:17 am, CW wrote:
Hi All


I have a formula which is working as follows:
=SUMPRODUCT((Data1!B4:B52="Testing")*(Data1!D452 ""))


This basically counts the numbers of values in a column against a set value.
*So for me it counts the number of projects that have dates against the
'testing' phase.


I need to amend this to only count the value if the phase is currently in
progress. *This would basically be if D452 Today() and E4:E52 Today().


Unfortunately I'm having great difficulty putting this in to a formula. *
Could someone please assist?


Thanks
CW


.- Hide quoted text -


- Show quoted text -


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:42 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.