Solved

# Finding the second largest number in an array

Posted on 2014-07-24
Medium Priority
181 Views
Hi experts,

Here is a quick question in excel.

We have a numerical array in A1:A100 and want to find out the second largest number. Is there a simple formula to do that?

Assume that we have found out the largest number and put it in B1 = Max(a1:a100), what can we do to use B1 too?

Thanks,
RDB
0
Question by:ResourcefulDB
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 97

Expert Comment

ID: 40218261
I think I would find the largest, put it and its index somewhere, then make a(index)=0 and run max again. The result will be the second largest. I am assuming all positive numbers for this exercise.
0

LVL 23

Accepted Solution

Ejgil Hedegaard earned 2000 total points
ID: 40218268
You find the second largest number using this formula
=LARGE(A1:A100,2)
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Meetings to discuss business process can waste time, and often do .  The meeting's dialog can get confusing when participants have different professional perspectives and backgrounds.  A jointly-developed process picture helps wade through the confu…
The advancement in technology has been a great source of betterment and empowerment for the human race, Nevertheless, this is not to say that technology doesn’t have any problems. We are bombarded with constant distractions, whether as an overload o…
The viewer will learn how to edit text. This includes Font, Spacing, Resizing, Color, and other special text options.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
###### Suggested Courses
Course of the Month13 days, 6 hours left to enroll