+ Reply to Thread
Results 1 to 3 of 3

Finding Matching (ContraSide) Transactions

  1. #1
    carl
    Guest

    Finding Matching (ContraSide) Transactions

    I have my transactions recorded as a buy and sell. An example is below. I am
    trying to find a formula for ColE (TimeDiff Contra) that will look at the
    values in ColC,D,E then find the matching (other side of the transaction) and
    display yhe TimeDiff from that side of the transaction.

    TimeDiff Side Stock Price Size TimeDiff Contra
    0:00:00 Sell OMC 6.2 10 0:01:59
    0:01:59 Buy OMC 6.2 10 0:00:00

    Is this possible ?

    Thank you in advance.


  2. #2
    Biff
    Guest

    Re: Finding Matching (ContraSide) Transactions

    Hi!

    Let's see if I understand........

    If "one side" of a transaction is "sell", then the other "side" must be
    "buy" and vice versa.

    No error checking in this. This assumes that there will always be an
    "opposite side" for each entry. In other words, every "sell" has a
    corresponding "buy" and vice versa.

    Entered as an array using the key combo of CTRL,SHIFT,ENTER:

    =IF(B2="sell",INDEX(A$2:A$20,MATCH(1,(B$2:B$20="buy")*(C$2:C$20=C2)*(D$2:D$20=D2)*(E$2:E$20=E2),0)),INDEX(A$2:A$20,MATCH(1,(B$2:B$20="sell")*(C$2:C$20=C2)*(D$2:D$20=D2)*(E$2:E$20=E2),0)))

    Biff

    "carl" <carl@discussions.microsoft.com> wrote in message
    news:78883009-4B75-4CCD-BFE0-EC8CD6D766E4@microsoft.com...
    >I have my transactions recorded as a buy and sell. An example is below. I
    >am
    > trying to find a formula for ColE (TimeDiff Contra) that will look at the
    > values in ColC,D,E then find the matching (other side of the transaction)
    > and
    > display yhe TimeDiff from that side of the transaction.
    >
    > TimeDiff Side Stock Price Size TimeDiff Contra
    > 0:00:00 Sell OMC 6.2 10 0:01:59
    > 0:01:59 Buy OMC 6.2 10 0:00:00
    >
    > Is this possible ?
    >
    > Thank you in advance.
    >




  3. #3
    Biff
    Guest

    Re: Finding Matching (ContraSide) Transactions

    See reply to your post on 12/10/2005.

    Biff

    "carl" <carl@discussions.microsoft.com> wrote in message
    news:78883009-4B75-4CCD-BFE0-EC8CD6D766E4@microsoft.com...
    >I have my transactions recorded as a buy and sell. An example is below. I
    >am
    > trying to find a formula for ColE (TimeDiff Contra) that will look at the
    > values in ColC,D,E then find the matching (other side of the transaction)
    > and
    > display yhe TimeDiff from that side of the transaction.
    >
    > TimeDiff Side Stock Price Size TimeDiff Contra
    > 0:00:00 Sell OMC 6.2 10 0:01:59
    > 0:01:59 Buy OMC 6.2 10 0:00:00
    >
    > Is this possible ?
    >
    > Thank you in advance.
    >




+ 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