Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a spreadsheet that contains mostly dates and have worked out how to
count them!! the next issue is i have one column with text and would like to count if in that column and then dates in a month from the next colum. ie: Dept Date CON 23/01/2009 NFT 24/05/2010 CPE EDC 08/10/2012 so that if con has 2 dates i know how many for a given month (in the future). Hope that makes sense!! And Thanks guys |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Possible ideas:
=SUMPRODUCT(--(A2:A100="CON"),MONTH(B2:B100=8)) Would give the count of rows that have CON in column A, and a date in the month of August. If you need to also limit what year: =SUMPRODUCT(--(A2:A100="CON"),MONTH(B2:B100=8),--YEAR(B2:B100=2010)) This formula gives count of rows that have CON in column A, and a date occuring in August 2010. -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "Squidgee" wrote: I have a spreadsheet that contains mostly dates and have worked out how to count them!! the next issue is i have one column with text and would like to count if in that column and then dates in a month from the next colum. ie: Dept Date CON 23/01/2009 NFT 24/05/2010 CPE EDC 08/10/2012 so that if con has 2 dates i know how many for a given month (in the future). Hope that makes sense!! And Thanks guys |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Luke M wrote:
Possible ideas: =SUMPRODUCT(--(A2:A100="CON"),MONTH(B2:B100=8)) =SUMPRODUCT(--(A2:A100="CON"),--(MONTH(B2:B100)=8)) Would give the count of rows that have CON in column A, and a date in the month of August. If you need to also limit what year: =SUMPRODUCT(--(A2:A100="CON"),MONTH(B2:B100=8),--YEAR(B2:B100=2010)) =SUMPRODUCT(--(A2:A100="CON"),--(MONTH(B2:B100)=8),--(YEAR(B2:B100)=2010)) This formula gives count of rows that have CON in column A, and a date occuring in August 2010. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count Dates between Dates exclude Text | Excel Discussion (Misc queries) | |||
How do I convert dates stored as dates to text? | Excel Discussion (Misc queries) | |||
Format text 'dates' to real dates | Excel Worksheet Functions | |||
Converting numbers stored as dates to text in Excel | Excel Discussion (Misc queries) |