COUNTIFS: Matching fields between dates...

benste

New Member
Joined
Apr 7, 2013
Messages
6
Hello everyone,

I am not very good at this stuff but I would like to know, for example, how many Interns have been hired by the HR between January and March 2013?


A1 Intern
A2 Intern
A3 New Hire
A4 New Hire
A5 Intern
A6 New Hire

B1 Finance
B2 HR
B3 HR
B4 Finance
B5 HR
B6 Finance

C1 01/01/2013
c2 01/13/2013
c3 2/13/2013
c4 5/13/2013
c5 6/13/2013
c6 3/13/2013

I was also wondering how would I use wildcards for this? So if someone wrote HR Dept. in a field instead of just HR?

Any help would be very much appreciated,

Ben
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

MARK858

MrExcel MVP
Joined
Nov 12, 2010
Messages
15,197
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
See your other thread. Don't duplicate questions.
Point 21 in the link Peter provided
 
Last edited:
Upvote 0

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
Hi

Give this a shot.

D1 = Intern
D2 = HR
D3 = 1/1/2013
D4 = 3/31/2013

=COUNTIFS(A1:A6,D1,B1:B6,D2&"*",C1:C6,">="&D3,C1:C6,"<="&D4)

The D2&"*" part will cater for HR_and_anything_else
 
Upvote 0

benste

New Member
Joined
Apr 7, 2013
Messages
6
This is fantastic, and i understand whats going on now which is great!! thank you soooo much.

b
 
Upvote 0

benste

New Member
Joined
Apr 7, 2013
Messages
6
Hi FDibbins,

That worked really really well with the &"*" for the wild card. For this value, is it possible to say i want *valuea*&"*" and then add another value onto it for that column?

Is it also possible to say: I want to calculate all in that field minus *valuea*&"*"?

I love this website

b
 
Upvote 0

Forum statistics

Threads
1,195,722
Messages
6,011,309
Members
441,604
Latest member
CraigThompson

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
Top