Countifs query

Dexir

New Member
Joined
Oct 27, 2018
Messages
40
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Greeting Experts,
I have this sheet, i am using COUNTIFS fuctions and it returning the correct results. i just want it show only 1. if a welder work different places same time. for example K2 showing 5 as per formula, but i want it show only 1.

thanks,

Book2
ABCDEFGHIJKLMNO
1Sr. #Welder NameWelder IDBatchRootHotFillingCappingRootHotFillingCappingBW
21Nazrul IslamW-001BWW-001W-007W-007W-0075200
32Ali AzamW-002BWW-001W-006W-006W-0061100
43MD Akter W-003BWW-003W-007W-004W-0071100
54Muhammad YasirW-005BWW-004W-006W-005W-0010122
65M. Mohsin AliW-006BWW-001W-007W-006W-0020255
76Louis ThomasW-007BWW-002W-001W-006W-0031322
87Abdul RazakW-008BWW-007W-002W-004W-0070000
98Shahid Shiekh W-009BWW-001W-003W-005W-0061000
109Mohammed RubelW-010BWW-009W-004W-006W-0060000
1110Abdul RashidW-011BWW-001W-005W-006W-0071000
1211Naveed AnjumW-013BWW-011W-001W-007W-0080000
Sheet1
Cell Formulas
RangeFormula
K2:K12K2=COUNTIFS($D:$D,$O$1,$E:$E,$C2)
L2:L12L2=COUNTIFS($D:$D,$O$1,$F:$F,$C2)
M2:N12M2=COUNTIFS($D:$D,$O$1,$G:$G,$C2)
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Try:

Excel Formula:
=IF(COUNTIFS($D:$D,$O$1,$E:$E,$C2),1,0)
 
Upvote 0
Reviewing the logic of the formulas. Your column N formula should check column H, like this:

Dante Amor
ABCDEFGHIJKLMNO
1Sr. #Welder NameWelder IDBatchRootHotFillingCappingRootHotFillingCappingBW
21Nazrul IslamW-001BWW-001W-007W-007W-0071101
32Ali AzamW-002BWW-001W-006W-006W-0061101
43MD Akter W-003BWW-003W-007W-004W-0071101
54Muhammad YasirW-005BWW-004W-006W-005W-0010110
65M. Mohsin AliW-006BWW-001W-007W-006W-0020111
76Louis ThomasW-007BWW-002W-001W-006W-0031111
87Abdul RazakW-008BWW-007W-002W-004W-0070001
98Shahid Shiekh W-009BWW-001W-003W-005W-0061000
109Mohammed RubelW-010BWW-009W-004W-006W-0060000
1110Abdul RashidW-011BWW-001W-005W-006W-0071000
1211Naveed AnjumW-013BWW-011W-001W-007W-0080000
Hoja2
Cell Formulas
RangeFormula
K2:N12K2=IF(COUNTIFS($D:$D,$O$1,E:E,$C2),1,0)
 
Upvote 0
Solution

Forum statistics

Threads
1,224,818
Messages
6,181,150
Members
453,021
Latest member
Justyna P

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