Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default dates and text in excel

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default dates and text in excel

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default dates and text in excel

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
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
Count Dates between Dates exclude Text Ken Excel Discussion (Misc queries) 3 April 8th 09 07:59 PM
How do I convert dates stored as dates to text? diamunds Excel Discussion (Misc queries) 5 September 7th 07 05:38 PM
Format text 'dates' to real dates Jacy Excel Worksheet Functions 4 July 24th 06 02:10 AM
Converting numbers stored as dates to text in Excel David from Furdale Excel Discussion (Misc queries) 1 July 17th 06 06:34 PM


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