+ Reply to Thread
Results 1 to 4 of 4

multiple sort function and combine cell

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    new York
    MS-Off Ver
    Excel 2007
    Posts
    5

    Question multiple sort function and combine cell

    Hi,

    Am trying to do a macro to sort thing data that we have but its above my skills so if anyone can help.

    I have attached a spreadsheet.
    In Sheet1 is what we have. then detail and average is what we should obtain at the end.

    in detail sheet:
    Column A (take from Sheet1/Order OrderSide column with 1=Buy and 2= Sell)
    then the others cells are sorted
    1- by exchange (replacing code in Sheet1/columnK by the code table in Ex Code sheet
    2- by strike in column F
    3 -by Option Type (Call/Put)
    4- by price

    column E,F and G are a split of Column F in Sheet1.


    in average sheet:
    we need an average (price) of the detail in Sheet1. so we need 1 line per exchange per structure
    line 2 for example is equal to the sum of size in Sheet1/Quantity per structure and column H is the average price (sum Column G divided by Sum Column D) per structure

    let me know if you can help and if you need more information/clarification

    really appreciate
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-11-2013
    Location
    new York
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: multiple sort function and combine cell

    I really need some advices on that one. Is there anyone you can help me out ?


  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: multiple sort function and combine cell

    For the sorting part of "detail" sheet, you want the sorting to be done by the sort command in excel right?

    For the 2nd part - "Average" sheet, which columns denotes the change in structure, so we know which cells should be combined for averaging?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    02-11-2013
    Location
    new York
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: multiple sort function and combine cell

    to avoid confusion, going forward we will input on sheet1 only 1 ticker (or structure if you prefer so only CVX or LNC on this case...keeping in mind there is about 200 other names we use) then the detail and average will be based on that

    for the detail sheet. it must be sorted by strike, then option type then price if possible (descending is preferable) the idea is to have only 1 line if strike/options type/price
    are equals. we need to do that for each "comment" type (CBOE,ISE, etc...)

    for the average sheet, there is no structure issue as there will be only one underlying security code or ticker. as its an average we need to get one line for each strike/options type. same we need to do that for each "comment" type (CBOE,ISE, etc...)

    thanks very much

+ 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. Replies: 1
    Last Post: 08-05-2013, 01:52 PM
  2. [SOLVED] how to combine multiple conditions with search functions and macro the function
    By melvyndb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2012, 05:45 AM
  3. how to combine multiple conditions with search functions and macro the function
    By melvyndb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2012, 07:11 AM
  4. HLookup, IF statement, multiple sort, somehow combine all of these
    By Gita at CASTLE in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-02-2006, 02:50 PM
  5. Replies: 1
    Last Post: 08-25-2005, 03:43 AM

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