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

Data Analysis

  • How To Remove Duplicates In Excel Column Or Row?
  • How to create running total in an Excel Table
  • Everything about Charts in Excel
  • How to Create Area Chart in Excel
  • Conditional Formatting New Rule with Formulas in Excel

References

  • How to use Excel MMULT Function
  • Extract data with helper column in Excel
  • Count unique text values with criteria
  • How to use Excel OFFSET function
  • Complete List of Excel Lookup and Reference Functions, References and Examples

Data Validations

  • Excel Data validation date in specific year
  • Excel Data validation with conditional list
  • Excel Data validation allow weekday only
  • Excel Data validation whole percentage only
  • Excel Data validation exists in list

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
  • How to use Excel OR Function
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • Invoice status with nested if in Excel
  • Not Equal To ‘<>‘ operator in Excel

Date Time

  • How to calculate months between dates in Excel
  • Excel Date & Time Functions Example
  • EOMONTH function: Description, Usage, Syntax, Examples and Explanation
  • Extract time from a date and time in Excel
  • DAYS360 function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Running count group by n size in Excel
  • Group numbers at uneven intervals in Excel
  • How to randomly assign people to groups in Excel
  • Group arbitrary text values in Excel
  • Map inputs to arbitrary values in Excel

General

  • Index and match on multiple columns in Excel
  • How to calculate percentage of total in Excel
  • Automatically fill series of cells in Excel using AutoFill
  • Count cells that contain errors in Excel
  • Excel Default Templates
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning