Formula Help Please.

kins

Board Regular
Joined
Jul 26, 2010
Messages
157
Hi All,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
<o:p> </o:p>
I need a formula that looks at a date, ***** if it’s within a certain month, and if it is it counts it. E.g.
<o:p> </o:p>
A1 (expiry date) B1 (Reporting month date)
01/01/2011 January
01/02/2011 January
<o:p> </o:p>
<o:p> </o:p>
I need it to count line one but not line 2. Can anyone please help?
<o:p> </o:p>
<o:p> </o:p>
Thanks in advance,
<o:p> </o:p>
Kins
<o:p> </o:p>
<o:p> </o:p>
<o:p> </o:p>
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I don't think your question is quite clear. Both those dates appear to be in the same month, so why would one be counted and the other not be counted?
 
Upvote 0
ooops. sorry joe.


basically, i need it to look at a date, ***** if if within the reporting month and if it is put 1, if it's not, put 2.


01/01/2010 Jan (reporting month) - include
01/02/2010 Jan (reporting month) - exclude


does that make it clearer?

Thanks .
 
Upvote 0
I think you must be typing in something that is getting censored out, as both of your posts have "*****" (it may inadvertantly be identifying something and censoring it out). Can you try to say that part differently? If you click "Preview Post" before posting, you will be able to see if it will be censored out again.

Where is your reporting month defined?
Obviously, you want to compare these dates to a date range to see if they within these dates. Where is that defined/listed?
 
Upvote 0
I think I get what you're asking

=SUMPRODUCT(--($B$1:$B$10=TEXT($A$1:$A$10,"mmmm")))

This assumes reporting month is"January", remove the last "m" if it's abbreviated to "Jan"
 
Upvote 0
sorry chaps. not thanked you for the above.

thanks, i'll give it a whirl now,


kins
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,733
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top