• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

How can I get number of cells equal something and not empty?|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / How can I get number of cells equal something and not empty?|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…How can I get number of cells equal…
sp_PrintTopic sp_TopicIcon
How can I get number of cells equal something and not empty?
Avatar
Abbas H
Member
Members
Level 0
Forum Posts: 8
Member Since:
September 27, 2018
sp_UserOfflineSmall Offline
1
October 14, 2018 - 11:50 am
sp_Permalink sp_Print

Hi dears,

Please see my attached screenshot of Excel sheet

I want the correct formula doing like this:

=COUNTIFS(C2:F33; "=IT448";  D2:E33; <>"")

 

Thanks

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
2
October 14, 2018 - 7:57 pm
sp_Permalink sp_Print

Hi Abbas

There is no attachment

Avatar
Abbas H
Member
Members
Level 0
Forum Posts: 8
Member Since:
September 27, 2018
sp_UserOfflineSmall Offline
3
October 14, 2018 - 8:33 pm
sp_Permalink sp_Print

Sorry,question.pngImage Enlarger

Here is the attachment

sp_PlupAttachments Attachments
  • sp_PlupImage question.png (96 KB)
Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
4
October 15, 2018 - 10:14 am
sp_Permalink sp_Print

Hi Abbas

What are you trying to achieve?

It looks like you are trying to do 2 things in one formula.

If you want to count cells equal to IT448 then use COUNTIFS(D3:D33,"IT448")

If you wanted to count non-blank cells, then use COUNTA(D3:D33)

It would be better if you attach a worksheet with sample data instead of an image.

Sunny

Avatar
Abbas H
Member
Members
Level 0
Forum Posts: 8
Member Since:
September 27, 2018
sp_UserOfflineSmall Offline
5
October 15, 2018 - 9:08 pm
sp_Permalink sp_Print

Hi dear Sunny

find the attached file

 

Abbas

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
6
October 16, 2018 - 10:30 am
sp_Permalink sp_Print sp_EditHistory

Hi Abbas

What is your expected result in C38 (periods achieved) and C39 (percentage of achievement)?

Are you trying to do something like this?

=COUNTIFS(C3:C34,"IT448",D3:D34,"<>"&"")

Without knowing how you calculate them, it is difficult to give you an exact answer

Sunny

Avatar
Abbas H
Member
Members
Level 0
Forum Posts: 8
Member Since:
September 27, 2018
sp_UserOfflineSmall Offline
7
October 17, 2018 - 6:40 am
sp_Permalink sp_Print

Yes Sunny,

 

I want to calculate:

How many times "IT448" is mentioned in column C and there is no corresponding number in column D

 

for example,  if (C3=IT448 AND D3=empty) then result=0  else  result+=1

if (C27=IT448 AND D27=empty) then result=0  else  result+=1

 

I hope this simplify what I need

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
8
October 17, 2018 - 9:27 am
sp_Permalink sp_Print

Hi Abbas

I am confused.

You wanted to count the number of entries where column C contains IT448 and column D must be empty but you expect the result to be 0 instead of 1.

Anyway you can try one of the below formulas:

1) =COUNTIFS(C3:C34,"IT448",D3:D34,"<>"&"") - column C contains IT448 and column D is no empty

2) =COUNTIFS(C3:C34,"IT448",D3:D34,"") -  column C contains IT448 and column D is empty

Hope this helps

Sunny

Avatar
Abbas H
Member
Members
Level 0
Forum Posts: 8
Member Since:
September 27, 2018
sp_UserOfflineSmall Offline
9
October 17, 2018 - 10:56 pm
sp_Permalink sp_Print

OK Sunny

Now it is working properly

 

Sorry for your confusion
and thank you for your time with me

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
10
October 18, 2018 - 8:58 am
sp_Permalink sp_Print

Hi Abbas

No problem.

Glad to know you got it working.

Sunny

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: QSolutions Group
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
Lisa Myers
Ronald White
Ginette Guevremont
Taryn Ambrosi
Mark Davenport
Christy Nichols
Harald Endres
Ashley Hughes
Herbie Key
Forum Stats:
Groups: 3
Forums: 24
Topics: 6528
Posts: 28594

 

Member Stats:
Guest Posters: 49
Members: 32818
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.