+ Reply to Thread
Results 1 to 3 of 3

macro to compare data sort and delete buys vs sells

  1. #1
    Registered User
    Join Date
    09-05-2013
    Location
    New York, USA
    MS-Off Ver
    Excel 2010
    Posts
    21

    macro to compare data sort and delete buys vs sells

    Hi Guys i have a attached a sheet for which i need to create a macro. I am not sure where to start that why i am listing all the criteria for it. Just as a heads up i am using lines 5 and 11 to elaborate what i am looking for

    -first i want to go through the product type and see if any match in the file that i have attached cells B5 and cells B11 match. ( EUR/USD)
    -second, if D5 and D11 match i want to add cells E5 and E11 if not i want to aggregate them so in this case i would like the final output to look something like this --


    EUR/USD S 6,000,000 USD 1.35237

    in the end i want the final output in a different sheet but using the same format from column A to G.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: macro to compare data sort and delete buys vs sells

    Did you mean rows 2 and 5, not 11? Rows 2 and 5 match.
    You can 2 to 3 columns match for comparison purpose.

  3. #3
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague, Czech rep.
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    138

    Re: macro to compare data sort and delete buys vs sells

    Hi Maulik1k,

    comparing multiple cells is not an issue, just your example kinda lacks the clear statement what you´re trying to achieve (at least to me), from what I´ve seen in your file it seems to me you´re trying to make pairs for forex clearing or whatever market you´re trading on and therefore it seems to me you´ve declared it wrong you are not looking for match in col D but for buy/sell combination (at least that makes sense to me from what I´ve seen within the file) but I have still not made out the result you´ve gave, cause in the case I´m describing you´ll end up with 7Mio remaining on lane 11 not 6 as you´re proposing.

    also you need to set the acceptable difference in rates to make a pair or ignore the match etc.

    Hope to see more clarification in oder to actualy help you out...;-)

    best regards

    Soul

+ 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. Macro to compare with group of data and sort accordingly
    By barath3_s in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-10-2013, 08:39 AM
  2. [SOLVED] Help me Sort, compare and delete
    By kwesi2505 in forum Excel Programming / VBA / Macros
    Replies: 41
    Last Post: 02-12-2013, 02:09 PM
  3. Macro to Match buys and sells
    By pjw23 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2012, 11:11 AM
  4. [SOLVED] seperat.buys from sells.on spreadsheet
    By johnny in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2006, 02:45 PM
  5. Complicated Sort-Compare-Delete Question
    By JohnTNiman - ExcelForums.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2005, 06:05 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