LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
RagDyer
 
Posts: n/a
Default Compare if same month in cell vs columns

Assume Sheet1 column headers are plain text, while dates in Sheet2 are true
dates, try this *array* formula:

=COUNT(IF(TEXT(Sheet2!D1:D20,"mmmm")=C1,Sheet2!D1: D20))

--
Array formulas are entered using CSE, <Ctrl <Shift <Enter, instead of the
regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"MHY" wrote in message
...
On sheet 1 I have the months across the top row and lets say that the

month
of March is in c1. On sheet 2 I have a column (d1:d20) with many dates,

and
I want to count the number of dates in the month of March.
I think it would go something like this,
=countif(month(sheet 2(d1:d20)),sheet 1(c1))
I may not have all of the () in the right place but hope you get the idea.
Thansk


 
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
2 queries: Display last cell, and compare two lists Thierry Excel Worksheet Functions 1 September 23rd 05 04:42 AM
Cell formating and Rolling columns IndianGuru Excel Discussion (Misc queries) 3 September 22nd 05 04:27 AM
Truncating a columns worth of cells not just a single cell. rebates Excel Worksheet Functions 1 July 26th 05 01:15 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Syntax for inferred cell references donesquire Excel Worksheet Functions 4 April 4th 05 09:29 PM


All times are GMT +1. The time now is 12:51 AM.

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"