+ Reply to Thread
Results 1 to 2 of 2

Retrieve values from multiple columns based on values in multiple columns.

  1. #1
    Forum Contributor
    Join Date
    02-03-2018
    Location
    Buckinghamshire, England
    MS-Off Ver
    2010
    Posts
    130

    Retrieve values from multiple columns based on values in multiple columns.

    Hi i am trying to see if i can do some analysis on a set of values in several columns.

    It is basically a set of records of many buy and sell orders versus time and profit or loss made.

    A file is attached with a few records to help explain.

    In essence we have several columns where one column has record numbers where each col(1) has a time/date plus one of either a buy, sell, or close string in the same row col(2).
    So each record number col(3) can appear more than once but will have a SELL or BUY first and then a CLOSE line. Note some columns are not used in this analysis.

    In the rightmost column against every line with a CLOSE in it, will have a profit or loss.

    I would like to find the time and date of the record numbers that end up being traded (so would have a BUY or SELL when the trade is opened and a CLOSE when it closes along with a value in the rightmost column

    So ultimately i might be able to select the time of day that most profiable trades start, the time of day that most profitable trades finish and so on.

    So trying to express this simply. For each record number col(3) with a CLOSE value col(2) find the associated BUY or SELL date/time value col(1) for both and store profit/loss.

    Then using the date/time the BUY/SELL occured and the date/time of the CLOSE we have the length of time the trade was open and the profit loss made.

    It might be too complex for a function so i can take a look at VBA if required.

    Thanks
    Neil
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,226

    Re: Retrieve values from multiple columns based on values in multiple columns.

    No file attached.

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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. Averaging multiple columns based on row values
    By smd71092 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-13-2016, 08:06 PM
  2. Find Unique Values Based On Multiple Columns
    By aimone111 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-08-2016, 05:22 AM
  3. Return Cell Value based on Values in Multiple Columns
    By Cardan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2015, 10:20 PM
  4. [SOLVED] Copy/Paste multiple columns as values based on another columns criteria
    By Dgp2012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-28-2013, 06:50 AM
  5. [SOLVED] Excel 2007 : Sum values in multiple columns based on date
    By ashbot in forum Excel General
    Replies: 5
    Last Post: 06-05-2012, 10:01 PM
  6. Replies: 5
    Last Post: 04-21-2011, 05:22 PM
  7. Filter based on values of multiple columns
    By learning in forum Excel General
    Replies: 8
    Last Post: 09-29-2009, 03:17 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