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

Data Analysis

  • Conditional Formatting Icon Sets Examples in Excel
  • Chart Axes in Excel
  • Conditional Formatting Color Scales Examples in Excel
  • Remove Duplicates Example in Excel
  • How to do a t-Test in Excel?

References

  • How to create dynamic named range with OFFSET in Excel
  • How to get last row in mixed data with blanks in Excel
  • Perform case-sensitive Lookup in Excel
  • To count total rows in a range in Excel
  • How to get first row number in range in Excel

Data Validations

  • Excel Data validation must contain specific text
  • Excel Data validation must not contain
  • Excel Data validation only dates between
  • Prevent invalid data entering in specific cells
  • Excel Data validation date in specific year

Larger of two values in Excel

by

This tutorial shows how to calculate Larger of two values in Excel using the example below;

Formula

=MAX(value1,value2)

Explanation

To get the larger, or greater, of two values, you can use the MAX function. In the example shown, the formula in D5 is:

=MAX(B5,C5)

How this formula works

The MAX function is fully automatic – it returns the largest value in the numbers provided. In this case, we give MAX function two values:

=MAX(B5,C5)

and MAX returns the larger value.

Worked Example:   Calculate total hours that fall between two times in Excel

Elegant alternative to IF

The MAX function can be a compact and elegant replacement for the IF function. For example, the formula above can be written with IF like so:

=IF(B5>=C5,B5,C5)

However, the MAX version is 6 characters shorter (11 vs. 17), and contains no redundant references, so it is less prone to errors.

Worked Example:   Maximum value if in Excel

Post navigation

Previous Post:

Weighted average in Excel

Next Post:

Win loss points calculation 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
  • Not Equal To ‘<>‘ operator in Excel
  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • Return blank if in Excel
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Calculate total hours that fall between two times in Excel
  • Get work hours between dates custom schedule in Excel
  • WORKDAY function: Description, Usage, Syntax, Examples and Explanation
  • WEEKNUM function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate workdays per month in Excel

Grouping

  • Group times into unequal buckets in Excel
  • Group numbers at uneven intervals in Excel
  • If cell contains one of many things in Excel
  • Group times into 3 hour buckets in Excel
  • Group numbers with VLOOKUP in Excel

General

  • Subtotal by color in Excel
  • How to set or clear a print area in Excel Worksheet
  • Excel Autofill Cell Ranges, Copy, Paste
  • How to make excel worksheets print on one page?
  • How to fill cell ranges with random text values in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning