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

Data Analysis

  • How To Filter Data in Excel
  • Excel Bar Chart
  • How to calculate current stock or inventory in Excel
  • How to conditionally sum numeric data in an Excel table using SUMIFS
  • Conditional Formatting Color Scales Examples in Excel

References

  • How to use Excel LOOKUP Function
  • Excel Advanced Lookup using Index and Match Functions
  • How to get address of first cell in range in Excel
  • Last row number in range
  • How to get last row in numeric data in Excel

Data Validations

  • Excel Data validation must begin with
  • Excel Data validation only dates between
  • Excel Data validation whole percentage only
  • Excel Data validation specific characters only
  • Data validation must not exist 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

  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • Return blank if in Excel
  • SWITCH function example in Excel
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • IF with wildcards in Excel

Date Time

  • TIME function: Description, Usage, Syntax, Examples and Explanation
  • Add workdays no weekends in Excel
  • Convert date to month and year in Excel
  • Convert Excel time to decimal seconds
  • How to get Holiday Date from Year in Excel

Grouping

  • Group times into unequal buckets in Excel
  • Group arbitrary text values in Excel
  • Group times into 3 hour buckets in Excel
  • Group numbers with VLOOKUP in Excel
  • Map text to numbers in Excel

General

  • How to generate random times at specific intervals in Excel
  • How to get original price from percentage discount in Excel
  • How to Delete Cells, Row and Rows in Excel
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • 44 Practical Excel IF function Examples
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning