Calculating a YTD value based on last filled row of data

aziska1

New Member
Joined
Dec 18, 2015
Messages
2
Hello,

I'm attempting to put a dynamic calculation within an workbook that will calculate the year to date change (in percentage or nominal, either or), in the data set that changes as new data is appended to the end of the column. I have found some formulas that will return the value of the last cell but thus far I've been unable to get them to work, and I am unsure how I would need to nest them in a function to produce the calculation wanting.

So, for an example:

In C2, I would like to return the % change from the last row of data, say B137, and B125; ((B137-B125)/B125). But, each month we will append a new row of data to the table and would like it to update accordingly (B137 -> B138 and B125 -> B126). Is this a type of function that can be done using non-VBA tools? Any suggestions are much appreciated.

This is being done in Excel 2013.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Welcome to the MrExcel board!

Is this what you mean?

=(LOOKUP(9.99E+307,B2:B1000)-INDEX(B2:B1000,MATCH(9.99E+307,B2:B1000)-12))/INDEX(B2:B1000,MATCH(9.99E+307,B2:B1000)-12)
 
Upvote 0
Welcome to the MrExcel board!

Is this what you mean?

=(LOOKUP(9.99E+307,B2:B1000)-INDEX(B2:B1000,MATCH(9.99E+307,B2:B1000)-12))/INDEX(B2:B1000,MATCH(9.99E+307,B2:B1000)-12)


This is perfect, Peter. Thank you very much for your help! I will have to go read up on "Index"... :)
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,215,106
Messages
6,123,122
Members
449,096
Latest member
provoking

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