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

Data Analysis

  • How To Sort One Column or Multiple Columns in Excel
  • How To Insert and Customize Sparklines in Excel
  • Subtotal function in Excel
  • Create Scatter Chart in Excel
  • How to calculate correlation coefficient Correlation in Excel

References

  • Approximate match with multiple criteria in Excel
  • Left Lookup in Excel
  • How to use Excel TRANSPOSE Function
  • Perform case-sensitive Lookup in Excel
  • Two-way lookup with VLOOKUP in Excel

Data Validations

  • Excel Data validation allow uppercase only
  • Excel Data validation must begin with
  • How To Create Drop-down List in Excel
  • Excel Data validation no punctuation
  • Excel Data validation whole percentage 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

  • Excel If, Nested If, And/Or Criteria Examples
  • How to return blank in place of #DIV/0! error in Excel
  • IF, AND, OR and NOT Functions Examples in Excel
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel OR Function

Date Time

  • Convert date to text in Excel
  • Sum through n months in Excel
  • Extract time from a date and time in Excel
  • How to calculate next scheduled event in Excel
  • Generate series of dates by weekends in Excel

Grouping

  • If cell contains one of many things in Excel
  • Group times into 3 hour buckets in Excel
  • Group arbitrary text values in Excel
  • Calculate conditional mode with criteria in Excel
  • Group numbers at uneven intervals in Excel

General

  • How to calculate percentage of total in Excel
  • How to calculate project complete percentage in Excel
  • Subtotal by invoice number in Excel
  • Find, Trace and Correct Errors in Excel Formulas using ‘Formula Auditing’
  • Using Existing Templates in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning