Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a spreadsheet that is supposed to count the number of projects that
are active on the date a report is presented. (ex. 06/05/06 report. Project 1 start date 12/14/05 end date 02/04/07 Project 2 start date 06/07/06 end date 09/05/06 Project 3 start date 06/05/06 end date 11/12/06 Project 4 start date 06/09/06 end date 08/31/06 = 2 active projects (Project 2 and 3) on the date the report was run.) I have tried using =COUNTIF(H5:H30,"<H1")+COUNTIF(I5:I30,"=H1") with H1 being the date of the report and H5:h30 being the start date and I5:I30 being the end date of the projects. I would assume the formula would compare the date against the H column and give it a positive number then go down the I column and give another positive number then subtract H from I and I would have the total number of active projects during the date of the report, but it comes back 0 if I format the cell to General or 1/1/1900 if I format using a date. I hope this makes sense to the experts. Any advice would be appreciated. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try
=SUMPRODUCT(--(H5:H30<=H1),--(I5:I30H1)) -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Jonathan B." <Jonathan wrote in message ... I have a spreadsheet that is supposed to count the number of projects that are active on the date a report is presented. (ex. 06/05/06 report. Project 1 start date 12/14/05 end date 02/04/07 Project 2 start date 06/07/06 end date 09/05/06 Project 3 start date 06/05/06 end date 11/12/06 Project 4 start date 06/09/06 end date 08/31/06 = 2 active projects (Project 2 and 3) on the date the report was run.) I have tried using =COUNTIF(H5:H30,"<H1")+COUNTIF(I5:I30,"=H1") with H1 being the date of the report and H5:h30 being the start date and I5:I30 being the end date of the projects. I would assume the formula would compare the date against the H column and give it a positive number then go down the I column and give another positive number then subtract H from I and I would have the total number of active projects during the date of the report, but it comes back 0 if I format the cell to General or 1/1/1900 if I format using a date. I hope this makes sense to the experts. Any advice would be appreciated. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
All hail the mighty Bob!
Thank you! I was bangin my head for hours yesterday. I plug in that formula today and sure enough. I got another number other than 0 and 1/1/1900 so I had to verify the number and sure enough it worked. I appreciate it. Now I can look like a genius here at work since the project was assigned to me. (you'll cover for me won't ya?) Thanks again, Jonathan (I am a Excel novice. I have been learning as I go. I appreciate the lesson.) "Bob Phillips" wrote: Try =SUMPRODUCT(--(H5:H30<=H1),--(I5:I30H1)) -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Jonathan B." <Jonathan wrote in message ... I have a spreadsheet that is supposed to count the number of projects that are active on the date a report is presented. (ex. 06/05/06 report. Project 1 start date 12/14/05 end date 02/04/07 Project 2 start date 06/07/06 end date 09/05/06 Project 3 start date 06/05/06 end date 11/12/06 Project 4 start date 06/09/06 end date 08/31/06 = 2 active projects (Project 2 and 3) on the date the report was run.) I have tried using =COUNTIF(H5:H30,"<H1")+COUNTIF(I5:I30,"=H1") with H1 being the date of the report and H5:h30 being the start date and I5:I30 being the end date of the projects. I would assume the formula would compare the date against the H column and give it a positive number then go down the I column and give another positive number then subtract H from I and I would have the total number of active projects during the date of the report, but it comes back 0 if I format the cell to General or 1/1/1900 if I format using a date. I hope this makes sense to the experts. Any advice would be appreciated. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Of course I will <g
-- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Jonathan B." wrote in message ... All hail the mighty Bob! Thank you! I was bangin my head for hours yesterday. I plug in that formula today and sure enough. I got another number other than 0 and 1/1/1900 so I had to verify the number and sure enough it worked. I appreciate it. Now I can look like a genius here at work since the project was assigned to me. (you'll cover for me won't ya?) Thanks again, Jonathan (I am a Excel novice. I have been learning as I go. I appreciate the lesson.) "Bob Phillips" wrote: Try =SUMPRODUCT(--(H5:H30<=H1),--(I5:I30H1)) -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Jonathan B." <Jonathan wrote in message ... I have a spreadsheet that is supposed to count the number of projects that are active on the date a report is presented. (ex. 06/05/06 report. Project 1 start date 12/14/05 end date 02/04/07 Project 2 start date 06/07/06 end date 09/05/06 Project 3 start date 06/05/06 end date 11/12/06 Project 4 start date 06/09/06 end date 08/31/06 = 2 active projects (Project 2 and 3) on the date the report was run.) I have tried using =COUNTIF(H5:H30,"<H1")+COUNTIF(I5:I30,"=H1") with H1 being the date of the report and H5:h30 being the start date and I5:I30 being the end date of the projects. I would assume the formula would compare the date against the H column and give it a positive number then go down the I column and give another positive number then subtract H from I and I would have the total number of active projects during the date of the report, but it comes back 0 if I format the cell to General or 1/1/1900 if I format using a date. I hope this makes sense to the experts. Any advice would be appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting dates in a RANGE (yargh!) :) | Excel Worksheet Functions | |||
Counting dates greater than a certain time period | Excel Worksheet Functions | |||
counting dates | New Users to Excel | |||
counting dates | New Users to Excel | |||
How to Calculate Dates without counting the weekends | Excel Worksheet Functions |