?
Solved

Finding the second largest number in an array

Posted on 2014-07-24
2
Medium Priority
?
181 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
[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
  • Learn & ask questions
2 Comments
 
LVL 97

Expert Comment

by:Experienced Member
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

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

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

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 …

777 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