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

Data Analysis

  • Excel Frequency Function Example
  • How to add Trendline to a chart in Excel
  • How to Sort by Color in Excel
  • How To Create Frequency Distribution in Excel
  • How to Use Solver Tool in Excel

References

  • To count total rows in a range in Excel
  • Find closest match in Excel
  • How to use Excel ROWS Function
  • Perform case-sensitive Lookup in Excel
  • How to use Excel MATCH Function

Data Validations

  • Excel Data validation only dates between
  • Excel Data validation date in specific year
  • Excel Data validation whole percentage only
  • Excel Data validation with conditional list
  • Excel Data validation specific characters only

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

  • IF function: Description, Usage, Syntax, Examples and Explanation
  • Complete List of Excel Logical Functions, References and Examples
  • How to use Excel TRUE Function
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • Check multiple cells are equal in Excel

Date Time

  • TIME function: Description, Usage, Syntax, Examples and Explanation
  • Calculate series of dates by workdays in Excel
  • Add years to date in Excel
  • Get days, hours, and minutes between dates in Excel
  • Add business days to date in Excel

Grouping

  • Group times into 3 hour buckets in Excel
  • Categorize text with keywords in Excel
  • How to randomly assign people to groups in Excel
  • Running count group by n size in Excel
  • Group numbers with VLOOKUP in Excel

General

  • Sum by group in Excel
  • How to get Excel workbook path only
  • Automatically fill series of cells in Excel using AutoFill
  • Find, Select, Replace and Go To Special in Excel
  • 231 Keyboard Shortcut Keys In Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning