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

Data Analysis

  • Number and Text Filters Examples in Excel
  • Conditional Formatting New Rule with Formulas in Excel
  • Working With Tables in Excel
  • Excel Line Chart
  • How To Remove Duplicates In Excel Column Or Row?

References

  • How to use Excel TRANSPOSE Function
  • Extract all partial matches in Excel
  • How to get address of last cell in range in Excel
  • How to get last column number in range in Excel
  • Vlookup Examples in Excel

Data Validations

  • Prevent invalid data entering in specific cells
  • Excel Data validation allow weekday only
  • Data validation must not exist in list
  • Excel Data validation allow uppercase only
  • Excel Data validation must contain specific text

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
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • IF with wildcards in Excel
  • How to use Excel FALSE Function
  • IFS function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to calculate quarter from date in Excel
  • How to calculate next anniversary date or birthday in Excel
  • Calculate retirement date in Excel
  • How to calculate project start date based on end date in Excel
  • Get first Monday before any date in Excel

Grouping

  • Map inputs to arbitrary values in Excel
  • Group times into 3 hour buckets in Excel
  • Group numbers at uneven intervals in Excel
  • Categorize text with keywords in Excel
  • Group arbitrary text values in Excel

General

  • How to calculate decrease by percentage in Excel
  • How to Delete Cells, Row and Rows in Excel
  • Convert column number to letter in Excel
  • How to calculate percent of students absent in Excel
  • Subtotal invoices by age in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning