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

Data Analysis

  • Number and Text Filters Examples in Excel
  • Conditional Formatting Color Scales Examples in Excel
  • Conditional Formatting Data bars Examples in Excel
  • Reverse List in Excel
  • How to calculate correlation coefficient Correlation in Excel

References

  • Get nth match with INDEX / MATCH in Excel
  • How to get last row in mixed data with blanks in Excel
  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate two-way lookup VLOOKUP in Excel Table
  • Count unique text values with criteria

Data Validations

  • Excel Data validation no punctuation
  • Excel Data validation specific characters only
  • Excel Data validation number multiple 100
  • Excel Data validation exists in list
  • Excel Data validation date in specific year

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

  • How to use Excel FALSE Function
  • How to use Excel NOT Function
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • Excel If, Nested If, And/Or Criteria Examples
  • Extract multiple matches into separate rows in Excel

Date Time

  • Series of dates by day
  • How to calculate most recent day of week in Excel
  • Add workdays no weekends in Excel
  • How to calculate quarter from date in Excel
  • Pad week numbers with zeros in Excel

Grouping

  • Map inputs to arbitrary values in Excel
  • Group numbers with VLOOKUP in Excel
  • How to randomly assign people to groups in Excel
  • Group times into unequal buckets in Excel
  • If cell contains one of many things in Excel

General

  • Create dynamic workbook reference to another workbook in Excel
  • Common Errors in Excel
  • Count cells that do not contain errors in Excel
  • Print Excel Sheet In Landscape Or Portrait
  • How to generate random date between two dates in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning