Calculate Value Between Two Years

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
922
Office Version
  1. 365
Hi,

I have an input sheet as below:

Book2
DE
3DateSales
414/7/2010100
515/7/201050
618/7/2011200
719/7/2011300
820/7/2011840
921/7/2011200
1022/7/2011100
1125/7/2011600
1217/2/2012250
1321/2/2012210
1422/2/2012240
151/4/2013540
162/4/2013540
173/4/2013540
184/4/2013560
195/4/2013800
Sheet1


In another table, I have the start year and end year and the growth value between these two years. I am trying to calculate the growth of the sales amount between the first date of the start year and the last date of the end year..

Book2
HIJ
3Start YearEnd YearGrowth
420102011#N/A
Sheet1
Cell Formulas
RangeFormula
J4J4=XLOOKUP(I4,D4:D19,E4:E19)/XLOOKUP(H4,D4:D19,E4:E19)-1


My current formula does not seem to work. Since the first sales amount in year 2010 is 100 and the last sales amount in year 2011 is 600, therefore the correct growth value should be 500%. Appreciate all the help.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
How about
Excel Formula:
=XLOOKUP(DATE(I4,12,31),D4:D19,E4:E19,,-1)/XLOOKUP(DATE(H4,1,1),D4:D19,E4:E19,,1)-1
 
Upvote 0
Solution
Hi Fluff,

That worked. Thank you for your valuable time and patience. Have a great day?
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,973
Messages
6,122,534
Members
449,088
Latest member
RandomExceller01

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