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

Data Analysis

  • What-If Analysis: Scenarios and Goal Seek in Excel
  • Conditional Formatting Color Scales Examples in Excel
  • How to Create Gantt Chart in Excel
  • Conditional Formatting New Rule with Formulas in Excel
  • How to conditionally sum numeric data in an Excel table using SUMIFS

References

  • Get nth match with INDEX / MATCH in Excel
  • How to get address of last cell in range in Excel
  • Create hyperlink with VLOOKUP in Excel
  • Basic INDEX MATCH approximate in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples

Data Validations

  • Excel Data validation date in next 30 days
  • Excel Data validation with conditional list
  • How To Create Drop-down List in Excel
  • Excel Data validation don’t exceed total
  • Data validation must not exist in list

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

  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • IF with wildcards in Excel
  • How to use IFS function in Excel
  • NOT function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Convert Excel time to decimal hours in Excel
  • Count times in a specific range in Excel
  • Calculate series of dates by workdays in Excel
  • How to get Holiday Date from Year in Excel
  • Calculate time difference in hours as decimal value in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • If cell contains one of many things in Excel
  • Calculate conditional mode with criteria in Excel
  • Categorize text with keywords in Excel
  • Running count group by n size in Excel

General

  • Mark Workbook as Final in Excel
  • Cell References: Relative, Absolute and Mixed Referencing Examples
  • How to create dynamic worksheet reference in Excel
  • How to get original price from percentage discount in Excel
  • How to calculate percent change in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning