+ Reply to Thread
Results 1 to 14 of 14

Shorten the Formula

  1. #1
    Registered User
    Join Date
    07-28-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    80

    Shorten the Formula

    Hi Everyone,


    I want to know if it is possible to shorten my formula in cell B13 to B24 of the attach file.

    My problem is that, if i added more years and more branch, the formula will be too long.

    I know this will possible, but for now i don't have an idea about it.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Shorten the Formula

    Try this in B13 & Drag Down

    =INDEX(INDIRECT("'"&$C$10&"-Year "&$C$9&"'!$B$3:$M$70"),1,MATCH(A13,INDIRECT("'"&$C$10&"-Year "&$C$9&"'!$B$1:$M$1"),0))
    Cheers!
    Deep Dave

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Shorten the Formula

    Try

    C13=INDEX(INDIRECT("'"&$C$10&"-Year "&$C$9&"'!A2:M70"),MATCH($C$8,INDIRECT("'"&$C$10&"-Year "&$C$9&"'!A2:A70"),0),ROWS(C$13:C13)+1) and drag down!!!
    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)

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Shorten the Formula

    Mr. Deep

    Your formula will not give result when account name change.

    Quote Originally Posted by NeedForExcel View Post
    Try this in B13 & Drag Down

    =INDEX(INDIRECT("'"&$C$10&"-Year "&$C$9&"'!$B$3:$M$70"),1,MATCH(A13,INDIRECT("'"&$C$10&"-Year "&$C$9&"'!$B$1:$M$1"),0))
    Last edited by shukla.ankur281190; 08-10-2016 at 02:23 AM. Reason: missing text

  5. #5
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Shorten the Formula

    Quote Originally Posted by shukla.ankur281190 View Post
    Mr. Deep

    Your formula will not give result when account name change.
    True!

    I forgot to add the row part -

    =INDEX(INDIRECT("'"&$C$10&"-Year "&$C$9&"'!$B$3:$M$70"),MATCH($C$8,INDIRECT("'"&$C$10&"-Year "&$C$9&"'!$A$3:$A$70"),0),MATCH(A13,INDIRECT("'"&$C$10&"-Year "&$C$9&"'!$B$1:$M$1"),0))

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Shorten the Formula

    Now this is perfect

  7. #7
    Registered User
    Join Date
    07-28-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Shorten the Formula

    Quote Originally Posted by shukla.ankur281190 View Post
    Try

    C13=INDEX(INDIRECT("'"&$C$10&"-Year "&$C$9&"'!A2:M70"),MATCH($C$8,INDIRECT("'"&$C$10&"-Year "&$C$9&"'!A2:A70"),0),ROWS(C$13:C13)+1) and drag down!!!


    Thank you so much! It works!

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Shorten the Formula

    Glad to help you buddy

  9. #9
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Shorten the Formula

    Hi chergian,

    I think you can shorten your formula to:

    =INDIRECT("'"&$C$10&"-Year "&$C$9&"'!"&ADDRESS(MATCH($C$8,'Branch1-Year 2012'!A:A,0),ROW()-11))

    See this in the column next to your formula.

    Read this site
    http://spreadsheetpro.net/how-to-mak...-spreadsheets/

    Indirect to another sheet formula with Address helper.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  10. #10
    Registered User
    Join Date
    07-28-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Shorten the Formula

    Quote Originally Posted by shukla.ankur281190 View Post
    Now this is perfect
    By the way ankur, is there any way that resulted data will automatically convert to "#.##%" when i select "RATIOS" in the category (cell B7)? Because it was converted to decimal...

  11. #11
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Shorten the Formula

    Sorry I am not getting you as you are not using C7 cell with your formula... can you please explain clear with expected result ???

    Quote Originally Posted by chergian View Post
    By the way ankur, is there any way that resulted data will automatically convert to "#.##%" when i select "RATIOS" in the category (cell B7)? Because it was converted to decimal...

  12. #12
    Registered User
    Join Date
    07-28-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Shorten the Formula

    Quote Originally Posted by shukla.ankur281190 View Post
    Sorry I am not getting you as you are not using C7 cell with your formula... can you please explain clear with expected result ???
    I mean in cell C7 when i select "RATIOS" and in C8 i select Capital Adequacy Ratio (CAR), the result data in cell b13 to b24 is 0.10 instead of 10.00%. Though they are the same, but is there any way in the formula to automatically display 10.00% instead of 0.10?

  13. #13
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Shorten the Formula

    May be try

    =IF($C$7="RATIOS",TEXT(INDEX(INDIRECT("'"&$C$10&"-Year "&$C$9&"'!A2:M70"),MATCH($C$8,INDIRECT("'"&$C$10&"-Year "&$C$9&"'!A2:A70"),0),ROWS(C$13:C13)+1),"##%"),INDEX(INDIRECT("'"&$C$10&"-Year "&$C$9&"'!A2:M70"),MATCH($C$8,INDIRECT("'"&$C$10&"-Year "&$C$9&"'!A2:A70"),0),ROWS(C$13:C13)+1))

  14. #14
    Registered User
    Join Date
    07-28-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Shorten the Formula

    Quote Originally Posted by shukla.ankur281190 View Post
    may be try

    =if($c$7="ratios",text(index(indirect("'"&$c$10&"-year "&$c$9&"'!a2:m70"),match($c$8,indirect("'"&$c$10&"-year "&$c$9&"'!a2:a70"),0),rows(c$13:c13)+1),"##%"),index(indirect("'"&$c$10&"-year "&$c$9&"'!a2:m70"),match($c$8,indirect("'"&$c$10&"-year "&$c$9&"'!a2:a70"),0),rows(c$13:c13)+1))


    your marvelous!!

    Thank you so much!


    * a small modification changing "##%" to "0.00%"
    Last edited by chergian; 08-10-2016 at 03:32 AM.

+ 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. How to Shorten this SUM-AND-IF-OR Formula
    By sinfinite in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 08-14-2015, 06:22 PM
  2. way to shorten this formula?
    By tsiguy96 in forum Excel General
    Replies: 2
    Last Post: 04-03-2012, 08:28 PM
  3. Shorten formula
    By nandomer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2011, 08:23 AM
  4. Shorten This Formula
    By excelforum123 in forum Excel General
    Replies: 3
    Last Post: 10-12-2010, 05:11 AM
  5. can shorten this formula?
    By mingali in forum Excel General
    Replies: 4
    Last Post: 08-12-2009, 10:22 AM
  6. Shorten a Formula
    By Kevin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-29-2006, 10:35 PM
  7. Trying to shorten (or use new) formula
    By Monk in forum Excel General
    Replies: 1
    Last Post: 06-29-2005, 02:05 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