Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Conflicting Multiple Conditional Formatting Rules in Excel
  • How to sum a total in multiple Excel tables
  • Move chart to a separate worksheet in Excel
  • Conditional Formatting New Rule with Formulas in Excel
  • How to create running total in an Excel Table

References

  • Count rows with at least n matching values
  • Last row number in range
  • Find closest match in Excel
  • How to use Excel COLUMN Function
  • Count unique text values with criteria

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation exists in list
  • How To Create Drop-down List in Excel
  • Data validation must not exist in list
  • Excel Data validation no punctuation

Convert Negative Numbers to Zero in Excel

by

A clever Excel trick to change negative numbers to zero but leave positive numbers unchanged.

Below you can find two columns with numbers. To subtract the numbers in column B from the numbers in column A, execute the following steps.

1. Select cell C1.

2. Enter the formula =A1-B1

3. Click the lower right corner of cell C1 and drag the formula down.

4. To change the negative numbers to zero but leave the positive numbers unchanged, instead of =A1-B1, use =MAX(0,A1-B1) and drag the function down.

Result:


Result:

Explanation: the MAX function returns the maximum of two values. If the result of the formula is negative, the function returns 0.

Post navigation

Previous Post:

VLOOKUP without #N/A error in Excel

Next Post:

Manipulating text strings using Left, Mid, Right, Len, Substitute 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

Logical Functions

  • Excel If, Nested If, And/Or Criteria Examples
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • IF, AND, OR and NOT Functions Examples in Excel
  • Return blank if in Excel
  • OR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • ISOWEEKNUM function: Description, Usage, Syntax, Examples and Explanation
  • Get fiscal quarter from date in Excel
  • Add decimal hours to time in Excel
  • Calculate expiration date in Excel
  • Add workdays no weekends in Excel

Grouping

  • Group arbitrary text values in Excel
  • Categorize text with keywords in Excel
  • If cell contains one of many things in Excel
  • Map text to numbers in Excel
  • Group times into unequal buckets in Excel

General

  • Count cells less than in Excel
  • List sheet names with formula in Excel
  • Find, Select, Replace and Go To Special in Excel
  • How to Create Calendar in Excel
  • Hide and Unhide Columns or Rows in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning