• Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us
Excel

Maximizing Excel’s COUNTIF/COUNTIFS Functions with OR Logic

0 Comments

Maximizing Excel’s COUNTIF/COUNTIFS Functions with OR Logic In a previous post, we explored how to use SUMIF OR to add up multiple values in Excel. Now, let’s take things a step further and learn how to apply the same OR logic to the COUNTIF and COUNTIFS functions.

Have you ever needed to count more than one value from a single column or range of cells in Excel? If so, you’ve likely encountered a roadblock when using COUNTIF or COUNTIFS, which typically require a single condition or multiple conditions using AND logic.

Fortunately, there’s a simple yet powerful workaround that enables you to use OR logic with these functions. In this post, we’ll walk through how to apply the COUNTIF/COUNTIFS OR formula to count specific values from a given range of data.

To follow along, download the sample data file here and let’s dive in.

How to Use COUNTIF/COUNTIFS OR

Consider the following dataset of 50 people and their preferred social media platforms:COUNTIF COUNTIFS 1

Your task is to count the number of people who like both “Facebook” and “Twitter”. Using the COUNIF function, enter the following formula into a cell and press enter:

=SUM(COUNTIF(B2:B51,{“Facebook”,”Twitter”}))COUNTIF COUNTIFS 2

Alternatively, if you prefer to use COUNIFS, use the following formula:

=SUM(COUNTIFS(B2:B51,{“Twitter”,”Facebook”}))COUNTIF COUNTIFS 3

By applying the COUNTIF/COUNTIFS OR formula, you can easily count multiple specific values within a given range, boosting your productivity and efficiency in Excel.

By using either of the formulas described above, you can obtain a result of 25, which is the combined count of Facebook (17) and Twitter (8).

To grasp the application of OR logic in COUNTIF and COUNTIFS functions, the formula should be divided into three parts. The COUNTIFS function utilizes AND logic, whereas COUNTIF allows only one value to be specified for counting. COUNTIF COUNTIFS 4

Initially, two different criteria were used in the formula via the array concept. Next, the COUNTIFS function was used to find these two values. Finally, the entire formula was enclosed in the SUM function to obtain the joint count of both values. This concept was explained in COUNTIF, but the COUNTIFS formula operates in the same way.

Shay asked how to use dynamic values instead of hardcore values in this formula while discussing the use of OR in SUMIF/SUMIFS. There are two minor modifications you can make to your formula to accomplish this. Instead of using curly brackets, use a named range (it’s best to use a table) for your values. Then, use Ctrl + Shift + Enter to input this formula as a proper array formula. As a result, your formula will be:

{=SUM(COUNTIFS(B2:B51,Named_Range))}COUNTIF COUNTIFS 5

Using OR logic in COUNIF/COUNIFS can enhance its effectiveness and reduce the need to create lengthy formulas. Additionally, using dynamic criteria is incredibly beneficial. You can modify values whenever you want, without having to modify the formula.

I hope you found these formula tips helpful and that they will assist you in improving your efficiency. Please share your thoughts with me in the comment section, and don’t forget to share this tip with your friends.

Rate this post
22
253 Views
Excel Word Count: Tips and MethodsPrevExcel Word Count: Tips and MethodsApril 27, 2023
Setting Print Area in Excel WorksheetApril 27, 2023Setting Print Area in Excel WorksheetNext

Leave a Reply Cancel reply

You must be logged in to post a comment.

Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • Kaspersky Total Security 2021 1 year 1 device key Global Kaspersky Total Security 2021 1 year 1 device key Global
    Rated 5.00 out of 5
    $27.00
  • Avast Ultimate Suite 2021 2 Years 10 Devices Global Avast Ultimate Suite 2021 2 Years 10 Devices Global
    Rated 5.00 out of 5
    $77.00
  • Buy Windows 11 Pro CD Key License Buy Windows 11 Pro CD Key License
    Rated 5.00 out of 5
    $6.00
  • Kaspersky Total Security 2021 1 year 5 devices key Global Kaspersky Total Security 2021 1 year 5 devices key Global
    Rated 5.00 out of 5
    $46.00
  • Avast Premium Security 2021 Avast Premium Security 2021 1 Device 1 Year Global
    Rated 5.00 out of 5
    $11.00
Products
  • Windows 10 Pro OEM Key Global - Reinstalling win is still active Windows 10 Pro OEM Key Global - Reinstalling win is still active
    Rated 4.88 out of 5
    $6.00
  • Windows Server 2025 Remote Desktop Services 50 User Connections Windows Server 2025 Remote Desktop Services 50 User Connections $25.00
  • Windows 10 Pro Key Global Windows 10 Pro Key Global
    Rated 4.74 out of 5
    $6.00
  • Project Professional 2021 Microsoft Project Professional 2021 - 1 PC $13.00
  • Windows 10 Enterprise Key Global Windows 10 Enterprise Key Global
    Rated 4.82 out of 5
    $9.00
  • SQL Server 2014 Standard SQL Server 2014 Standard $20.00
  • Microsoft Visio 2019 Professional Key Global Microsoft Visio 2019 Professional Key Global - 5 PC
    Rated 4.93 out of 5
    $19.00
  • Project Professional 2010 Microsoft Project Professional 2010 - 1PC $9.00
  • Microsoft Visio Professional 2010 Key 1PC Microsoft Visio Professional 2010 Key 1PC $9.00
  • Microsoft Office Professional Plus 2019 CD Key Global Microsoft Office Professional Plus 2019 CD Key Global - 5 PC
    Rated 4.92 out of 5
    $32.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.