Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to find the maximum / minimum absolute values in Excel?

Author Xiaoyang Last modified

In Excel, we can use the Max or Min function to find out the largest or smallest values in a range of cells. But here, if your worksheet is populated with positive numbers and negatives, and you need to find out the maximum absolute values or minimum absolute values, the Max or Min function will not help you. Today, I will talk about some quick tricks for you to solve this task.

Find the maximum / minimum absolute values with Formulas

Find the maximum / minimum absolute values with User Defined Function

Sum the absolute value with Kutools for Excel good idea3


Find the maximum / minimum absolute values with Formulas

The following small array formulas can help you to find out the largest absolute value and the smallest absolute value.

1. In a blank cell, enter this formula =Max(ABS(A1:D10)), see screenshot:

enter a formula to find the maximum absolute value

2. Then press Ctrl+Shift+Enter keys, and the largest absolute values will be displayed in the cell.

press Ctrl+Shift+Enter keys to get the result

If you want to find out the smallest absolute value in a range of cells, you can apply this formula: =Min(ABS(A1:D10)), and remember to press Ctrl+Shift+Enter keys to get the correct result.

Note: In the formula, A1:D10 is the range you want to select the largest or smallest value from. You can change it as your need.

a screenshot of kutools for excel ai

Unlock Excel Magic with Kutools AI

  • Smart Execution: Perform cell operations, analyze data, and create charts—all driven by simple commands.
  • Custom Formulas: Generate tailored formulas to streamline your workflows.
  • VBA Coding: Write and implement VBA code effortlessly.
  • Formula Interpretation: Understand complex formulas with ease.
  • Text Translation: Break language barriers within your spreadsheets.
Enhance your Excel capabilities with AI-powered tools. Download Now and experience efficiency like never before!

Find the maximum / minimum absolute values with User Defined Function

You can also get the maximum or minimum absolute values by creating a user defined function, please do as the following steps:

1. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and paste the following code in the Module window.

Function MaxABS(WorkRng As Range) As Double
'Update 20130907
Dim arr As Variant
arr = WorkRng.Value
For i = 1 To UBound(arr, 1)
    For j = 1 To UBound(arr, 2)
        arr(i, j) = VBA.Abs(arr(i, j))
    Next
Next
MaxABS = Application.WorksheetFunction.Max(arr)
End Function
Function MinABS(WorkRng As Range) As Double
Dim arr As Variant
arr = WorkRng.Value
For i = 1 To UBound(arr, 1)
    For j = 1 To UBound(arr, 2)
        arr(i, j) = VBA.Abs(arr(i, j))
    Next
Next
MinABS = Application.WorksheetFunction.Min(arr)
End Function

3. Then save this code and input this formula =MaxABS(A1:D10) into an empty cell to get the largest absolute value. See screenshot:

enter a formula to find the maximum absolute value

4. And then press Enter key, you will get the largest absolute value. See screenshot:

press Enter key to get the result

You can get the smallest absolute value by applying this formula =MinABS(A1:D10) after pasting the above code.

Note: In the formula, A1:D10 is the range you want to select the largest or smallest value from. You can change it as your need.


Sum the absolute value with Kutools for Excel

In some cases, you have a range of values both including negative and positive values, but you want to sum their absolute values up, how can you quickly get it done? With Kutools for Excel, you can quickly handle it by the Sum absolute values function.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

After installing Kutools for Excel, please do as below:

1. Select a blank cell which will output the summing result, and click Kutools > Formula Helper > Formula Helper. See screenshot:
click Formula Helper feature of kutools

2. In the popping Formulas Helper dialog, select Sum absolute values from Choose a formula section, then click icon select button to select the cells you want to sumup, and then click Ok to close dialog, and then you can see the sumup result. See screenshot:

set options in the dialog box
Sum absolute values by kutools

Sum Absolute Value In A Range

 

Related articles:

How to find the max or min value for each day in an Excel range?

How to find max or min value based on unique values in Excel?

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in