+ Reply to Thread
Results 1 to 8 of 8

Formula Too Long!

  1. #1
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Formula Too Long!

    Hello,
    Can anyone help me too shorten this formula? It's too long for excel. It's on the attached Word doc. Thank you.
    Attached Files Attached Files
    Last edited by artiststevens; 11-14-2010 at 08:33 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    re: Formula Too Long!

    are you sure the () are in the right places?
    shouldnt
    ABS(AVERAGE(B14:D27)-
    be
    ABS(AVERAGE(B14:D27))-
    and so on?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    re: Formula Too Long!

    Thank you for the help. When I enter the additional ")" the answer to the equation changes but I'm making progress. Any further help would be greatly appreciated.

  4. #4
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    re: Formula Too Long!

    I attached what I have so far. I'm trying to combine the calculations in columns "E:H" into one formula and place it in column "H", thus eliminating the need for columns E:H. Column "I" is what I have so far. Any help would be greatly appreciated.
    Attached Files Attached Files

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    re: Formula Too Long!

    Without even analyzing the formulas, if H24 references E24, F24 and G24, you can simply insert the formulas FROM those cells into cell H24 in the spots where the cell references are. This creates a megaformula that only you will probably be able to make sense of, but it is your formulas still operating.

    =(E24-F24)/(0.015*G24)

    ...becomes

    =(((B24+C24+D24)/3)-AVERAGE(E11:E24))/(0.015*((ABS(F24-E24)+ABS(F24-E23)+ABS(F24-E22)+ABS(F24-E21)+ABS(F24-E20)+ABS(F24-E19)+ABS(F24-E18)+ABS(F24-E17)+ABS(F24-E16)+ABS(F24-E15)+ABS(F24-E14)+ABS(F24-E13)+ABS(F24-E12)+ABS(F24-E11))/14))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    re: Formula Too Long!

    This array formula replaces your long version and accomplishes the same math. In H24:

    =(((B24+C24+D24)/3)-AVERAGE(E11:E24))/(0.015*(SUM(ABS(F24-(E11:E24)))/14))

    ...confirmed with CTRL-SHIFT-ENTER to activate the array. The first value should appear properly, then you can copy that cell downward.

  7. #7
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Formula Too Long!

    Thank you very much Jerry! That did the trick I really appreciate you taking the time to help me solve this problem.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula Too Long!

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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