Results 1 to 21 of 21

Summing up numbers, based on certain criteria.

Threaded View

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Summing up numbers, based on certain criteria.

    Hello everyone. I have the following problem to solve. I have two columns in an Excel worksheet. Column H = Security ID, and a Column L = MTM. Security ID is an ID for trades, with MTM representing their (its) respective market-to-market value. Now here is the kicker, the Security ID is NOT unique and I would like to sum up the MTM values for each instance of that Security ID, and then determine if that sum is less than 10,000, in which case I would want to place the word "Terminated", into Column Y within the respective cells corresponding to that specific Security ID. Please see the example below,

    Column H = Security ID
    0332JPYSTR58
    0332JPYSTR58
    0332JPYSTR58

    Column L = MTM
    -12,304,706.94
    12,306,942.01
    0

    Column Y = Terminated
    Terminated
    Terminated
    Terminated


    Note that -12,304,706.94 + 12,306,942.01 + 0 = 2,235 which is less than 10,000, consequently the word "Terminated" has been placed into column Y corresponding to each instance of the Security ID, in this example 0332JPYSTR58.

    I am uncertain where to begin coding. A For Each statement I am certain, but thats about it. Any help would be greatly appreciated.
    Last edited by AnthonyWB; 06-03-2010 at 11:39 AM.

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