Excel highlight & SUM top & bottom values using LARGE & SMALL

You are currently viewing Excel highlight & SUM top & bottom values using LARGE & SMALL

In Excel, to highlight top & bottom values and return their sum separately, I will use conditional formatting and use the SUM function, the LARGE function and the SMALL function.

The SUM function sums up the numbers, the LARGE function returns the nth largest numeric value and the SMALL function returns the nth smallest numeric value.

The following dataset contains the number of foods consumed:

Dataset

Now I want to highlight the top values with green color and bottom values with pink color and sum top 5 values and bottom 5 values.

To highlight the values, I create a new rule "Format only top or bottom ranked values" using conditional formatting, like shown below:

Highlighting the top values with green color and bottom values with pink color

After this, I SUM up the top & bottom values using LARGE & SMALL functions in J5 and J6 respectively:

SUMing top and bottom values using LARGE and SMALL

You have successfully accomplished the task! I hope this post helped you.

Download Practice Workbook

Kunal

Hey, I am Kunal Aggarwal, the founder and author of Kunal Excel Tip based in New Delhi, India. I have completed my postgraduation from NIIT Limited, New Delhi in Excel course in 2019. Since then, I have been using and learning Microsoft Excel and started writing posts on the spreadsheet software here since March 2024.

Leave a Reply