Forum Discussion
Dev_1518
Aug 17, 2022Copper Contributor
TO COUNT A CELL WITHOUTH USING COUNTIF
So i have an issue where i have been told to count the number of cell based on a certain criteria in this case i have to calculate the number of people working in sales dept i have two columns N...
HansVogelaar
Aug 17, 2022MVP
=SUM(IF(B2:B6="Sales",1,0))
If you don't have Microsoft 365 or Office 2021, confirm the formula with Ctrl+Shift+Enter.
- Dev_1518Aug 18, 2022Copper Contributor
HansVogelaar Sorry but your formula isint yielding the correct answer 😞
- HansVogelaarAug 18, 2022MVP
Could you attach a sample workbook (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar? Thanks in advance.
- Dev_1518Aug 18, 2022Copper Contributor
@HansVogelaar
https://docs.google.com/spreadsheets/d/1PnbUq9nKv8jLcDJmqO52Be1i70WSTUWFYYoVmot1wvI/edit?usp=sharing
- Harun24HRAug 18, 2022Bronze ContributorThis =SUM(IF(B2:B6="Sales",1,0)) should give you correct result. Check you data either have leading or trailing space. Also this should work =SUM(--(B2:B6="Sales")).