+ Reply to Thread
Results 1 to 4 of 4

Calculating Unsorted Data

  1. #1
    Registered User
    Join Date
    09-21-2008
    Location
    Florida
    Posts
    19

    Calculating Unsorted Data

    Hi All-
    Hope I can explain this with little confusion. I want to be able to sum the last x data points of unsorted data. For instance, I have two columns

    Dates and Units. The dates are entered but they are not in the correct order. Then I have the corresponding units for the dates. I don't want to sort the data because of various reasons. I want to be able to take the last 2 (or x) dates entered and sum the the corresponding units.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Try this formula:

    =SUMPRODUCT((A2:A8>=LARGE(A2:A8,2))*(B2:B8))

    You can change the green 2 above to the x number of largest dates in column A.

    HTH

    Jason

  3. #3
    Registered User
    Join Date
    09-21-2008
    Location
    Florida
    Posts
    19
    Hi Jason, I tried it and that works great. I am going to change the green number to a name so I can make it flexible. You are awesome. Thanks!

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Glad it helped. Please mark the thread solved. Thanks.

    Jason

+ 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