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

Data Analysis

  • How to conditionally sum numeric data in an Excel table using SUMIFS
  • Chart Axes in Excel
  • Data Series in Excel
  • Conditional Formatting Icon Sets Examples in Excel
  • Use Data Form to input, edit and delete records in Excel

References

  • To count total rows in a range in Excel
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • Left Lookup in Excel
  • Extract data with helper column in Excel
  • How to get first column number in range in Excel

Data Validations

  • Excel Data validation allow weekday only
  • Excel Data validation whole percentage only
  • Prevent invalid data entering in specific cells
  • Excel Data validation date in next 30 days
  • Excel Data validation must contain specific text

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.

Worked Example:   nth largest value in Excel

1. Select cell C1.

2. Enter the formula =A1-B1

3. Click the lower right corner of cell C1 and drag the formula down.

Worked Example:   Two ways to sum time over 30 minutes in Excel

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.

Worked Example:   Get information corresponding to max value in Excel

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:

How to Create Column Chart in Excel

Next Post:

Excel Pie Chart

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

  • AND function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • Return blank if in Excel

Date Time

  • Add workdays no weekends in Excel
  • How to get year from date in Excel
  • Calculate expiration date in Excel
  • DAYS360 function: Description, Usage, Syntax, Examples and Explanation
  • ISOWEEKNUM function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Running count group by n size in Excel
  • Group numbers with VLOOKUP in Excel
  • Group times into unequal buckets in Excel
  • If cell contains one of many things in Excel
  • Group arbitrary text values in Excel

General

  • How to calculate decrease by percentage in Excel
  • How to calculate percent variance in Excel
  • How to Create Calendar in Excel
  • Count cells that do not contain errors in Excel
  • How to get Excel workbook path only
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning