+ Reply to Thread
Results 1 to 3 of 3

Shortening a formula with multiple ranges.

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Shortening a formula with multiple ranges.

    Hello all,

    I use the following formula for doing some calculations. now I need to extent it to G59:M59.
    This will make the formula monstrous.

    Is there a better way to do this?

    Please Login or Register  to view this content.

    The whole formula is:
    Please Login or Register  to view this content.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Shortening a formula with multiple ranges.

    Hello Jonathan78,

    You can replace your current long formula with this version - should give you the same result

    =52/SUBTOTAL(104, C22:C42)*SUMPRODUCT(G49:M52*$AF$6:$AF$9)/52/J20

    so assuming you want to extend that to row 59 (and presumably the AF range would extend to AF16?) then try

    =52/SUBTOTAL(104, C22:C42)*SUMPRODUCT(G49:M59*$AF$6:$AF$16)/52/J20

    Note: you could also cancel out the 2 52s and use this version...

    =1/SUBTOTAL(104, C22:C42)*SUMPRODUCT(G49:M59*$AF$6:$AF$16)/J20
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Shortening a formula with multiple ranges.

    Thanks it works great!

+ 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