Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tkacoo
 
Posts: n/a
Default MVP...Formula expert needed!!!

I have a spreadsheet that is linked to a summary sheet.
Activity Codes (Col A) Assigned (Col B) Completed (Col C)
101 12/01/04 1/31/05
100 01/30/05 1/31/05
100 12/25/04 1/15/05
102 02/01/05
101 11/15/04

I need to capture How many of each activity codes are open for a given
month€¦ for example

Dec 2004
Activity Codes Open
100 1
101 2
102 0

Feb 2005
Activity Codes Open
100 0
101 1
102 1

Here is the formula I am using:

=SUMPRODUCT(('Master Sheet 1'!A2:A3000=A25)* ('Master Sheet
1'!B2:B3000<=02/01/2005)* ('Master Sheet 1'!C2:C3000="")*OR ('Master Sheet
1'!C2:C3000<=02/01/2005)

1. I am selecting the specific Activity code I want
2. Then look in the Assigned column and look for any date that is equal to
or less than Feb 1, 2005
3. Then look in the Completed column and return any thing that is Blank or
equal to or less than Feb 1, 2005.
I am coming up with a 0 answer. Any suggestions€¦€¦

  #3   Report Post  
N Harkawat
 
Posts: n/a
Default

This works for me to list all jobs that were open before Feb-1-2005 and are
either completed in Feb -2005 or are still in progress

=SUMPRODUCT(--('Master Sheet 1'!A2:A3000=A25),--('Master
Sheet1'!B2:B3000<=datevalue("02/01/2005")),--('Master
Sheet1'!C2:C3000=datevalue("02/01/2005")+isblank('Master Sheet1'!C2:C3000))

"tkacoo" wrote in message
...
I have a spreadsheet that is linked to a summary sheet.
Activity Codes (Col A) Assigned (Col B) Completed (Col C)
101 12/01/04 1/31/05
100 01/30/05 1/31/05
100 12/25/04 1/15/05
102 02/01/05
101 11/15/04

I need to capture How many of each activity codes are open for a given
month. for example

Dec 2004
Activity Codes Open
100 1
101 2
102 0

Feb 2005
Activity Codes Open
100 0
101 1
102 1

Here is the formula I am using:

=SUMPRODUCT(('Master Sheet 1'!A2:A3000=A25)* ('Master Sheet
1'!B2:B3000<=02/01/2005)* ('Master Sheet 1'!C2:C3000="")*OR ('Master Sheet
1'!C2:C3000<=02/01/2005)

1. I am selecting the specific Activity code I want
2. Then look in the Assigned column and look for any date that is equal to
or less than Feb 1, 2005
3. Then look in the Completed column and return any thing that is Blank or
equal to or less than Feb 1, 2005.
I am coming up with a 0 answer. Any suggestions..



  #4   Report Post  
Harlan Grove
 
Posts: n/a
Default

N Harkawat wrote...
This works for me to list all jobs that were open before Feb-1-2005

and are
either completed in Feb -2005 or are still in progress

=SUMPRODUCT(--('Master Sheet 1'!A2:A3000=A25),--('Master
Sheet1'!B2:B3000<=datevalue("02/01/2005")),--('Master
Sheet1'!C2:C3000=datevalue("02/01/2005")+isblank('Master

Sheet1'!C2:C3000))
....

There's a syntax error, so it wasn't tested. But it's close. If the
date threshold were entered in a cell named ByDate, make the formula

=SUMPRODUCT(--('Master Sheet 1'!A2:A3000=A25),
--('Master Sheet1'!B2:B3000<=ByDate),
('Master Sheet1'!C2:C3000=ByDate)+(TRIM('Master Sheet1'!C2:C3000)=""))

Also, reread the OP's specs and sample intended results. Following your
approach for Dec 2004, if ByDate were 1 Dec 2004, then the activity 100
begun on 25 Dec 2004 wouldn't be included in the Dec 2004 result. It's
pretty clear the OP's ByDate values are the last days rather than the
first days of the given months.

  #5   Report Post  
tkacoo
 
Posts: n/a
Default

Thank you sooo much. I have been going crazy trying to work this out! I
used a little from each one and tailored it to my spreadsheet. It turned out
great and now it automatically creates a graph so that I can see the lastest
and greatest reports.
Again THANK YOU!!!!!!!

"Harlan Grove" wrote:

N Harkawat wrote...
This works for me to list all jobs that were open before Feb-1-2005

and are
either completed in Feb -2005 or are still in progress

=SUMPRODUCT(--('Master Sheet 1'!A2:A3000=A25),--('Master
Sheet1'!B2:B3000<=datevalue("02/01/2005")),--('Master
Sheet1'!C2:C3000=datevalue("02/01/2005")+isblank('Master

Sheet1'!C2:C3000))
....

There's a syntax error, so it wasn't tested. But it's close. If the
date threshold were entered in a cell named ByDate, make the formula

=SUMPRODUCT(--('Master Sheet 1'!A2:A3000=A25),
--('Master Sheet1'!B2:B3000<=ByDate),
('Master Sheet1'!C2:C3000=ByDate)+(TRIM('Master Sheet1'!C2:C3000)=""))

Also, reread the OP's specs and sample intended results. Following your
approach for Dec 2004, if ByDate were 1 Dec 2004, then the activity 100
begun on 25 Dec 2004 wouldn't be included in the Dec 2004 result. It's
pretty clear the OP's ByDate values are the last days rather than the
first days of the given months.


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
IF & VLOOKUP FORMULA taxmom Excel Worksheet Functions 3 March 2nd 05 03:35 PM
Howdo U copy a formula down a column, that uses data in another w. Need Help pasting a formula Excel Worksheet Functions 1 February 25th 05 06:04 PM
Howdo U copy a formula down a column, that uses data in another w. brantty Excel Worksheet Functions 0 February 25th 05 10:11 AM
Formula needed Edgar Thoemmes Excel Worksheet Functions 3 January 13th 05 02:07 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM


All times are GMT +1. The time now is 10:07 AM.

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

About Us

"It's about Microsoft Excel"