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

Data Analysis

  • Excel Line Chart
  • How to create a Histogram in Excel
  • How to calculate average last N values in a table in Excel
  • Use Data Form to input, edit and delete records in Excel
  • How To Perform and Interpret Regression Analysis in Excel

References

  • How to use Excel OFFSET function
  • How to get address of named range in Excel
  • Convert text string to valid reference in Excel using Indirect function
  • How to get last row in numeric data in Excel
  • Extract all partial matches in Excel

Data Validations

  • Excel Data validation no punctuation
  • Excel Data validation number multiple 100
  • Excel Data validation date in next 30 days
  • Excel Data validation don’t exceed total
  • Excel Data validation specific characters 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

  • How to use IFS function in Excel
  • Nested IF function example in Excel
  • How to use Excel XOR Function
  • OR function Examples in Excel
  • IF with boolean logic in Excel

Date Time

  • Add months to date in Excel
  • Series of dates by day
  • NETWORKDAYS.INTL function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate project start date based on end date in Excel
  • Get days, hours, and minutes between dates in Excel

Grouping

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

General

  • Hide and Unhide Columns or Rows in Excel
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • Freeze and Unfreeze Panes in Excel
  • Common Errors in Excel
  • How to fill cell ranges with random text values in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning