Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Combining Functions (Sumproduct and Countif)

I am using this sumproduct function in our project summary log to retrieve a
range of cells that contains "Richard Horn" (project Lead) but not if they
contain "carried forward" or "completed" (project statuses).

=SUMPRODUCT(('Q4'!D9:D39="Richard
Horn")*('Q4'!E9:E39<"completed")*('Q4'!E9:E39<"c arried
forward")*('Q4'!E9:E39<"on hold"))

What I also wanted to do was to say only pull those within a specific date
range like below.

=COUNTIF(I9:I39,"=10/01/09")-COUNTIF(I9:I39,"12/31/09")

Can I combine or re-write this function into one function?

Thanks, Richard
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default Combining Functions (Sumproduct and Countif)

Hi Richard,

Just add the conditions to the sumproduct formula:

=SUMPRODUCT(--('Q4'!D9:D39="Richard
Horn"),--('Q4'!E9:E39<"completed"),--('Q4'!E9:E39<"carried
forward"),--('Q4'!E9:E39<"on
hold"),--('Q4'!I9:I39=DATEVALUE("10-01-2009")),--('Q4'!I9:I39<=DATEVALUE("12-31-2009")))

Regards,
Per

"Richard Horn" skrev i meddelelsen
...
I am using this sumproduct function in our project summary log to retrieve
a
range of cells that contains "Richard Horn" (project Lead) but not if they
contain "carried forward" or "completed" (project statuses).

=SUMPRODUCT(('Q4'!D9:D39="Richard
Horn")*('Q4'!E9:E39<"completed")*('Q4'!E9:E39<"c arried
forward")*('Q4'!E9:E39<"on hold"))

What I also wanted to do was to say only pull those within a specific date
range like below.

=COUNTIF(I9:I39,"=10/01/09")-COUNTIF(I9:I39,"12/31/09")

Can I combine or re-write this function into one function?

Thanks, Richard


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Combining Functions (Sumproduct and Countif)

Richard,

Try this

=SUMPRODUCT(('Q4'!D9:D39="Richard
Horn")*('Q4'!E9:E39<"completed")*('Q4'!E9:E39<"c arried
forward")*('Q4'!E9:E39<"on
hold")*(I9:I39=DATE(2009,10,1))*(I9:I39<=DATE(200 9,12,1)))

Mike

"Richard Horn" wrote:

I am using this sumproduct function in our project summary log to retrieve a
range of cells that contains "Richard Horn" (project Lead) but not if they
contain "carried forward" or "completed" (project statuses).

=SUMPRODUCT(('Q4'!D9:D39="Richard
Horn")*('Q4'!E9:E39<"completed")*('Q4'!E9:E39<"c arried
forward")*('Q4'!E9:E39<"on hold"))

What I also wanted to do was to say only pull those within a specific date
range like below.

=COUNTIF(I9:I39,"=10/01/09")-COUNTIF(I9:I39,"12/31/09")

Can I combine or re-write this function into one function?

Thanks, Richard

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Combining Functions (Sumproduct and Countif)

Mike,

I think this is very close but I have an issue: The first formula seems ok
becasue there are 2 projects between 1/1/2010 and 1/31/2010.

=SUMPRODUCT(('Q4'!D9:D39="Chris
Craig")*('Q4'!E9:E39<"completed")*('Q4'!E9:E39<" carried
forward")*('Q4'!E9:E39<"on
hold")*('Q4'!F9:F39=DATE(2010,1,1))*(F9:F39<=DATE (2010,1,31)))

The second formula however is returning 5 which is incorrect. Chris has 6
projects total: one is on hold (don't count), 2 projects that are due in
Januray 2010 (don't count). The formula is returning 5 but it should return
3. Chris has 3 projects that are due on 10/31/09 that are not on hold or
carried forward.

=SUMPRODUCT(('Q4'!D9:D39="Chris
Craig")*('Q4'!E9:E39<"completed")*('Q4'!E9:E39<" carried
forward")*('Q4'!E9:E39<"on
hold")*('Q4'!F9:F39=DATE(2009,9,31))*(F9:F39<=DAT E(2009,12,31)))

"Mike H" wrote:

Richard,

Try this

=SUMPRODUCT(('Q4'!D9:D39="Richard
Horn")*('Q4'!E9:E39<"completed")*('Q4'!E9:E39<"c arried
forward")*('Q4'!E9:E39<"on
hold")*(I9:I39=DATE(2009,10,1))*(I9:I39<=DATE(200 9,12,1)))

Mike

"Richard Horn" wrote:

I am using this sumproduct function in our project summary log to retrieve a
range of cells that contains "Richard Horn" (project Lead) but not if they
contain "carried forward" or "completed" (project statuses).

=SUMPRODUCT(('Q4'!D9:D39="Richard
Horn")*('Q4'!E9:E39<"completed")*('Q4'!E9:E39<"c arried
forward")*('Q4'!E9:E39<"on hold"))

What I also wanted to do was to say only pull those within a specific date
range like below.

=COUNTIF(I9:I39,"=10/01/09")-COUNTIF(I9:I39,"12/31/09")

Can I combine or re-write this function into one function?

Thanks, Richard

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Combining Functions (Sumproduct and Countif)

Hello Richard,

You can easily have it for all your project leads without any formulae
if you use pivot tables:
http://www.contextures.com/CreatePivotTable.html

Regards,
Bernd


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Combining Functions (Sumproduct and Countif)

You have missed few sheet references...

=SUMPRODUCT(('Q4'!D9:D39="Richard Horn")*
('Q4'!E9:E39<"completed")*('Q4'!E9:E39<"carried forward")*
('Q4'!E9:E39<"on hold")*('Q4'!I9:I39=DATE(2009,10,1))*
('Q4'!I9:I39<=DATE(2009,12,1)))

If this post helps click Yes
---------------
Jacob Skaria


"Richard Horn" wrote:

I am using this sumproduct function in our project summary log to retrieve a
range of cells that contains "Richard Horn" (project Lead) but not if they
contain "carried forward" or "completed" (project statuses).

=SUMPRODUCT(('Q4'!D9:D39="Richard
Horn")*('Q4'!E9:E39<"completed")*('Q4'!E9:E39<"c arried
forward")*('Q4'!E9:E39<"on hold"))

What I also wanted to do was to say only pull those within a specific date
range like below.

=COUNTIF(I9:I39,"=10/01/09")-COUNTIF(I9:I39,"12/31/09")

Can I combine or re-write this function into one function?

Thanks, Richard

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
combining COUNTIF and OR functions Josh Craig Excel Worksheet Functions 3 April 29th 09 06:55 PM
Combining COUNTIF and AND functions KA Excel Discussion (Misc queries) 9 December 1st 08 06:30 PM
Combining LOOKUP and COUNTIF functions kate_suzanne Excel Worksheet Functions 2 August 22nd 06 06:59 AM
Combining COUNTIF and AND functions david Excel Worksheet Functions 16 July 7th 06 02:55 AM
Combining SUMPRODUCT and RANK functions MikeM Excel Worksheet Functions 0 November 14th 05 02:09 PM


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