+ Reply to Thread
Results 1 to 6 of 6

Formula without volatile formulation

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Formula without volatile formulation

    Is it possible to achieve the formula neededd in the sample spreadsheet (Excel 2007) without using something like =sumproduct? I have a huge spreadsheet and anything volatile will kill the speed. I'm probably missing something really simple...

    Thanks for any ideas
    Attached Files Attached Files
    Last edited by BRISBANEBOB; 05-12-2010 at 01:46 AM.

  2. #2
    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 without volatile formulation

    In L7 copied down and across, formatted as General afterward:

    =SUMIF($B$6:$I$6, ">="&L$5, $B7:$I7) - SUMIF($B$6:$I$6, ">"&L$6, $B7:$I7)
    _________________
    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!)

  3. #3
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Re: Formula without volatile formulation

    Very clever - and it only took me 30 minutes to work out how it works!

    Thanks - much appreciated and your reputation enhanced.

  4. #4
    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 without volatile formulation

    Just a note, the REAL problem with SUMPRODUCT() comes from evaluating HUGE ranges, and then putting a bunch of those huge-range formulas into a lot of cells.

    With each SUMPRODUCT() only calculating a set # of cells per row, I'm not entirely sure it would be a huge hit to use it. Worth a simple test to see.

    =SUMPRODUCT(--($B$6:$I$6>=L$5),--($B$6:$I$6>L$6), $B7:$I7)
    Last edited by JBeaucaire; 05-12-2010 at 01:28 AM.

  5. #5
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Re: Formula without volatile formulation

    I see what you mean. The first =sumproduct I ran was with a big range and not just the line totals which is what I ended up doing. Still, I prefer your =sumif formula because it's easier for those who don't use =sumproduct if they need to fix something.

    Thanks

  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 without volatile formulation

    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