?
Solved

Calculating percentage drops in a column of numbers using the Small command

Posted on 2013-06-20
5
Medium Priority
?
355 Views
Last Modified: 2013-06-20
I have a column of numbers (column A), a sample of which is below.  What I need a to calculate in a single cell  (B1) is the largest percentage drop from any given value to the lowest subsequent value.  I can easily do this using another column to calculate the percentage drop, but I want to do it within one cell.  I want to use Small so I can cput the second largest drop in cell B2, etc.  Is this possible?

Here's the sample data:

A            B
1000      -5.66%    (from 1060 to 1000)
1025      -5.58%    (from 1165 to 1100)
1060
1000
1036
1084
1165
1100
1180
1240
1225
0
Comment
Question by:pwflexner
[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
5 Comments
 
LVL 8

Expert Comment

by:stevepcguy
ID: 39264231
I've always done it the quick and dirty way, by using the second column for calculation, then hiding it.
0
 
LVL 6

Accepted Solution

by:
Michael earned 1200 total points
ID: 39264381
Put this in B1,
enter as an array formula (so, confirm with ctrl+shift+enter, instead of just with enter)
and drag down:
=SMALL((A$2:A$11/A$1:A$10)-1,ROWS(B$1:B1))

assuming your data runs from A1 to A11, but you can change this in the formula accordingly

Joop
0
 
LVL 81

Expert Comment

by:byundt
ID: 39264383
Array-enter the following formula:
=SMALL((A$2:A$11-A$1:A$10)/A$1:A$10,ROWS(B$1:B1))
PercentChangeQ28163340.xlsx
0
 
LVL 81

Expert Comment

by:byundt
ID: 39264389
Joop,
I like your formula better than mine.

Brad
0
 

Author Closing Comment

by:pwflexner
ID: 39264484
Thanks to all for your responses.JazzyJoop's answer worked best for me.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

718 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