Combining IF, COUNTIF, ISNUMBER, SEARCH in a formula

MarcusEd

New Member
Joined
Jan 15, 2019
Messages
3
Hi

Hoping someone might be able to point me towards a solution that has me stumped combining a number of search functions.

I have a roster with three general information columns: Position title, is the position active, company the position reports to. There is a separate summary sheet that is designed to summarise (by count) the number of positions budgeted versus the number of actual active positions filled.

I’m trying to do a count of position titles but also need to include them in the count only if the position is active and whether it works for a particular company. I’ve tried using the COUNTIF, IF(AND and IF(ISNUMBER(SEARCH but am having trouble bringing them all together with a single output result.

For example: to find the number of cells in a range that have the word “Manager” in the title (in one column) then reference whether this position is active (as designed by the word “Active”) in a second column then search a third column whether this position works for “Company A”
 

Attachments

  • Capture.JPG
    Capture.JPG
    53.4 KB · Views: 87

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Add another column called "Role" to your data that specifies if a person is Manager, Supervisor, etc. Then simply build a pivot table. Use Roles and company in the rows and Active in the columns. Drag the title into the value area for a count.

2020-01-27_16-52-30.png
 
Upvote 0
Book1
ABCDE
1TitleActiveCompany
2Manager AActiveCompany A
3Manager BActiveCompany A
4Supervisor AActiveCompany A
5Supervisor BActiveCompany A
6Supervisor CNot activeCompany A
7TrainerActiveCompany A
8Engineer ANot activeCompany A
9Engineer BActiveCompany A
10Engineer CActiveCompany A
11Engineer DNot activeCompany A
12Engineer EActiveCompany A
13
142# Active Managers from Comppany A
152# Active Supervisors from Comppany A
161# Active Trainers from Comppany A
173# Active Engineers from Comppany A
Sheet1
Cell Formulas
RangeFormula
A14A14=COUNTIFS($A$2:$A$12,"*Manager*",$B$2:$B$12,"Active",$C$2:$C$12,"Company A")
A15A15=COUNTIFS($A$2:$A$12,"*Supervisor*",$B$2:$B$12,"Active",$C$2:$C$12,"Company A")
A16A16=COUNTIFS($A$2:$A$12,"*Trainer*",$B$2:$B$12,"Active",$C$2:$C$12,"Company A")
A17A17=COUNTIFS($A$2:$A$12,"*Engineer*",$B$2:$B$12,"Active",$C$2:$C$12,"Company A")
 
Upvote 0
Try COUNTIFS:
Book1
ABCDEFGH
1TitleActiveCompanyTitleCountActiveCom. A
2Manager AActiveCom. AManager2
3Manager BActiveCom. ASupervisor2
4Manager CActiveCom. CEng3
5Supervisor AActiveCom. A
6Supervisor BActiveCom. A
7Supervisor CNot ActiveCom. A
8Eng ANot ActiveCom. A
9Eng BActiveCom. A
10Eng CActiveCom. A
11Eng DNot ActiveCom. A
12Eng EActiveCom. A
Sheet1
Cell Formulas
RangeFormula
F2:F4F2=COUNTIFS($A$2:$A$12,"*"&$E2&"*",$B$2:$B$12,$G$1,$C$2:$C$12,$H$1)
 
Upvote 0
Thank you all for your replies. The COUNTIFS function is ideal and achieves what i'm after.
I thought about a Pivot table but ruled it out for a couple of administrative reasons
 
Upvote 0

Forum statistics

Threads
1,214,914
Messages
6,122,211
Members
449,074
Latest member
cancansova

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