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

Data Analysis

  • How To Remove Duplicates In Excel Column Or Row?
  • What-If Analysis: Scenarios and Goal Seek in Excel
  • How to calculate correlation coefficient Correlation in Excel
  • How To Sort One Column or Multiple Columns in Excel
  • Create Scatter Chart in Excel

References

  • MATCH function: Description, Usage, Syntax, Examples and Explanation
  • To count total rows in a range in Excel
  • Last row number in range
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • Left Lookup in Excel

Data Validations

  • Excel Data validation don’t exceed total
  • Excel Data validation must not contain
  • Excel Data validation unique values only
  • Excel Data validation allow weekday only
  • Excel Data validation date in next 30 days

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 example in Excel
  • IF with wildcards in Excel
  • OR function Examples in Excel
  • How to use Excel FALSE Function
  • IF, AND, OR and NOT Functions Examples in Excel

Date Time

  • Get first Monday before any date in Excel
  • Get first day of month in Excel
  • Calculate years between dates in Excel
  • Convert date to text in Excel
  • How to show last updated date stamp in Excel

Grouping

  • Categorize text with keywords in Excel
  • How to randomly assign data to groups in Excel
  • Group times into 3 hour buckets in Excel
  • Map inputs to arbitrary values in Excel
  • Group times into unequal buckets in Excel

General

  • How to generate random date between two dates in Excel
  • List sheet names with formula in Excel
  • How to get random value from list or table in Excel
  • With vs Without Array Formula in Excel
  • How to password protect excel sheet?
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning