+ Reply to Thread
Results 1 to 19 of 19

Average Annual Growth Rate that excludes non numeric values.

Hybrid View

  1. #1
    Registered User
    Join Date
    06-06-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    12

    Average Annual Growth Rate that excludes non numeric values.

    Hi,

    I have rows that contain the past 20 years of figures. The last column (U), contains a formula that calculates the most recent 10 years Compound Annual Growth Rate, excluding any non numeric values.

    I need a formula that can calculate the most recent 10 years Average Annual Growth Rate, excluding any non numeric values. (The most recent figures start on the right hand side). I can do the simple Average Annual Growth Rate when there's no gaps in the figures but I just can't work out the excluding any non numeric values in an over all formula.

    Also, I've never posted a document in a forum before. Please let me know if I've posted safely. I had a look at it and I can't see any personal things but then again, I might be missing something others would see.

    Thanks for any help/advice in advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Average Annual Growth Rate that excludes non numeric values.

    I hadn't a clue what was going on... So I had to dissect your first formula, to understand what you were doing. For what it's worth, it could be simplified a bit (array entered):

    =IFERROR((LOOKUP(10^10,A1:T1)/INDEX(A1:T1,LARGE(IF(A1:T1<>"-",COLUMN(A1:T1)),10)))^(1/(10-1))-1,"")

    now to your problem....

    What formula have you used for annual growth rates ??? (spot the analytical chemist who knows stuff-all about financial functions)...
    Last edited by Glenn Kennedy; 06-08-2017 at 04:09 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    06-06-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    12

    Re: Average Annual Growth Rate that excludes non numeric values.

    Hi Glen,

    yes that new formula tidied things up a bit. It also looks better with a blank cell rather an error return, thanks for that.

    Below is my annual growth rates formula. Oh and here's a link to the page I got it from, http://www.investopedia.com/terms/a/aagr.asp

    =SUM((L1/K1-1)+(M1/L1-1)+(N1/M1-1)+(O1/N1-1)+(P1/O1-1)+(Q1/P1-1)+(R1/Q1-1)+(S1/R1-1)+(T1/S1-1))/9

    My starting point is the 10th year so I can only divide by 9.

    Thanks.
    Last edited by Eamonn100; 06-08-2017 at 07:16 AM.

  4. #4
    Registered User
    Join Date
    06-06-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    12

    Re: Average Annual Growth Rate that excludes non numeric values.

    Sorry Glen, this is the formula for annual growth rates.

    =SUM((L1/K1)-1+(M1/L1)-1+(N1/M1)-1+(O1/N1)-1+(P1/O1)-1+(Q1/P1)-1+(R1/Q1)-1+(S1/R1)-1+(T1/S1)-1)/9

    Edit,

    I think that does the same thing. I'm on a real roll today.

    In fact I know it does the same thing. My calculation page is a mess. One of my N1 references was a N51. I've corected it now. Just use the first formula if you think is better.
    Last edited by Eamonn100; 06-08-2017 at 07:20 AM.

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Average Annual Growth Rate that excludes non numeric values.

    Try

    U1
    Formula: copy to clipboard
    =(INDEX(OFFSET($A1,,MATCH((LOOKUP(10^10,A1:T1)),A1:T1,0)-1,,-10),1,10)/INDEX(OFFSET($A1,,MATCH((LOOKUP(10^10,A1:T1)),A1:T1,0)-1,,-10),1,1))^(1/10)-1
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  6. #6
    Registered User
    Join Date
    06-06-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    12

    Re: Average Annual Growth Rate that excludes non numeric values.

    Quote Originally Posted by shukla.ankur281190 View Post
    Try

    U1
    Formula: copy to clipboard
    =(INDEX(OFFSET($A1,,MATCH((LOOKUP(10^10,A1:T1)),A1:T1,0)-1,,-10),1,10)/INDEX(OFFSET($A1,,MATCH((LOOKUP(10^10,A1:T1)),A1:T1,0)-1,,-10),1,1))^(1/10)-1
    Thanks Shukla,

    I tried that. It works for some but it seems to return #NUM when the most recent value is a minus value.

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Average Annual Growth Rate that excludes non numeric values.

    Quote Originally Posted by Eamonn100 View Post
    Thanks Shukla,

    I tried that. It works for some but it seems to return #NUM when the most recent value is a minus value.
    You can change - in to blank cell as - this is a text and can't work, will give error

    Select the data A1:T15 then control+H put - in find what and replace with should be blank then replace all,

    Do the same above thing but just change find what with a space and replace with blank.

    Hope it should work.

  8. #8
    Registered User
    Join Date
    06-06-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    12

    Re: Average Annual Growth Rate that excludes non numeric values.

    I tried that but it turned minus numbers into positive.

    No worries.

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Average Annual Growth Rate that excludes non numeric values.

    Put your expected result in sample workbook

  10. #10
    Registered User
    Join Date
    06-06-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    12

    Re: Average Annual Growth Rate that excludes non numeric values.

    Shukla it's ok as I now have two formulas for compound growth rates. It's the average annual growth rate, excluding non numeric values, that I'm after now.

  11. #11
    Registered User
    Join Date
    06-06-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    12

    Re: Average Annual Growth Rate that excludes non numeric values.

    Hi Glen,

    is this one too much of a "toughie" in Excel? Do you think it's doable or am I looking for the impossible?

    (Does anyone have Ethan Hunts email address?)

  12. #12
    Registered User
    Join Date
    06-06-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    12

    Re: Average Annual Growth Rate that excludes non numeric values.


  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Average Annual Growth Rate that excludes non numeric values.

    Never mind the blanks for now.... Does this give the expected results for "complete" datasets (it's an array formula). I think it does... but I'm getting boggle-eyed!!

    =SUMPRODUCT((T1:INDEX(1:1,LARGE(COLUMN(B1:T1)*(B1:T1<>""),9)))/(S1:INDEX(1:1,LARGE(COLUMN(A1:S1)*(A1:S1<>""),9)))-{1,1,1,1,1,1,1,1,1})/9

  14. #14
    Registered User
    Join Date
    06-06-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    12

    Re: Average Annual Growth Rate that excludes non numeric values.

    Glen if this is too much to look at now, look at it later. I'll just put it up here now as maybe it will be of help.

    On another site a poster simplified 10 continuous figures with this array formula.

    =AVERAGE(L1:T1/K1:S1-1)

  15. #15
    Registered User
    Join Date
    06-06-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    12

    Re: Average Annual Growth Rate that excludes non numeric values.

    Yes Glen this returns the excepted results for just 10 figures in a row, (with no gaps/"-" symbol in between).

    Tap out for a while don't be killing yourself.

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Average Annual Growth Rate that excludes non numeric values.

    You'll probably need VBA if you want an elegant solution. This assembles the "acceptable" data, and then uses the simple array average formula.All the interim stuff can be hidden or buried on another sheet.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    06-06-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    12

    Re: Average Annual Growth Rate that excludes non numeric values.

    Quote Originally Posted by Glenn Kennedy View Post
    You'll probably need VBA if you want an elegant solution. This assembles the "acceptable" data, and then uses the simple array average formula.All the interim stuff can be hidden or buried on another sheet.
    Ethan Hunt always comes good in the end.

    I'll play about with this over the day but what I've looked at already looks good. A little sideways thinking, great stuff.

    It always takes the Northern Irish man to sort out the "situation".

    I get back to you tomorrow,..........excellent.

  18. #18
    Registered User
    Join Date
    06-06-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    12

    Re: Average Annual Growth Rate that excludes non numeric values.

    Glen I think we can call this solved. Prehapes others would like to get it into all one cell but I'm happy with this.

    One question though, Column A on my actual spreadsheet is column W. Can you add to your formula below so that it can be moved about. At the moment the CAGR column goes blank when I insert other cells. Also now I can use your "Data matching the criteria" section for the CAGR formula so I don't really need the below formula but it would be good to have it right, in case in the future I could use it for other things.

    =IFERROR((LOOKUP(10^10,A2:T2)/INDEX(A2:T2,LARGE(IF(A2:T2<>"-",COLUMN(A2:T2)),10)))^(1/(10-1))-1,"")





    If you are into history/military history the below links are your payment for your help. If you're not into history, give yourself a pat on the back.

    This is part one of a five or six parter.

    https://youtu.be/YFMT_BVBBsA


    This is part one of threes parts.

    https://youtu.be/J7CmBN741Vw


    This is the guys site.

    http://www.dancarlin.com/
    Last edited by Eamonn100; 06-13-2017 at 09:48 AM.

  19. #19
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Average Annual Growth Rate that excludes non numeric values.

    Glad to have helped... you're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 02-02-2020, 01:39 AM
  2. % Increase/decrease using annual compounded annual growth rate
    By maxhecht2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-30-2016, 04:07 PM
  3. Replies: 1
    Last Post: 06-18-2012, 04:08 AM
  4. Average Annual Growth Rate
    By droddis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-08-2008, 01:22 PM
  5. annual growth rate from monthly data
    By kotlon in forum Excel General
    Replies: 5
    Last Post: 06-16-2006, 04:00 PM
  6. [SOLVED] Compound Annual Growth Rate
    By Stash in forum Excel General
    Replies: 2
    Last Post: 03-30-2005, 03:06 PM
  7. [SOLVED] Compound annual growth rate [CAGR]
    By Paul in forum Excel General
    Replies: 2
    Last Post: 03-17-2005, 08:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1