counting specific text in column where date in another column falls between certain dates

Rusty1970

New Member
Joined
Mar 24, 2013
Messages
1
Hi,

Am completely baffled with this one. I am trying to identify the number of times specific text appears within a certain financial year period. So if I have 01/07/2011 and 30/06/2012 in D1 and D2 respectively for arguments sake and the data is as an example:

A B
AIA 01/12/2011
TAA 01/12/2011
AIA 01/10/2010

So if I want to find out the number of times "AIA" occurs within the 11/12 financial year it should be 1. My actual data covers over 7000 lines. I will eventually extrapolate this to tell me the occurrence of each specific text code for each financial year but I can't get the base formula right. Help!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
=sumproduct((a1:a3="aia")*(b1:b3>=datevalue("1/1/2011"))*(b1:b3<=datevalue("12/31/2012")))

modify to suit your number of rows.

BETWEEN 1 JAN 2011AND 31 DEC 2012. The dates are to be netered as EXCEL DATES AND NOT AS A STRING. In my computer it is entered as m/d/yyyy. you enter dates according toi your computer
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,652
Messages
6,126,037
Members
449,281
Latest member
redwine77

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