Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • How to get first column number in range in Excel
  • Get nth match with INDEX / MATCH in Excel
  • How to get address of last cell in range in Excel
  • How to use Excel OFFSET function
  • How to use Excel MATCH Function

Data Analysis Examples

  • Example of COUNTIFS with variable table column in Excel
  • How To Perform and Interpret Regression Analysis in Excel
  • Chart Axes in Excel
  • Working With Tables in Excel
  • Understanding Anova in Excel

Data Validation Examples

  • Excel Data validation whole percentage only
  • Excel Data validation require unique number
  • Prevent invalid data entering in specific cells
  • Excel Data validation date in specific year
  • Excel Data validation no punctuation

Count cells that contain negative numbers

by

This tutorial shows how to Count cells that contain negative numbers using the example below;

Formula

=COUNTIF(range,”<0″)

Explanation

To count the number of cells that contain negative numbers in a range of cells, you can use the COUNTIF function.

In the example, the active cell contains this formula:

=COUNTIF(B2:B6,"<0")

How this formula works

COUNTIF counts the number of cells in a range that match the supplied criteria. In this case, the criteria is supplied as “<0”, which is evaluated as “values less than zero”. The total count of all cells in the range that meet this criteria is returned by the function.

Worked Example:   COUNTIF function: Description, Usage, Syntax, Examples and Explanation

You can easily adjust this formula to count cells based on other criteria. For example, to count all cells with a value less -10, use this formula:

=COUNTIF(range,"<-10")

If you want to use a value in another cell as part of the criteria, use the ampersand (&) character to concatenate like this:

=COUNTIF(range,"<"&a1)

If the value in cell a1 is “-5”, the criteria will be “<-5” after concatenation.

Worked Example:   Count cells that are blank in Excel
Worked Example:   Excel Data validation unique values only

Post navigation

Previous Post:

Count cells that contain five characters

Next Post:

Count items in list in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • How to find nth occurrence of character in Excel
  • How to extract domain name from URL in Excel
  • TEXT function: Description, Usage, Syntax, Examples and Explanation
  • How to pad text to match equal length in Excel
  • Change Case: Uppercase, Lowercase, Propercase in Excel
  • Convert decimal hours to Excel time
  • Get month name from date in Excel
  • Basic timesheet formula with breaks in Excel
  • TIME function: Description, Usage, Syntax, Examples and Explanation
  • Convert Unix time stamp to Excel date
  • DOLLARFR function: Description, Usage, Syntax, Examples and Explanation
  • TBILLYIELD function: Description, Usage, Syntax, Examples and Explanation
  • How to Calculate Tax Rates in Excel
  • PMT, RATE, NPER, PV and FV Financial Functions in Excel
  • Tax rate calculation with fixed base in Excel
Acronyms, Abbreviations, Initialism & What They Stand For
© 2022 xlsoffice . All Right Reserved. | Teal Smiles