Biggest change occurs in which year?

Waimea

Active Member
Joined
Jun 30, 2018
Messages
465
Office Version
  1. 365
Platform
  1. Windows
Hi, I am trying to check a table/range for what the maximum change in percent is and to get the year, ex. 2019, in which the biggest change occurs in.

I am tying to use MAX and MATCH formulas w/o success. In my dataset I have more years and more values but it seems fitting to post 3 values here.

201720182019
0,1960,1990,203

<tbody>
</tbody>

In the above example I would like to get the following output:

The biggest change occurs in year 2019 with 20,3...%.


Also, if possible I would like to rank the years from largest to smallest or vice versa, in my dataset I have more years and more values.

Year Rank
2017 3
2018 2
2019 1
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
In the above example I would like to get the following output:

The biggest change occurs in year 2019 with 20,3...%.
What output would you want for this sample data?


Excel 2016
ABC
1201720182019
20.2030.1990.203
Sample
 
Upvote 0
Thank you for your reply,

In my dataset there are more decimals so the possiblility of the same values ocurring are very small.

However, from your sample data I would like the following output:

"The biggest change occurs in year 2017 with 20.3% and in year 2019 with 20,3%. "

 
Upvote 0
Hi Waimea,

For the columns across I've allowed until J. You can of course change he J2 references to any value through XFD2.

The row 5 formulae are to be copied down as far as necessary.

If two percentages are the same you will see two rows with the same percentage and same ranking but the next below will skip a rank.

ABC
1201720182019
20.1960.1990.203
3
4YearRankValue
5201910.203
6201820.199
7201730.196

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
A5=INDEX($A$1:$J$1,AGGREGATE(15,6,COLUMN($A$2:$J$2)/($A$2:$J$2=C5),COUNTIF($C5:$C$18,C5)))
B5=RANK.EQ(C5,$A$2:$J$2,0)
C5
=AGGREGATE(14,6,$A$2:$J$2,ROWS($A$4:A4))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
See if either of these is any use. If your version of Excel does not have the TEXTJOIN function and you say you have more years than 3, then I don't think this is feasible with ordinary worksheet functions and you would need to move to a vba solution. So, if you don't have TEXTJOIN, do you want a vba suggestion?

Both these formulas are array formulas so should be entered without the {} but confirmed with Ctrl+Shift+Enter, not just Enter. If confirmed correctly, Excel will insert the {}. The formulas can then be copied down.

Excel Workbook
ABCDEF
1201720182019
20.1960.1990.203The biggest change occurs in year 2019 with 20.3%The biggest change occurs in year 2019 with 20.3%
30.0120.50.23The biggest change occurs in year 2018 with 50.0%The biggest change occurs in year 2018 with 50.0%
40.2030.1990.203The biggest change occurs in year 2017 & 2019 with 20.3%The biggest change occurs in year 2017 with 20.3% and in year 2019 with 20.3%
Biggest Change
 
Upvote 0
Thank you Peter_SSs and Toadstool for your replies!

I am going to try both approaches!

I will make a post when I have it working! :)
 
Upvote 0
I would recommend one change to Toadstool's A5 formula. Without the change, if somebody was to subsequently insert any new columns to the left of the sheet, it would then return incorrect results.

=INDEX($A$1:$J$1,AGGREGATE(15,6,(COLUMN($A$2:$J$2)-COLUMN($A2)+1)/($A$2:$J$2=C5),COUNTIF($C5:$C$18,C5)))
 
Upvote 0
Thank you again for your replies, I got both working and I think that I'll use both of your formulas! One for the percentage change and one with the ranking.

However, I get something wrong with my formatting of the percentage.

20122013201420152016201720182019202020212022
17,19%17,85%18,41%18,88%19,27%19,64%19,98%20,33%20,57%20,89%21,21%

<colgroup><col width="64" span="11" style="width:48pt"> </colgroup><tbody>
</tbody>

This sample produces the following text:

"The biggest change occurs in year 2022 with 2.1%"

I want the 2,1% to be 21,21%.

What am I doing wrong?
 
Upvote 0
I got it to work, I didn't change the . to a , in the format formula.

Thank you again for your input and your help!
 
Upvote 0
I got it to work, I didn't change the . to a , in the format formula.

Thank you again for your input and your help!
Yes, I forgot to mention the different decimal indicator. Glad you figured it out anyway. :)
 
Upvote 0

Forum statistics

Threads
1,215,831
Messages
6,127,146
Members
449,364
Latest member
AlienSx

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top