+ Reply to Thread
Results 1 to 5 of 5

Sum LARGEST UNTIL + build a table from summed amounts, without not summed

  1. #1
    Registered User
    Join Date
    05-07-2015
    Location
    Poland
    MS-Off Ver
    13
    Posts
    3

    Sum LARGEST UNTIL + build a table from summed amounts, without not summed

    Hey guys!

    Would be awesome to receive help here as I am thinking about this for too long.

    Idea is very simple, eg.
    Capture.JPG

    I do have, in this example, 4 different amounts in Table 1 - 2, 3, 5 and 6. I also have a threshold of 10.

    What I do want?

    1) Receive first possible amount being sum above threshold built from largest number - in this case it will be 11, sum of 5 and 6. This can be done by using Ifs and LARGE function but is not very handy with larger number of values.

    2) More importantly, I do want to have in Table 2 only numbers being summed from table 1. So instead of 2 and 3 I will have 0, but 5 and 6 will be moved there.

    Here is this example file:
    example.xlsx

    Any ideas? Thank you from the mountain.

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Sum LARGEST UNTIL + build a table from summed amounts, without not summed

    Why not use this in F3:

    Please Login or Register  to view this content.
    And this in H3, and drag across:

    Please Login or Register  to view this content.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    05-07-2015
    Location
    Poland
    MS-Off Ver
    13
    Posts
    3

    Re: Sum LARGEST UNTIL + build a table from summed amounts, without not summed

    Hey, thanks for reply.

    About point 1 - because it will sum just two largest. If I change amounts it may not work (eg. 1,2,3,6 or 1,2,3,11 - in first case three amounts are needed, in second just one).

    About point 2 - well, this is some interesting way to think forward. However in current format will work only if sum is built from two largest. As said it may be any amount from 1 to 4.

    Above is just example, final version of the file should do something as above for around 30 records.

    Thank you again, hoping for more ideas! .
    Last edited by qqry; 05-07-2015 at 02:30 PM.

  4. #4
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Sum LARGEST UNTIL + build a table from summed amounts, without not summed

    I'm not sure if I'm understanding correctly what you need. Could you try rephrasing your problem?

  5. #5
    Registered User
    Join Date
    05-07-2015
    Location
    Poland
    MS-Off Ver
    13
    Posts
    3

    Re: Sum LARGEST UNTIL + build a table from summed amounts, without not summed

    As above, may it is just worth highlighting:

    I do have a threshold of eg. 10 and four RANDOM numbers each time. So formula may not be "static" - it may not refer to fixed amount or largest numbers.

    As said, sometimes a sum of all four may be needed to exceed threshold, sometimes just one is needed, sometimes two or three. You never know! .

    For amounts up to 3 largest required to be above threshold formula within example's cell F3 do the work (well if I would add one missing parenthesis :P).

    I dunno how I can explain this further.

    Thanks for help.
    Last edited by qqry; 05-07-2015 at 02:59 PM.

+ 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. Pivot Table: Subtotals Equal Average of Summed Data
    By xtinct2 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-28-2015, 12:33 PM
  2. Pivot table multiplying a summed value with a column row
    By dougmorgan in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-24-2014, 03:37 PM
  3. Pivot table calc using average in summed field
    By cereldine in forum Excel General
    Replies: 0
    Last Post: 06-13-2006, 06:55 AM
  4. [SOLVED] Add to Summed Figures
    By acopper57 via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-17-2006, 05:45 PM
  5. Pivot Table Totals Incorrectly Summed
    By Ms MIS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2006, 01:30 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