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

Data Analysis

  • Get column name from index in Excel Table
  • How to create Checklist in Excel
  • How to Create Gantt Chart in Excel
  • How to calculate current stock or inventory in Excel
  • Conditional Formatting Icon Sets Examples in Excel

References

  • How to create dynamic named range with OFFSET in Excel
  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel TRANSPOSE Function
  • Count unique text values with criteria
  • MATCH function: Description, Usage, Syntax, Examples and Explanation

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation don’t exceed total
  • Excel Data validation only dates between
  • How To Create Drop-down List in Excel
  • Excel Data validation no punctuation

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

  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • Nested IF function example in Excel
  • How to return blank in place of #DIV/0! error in Excel

Date Time

  • How to calculate future date say 6 months ahead in Excel
  • How to calculate months between dates in Excel
  • Convert text to date in Excel
  • Extract date from a date and time in Excel
  • DAYS function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group numbers with VLOOKUP in Excel
  • Map text to numbers in Excel
  • Group times into unequal buckets in Excel
  • Group numbers at uneven intervals in Excel
  • How to randomly assign people to groups in Excel

General

  • How to Create Calendar in Excel
  • How to calculate total from percentage in Excel
  • Excel Operators
  • Advanced Number Formats in Excel
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning