+ Reply to Thread
Results 1 to 3 of 3

How to Scan a Sequence of Integers in Different Columns Consecutively and Accurately

  1. #1
    Registered User
    Join Date
    04-23-2015
    Location
    Reno, Nevada
    MS-Off Ver
    2012
    Posts
    2

    How to Scan a Sequence of Integers in Different Columns Consecutively and Accurately

    Hi there everyone,

    I am trying to create an equation that monitors and updates the balance of an investment account. My problem is as follows:

    All I need the equation to do is add the cell containing the profit or loss of each trade taken to the cell containing the current account balance.

    However, I want this done in the order the trades are being taken, which is where things get a little awry.

    We are trading two different financial entities, and have two different "sections" on the same sheet displaying the profits/losses incurred for each trade for each entity. (I will add pictures below). Thus, since we would like to maintain an accurate depiction of our running account balance, we need each trade to be counted sequentially, or by the order in which they were taken. Then, once the equation detects the following number in the sequence of trades, it will select the cell containing the profit/loss incurred pertaining to that trade and add it to the cell horizontal to it containing the account balance. It will then move on to the next number in the order of trades, and add the profit/loss cell to the account balance, and so on and so forth. Normally I would be able to do this but the difficulty is that the sequence of trades are in two different columns, and thus cannot just be counted vertically.

    See picture below and specific description underneath.


    Attachment 391024

    Cell Y2, our Current Account Balance, is where I would like the equation.

    I need to count both "Trade Sequence" Columns, beginning at Column C and Column O in numerical order, starting with number 1 in C3, then number 2 in C4, number 3 in C5, number 4 in O3, number 5 in O4, and so on. (In the photo I have only gone to 20 but there are over 400 as of right now).

    When the function identifies that it is the first trade in the sequence, it will select the cell containing the resulting profit/loss for that trade, and add it to the proportionate "Current Account Balance" cell. For example, when it begins, it should see that C3 contains the first number, 1, and will thus add K3 to Y3. Then, it will see number 2 in C4, and add K4 to Y4. Then it will see number 3 in C5 and add K5 to Y5. The next number is where it gets complicated.

    It will see that number 4 in the sequence is in O3, and then add W3 to Y6.

    What this means is that the sequence is not necessarily in vertical order, but the account balance is due to the fact that we would like to be able to see the new account balance after each trade that has been taken. Do not mind the numbers in the columns in the pictures; a few are blank because the trades resulted in neither a profit nor a loss;the concept is what is important.

    Is this possible?????

    Thank you guys so much for any info/help you can provide!!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How to Scan a Sequence of Integers in Different Columns Consecutively and Accurately

    Actually , we (certinly me...) can't see anything. Try again!! In any event, please attach an Excel sheet. If your layout is complicated, no-one is going to want to have to retype your data before even getting to the starting line.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    04-23-2015
    Location
    Reno, Nevada
    MS-Off Ver
    2012
    Posts
    2

    Re: How to Scan a Sequence of Integers in Different Columns Consecutively and Accurately

    Thanks! I'll post it again with an actual spreadsheet attached.

+ 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: 6
    Last Post: 06-17-2014, 09:19 AM
  2. Replies: 3
    Last Post: 08-30-2013, 04:57 PM
  3. Replies: 14
    Last Post: 05-10-2013, 03:27 PM
  4. [SOLVED] Scan a series of rows in sequence and identify cell where value falls below previous max?
    By hadamhiram in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2013, 03:31 AM
  5. scan for numerical sequence?
    By Ltat42a in forum Excel General
    Replies: 2
    Last Post: 09-25-2007, 04:12 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