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 Remove Duplicates In Excel Column Or Row?
  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • How To Perform and Interpret Regression Analysis in Excel
  • Example of COUNTIFS with variable table column in Excel

References

  • Create hyperlink with VLOOKUP in Excel
  • How to reference named range different sheet in Excel
  • Vlookup Examples in Excel
  • How to use Excel MMULT Function
  • Two-way lookup with VLOOKUP in Excel

Data Validations

  • Excel Data validation number multiple 100
  • Prevent invalid data entering in specific cells
  • Excel Data validation don’t exceed total
  • Excel Data validation specific characters only
  • Excel Data validation must not contain

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

  • IF with wildcards in Excel
  • How to use Excel TRUE Function
  • Excel If, Nested If, And/Or Criteria Examples
  • SWITCH function example in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Two ways to sum time over 30 minutes in Excel
  • Get first day of previous month in Excel
  • DAY function: Description, Usage, Syntax, Examples and Explanation
  • Get work hours between dates and times in Excel
  • Add days to date in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • Group times into unequal buckets in Excel
  • Group times into 3 hour buckets in Excel
  • Group arbitrary text values in Excel
  • Group numbers with VLOOKUP in Excel

General

  • Customize Ribbon In Excel
  • Basic text sort formula in Excel
  • Count cells that do not contain errors in Excel
  • How to create dynamic worksheet reference in Excel
  • Share Excel data with Word documents
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning