Solved

Finding the second largest number in an array

Posted on 2014-07-24
2
170 Views
Last Modified: 2014-07-24
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
Comment
Question by:ResourcefulDB
2 Comments
 
LVL 90

Expert Comment

by:John Hurst
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 21

Accepted Solution

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

To stay competitive, modern businesses must adapt and stay innovative, and this is increasingly only possible by working with outside talent. Managers and executives have understood the power of outsourcing for quite some time, but traditional clien…
Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now