+ Reply to Thread
Results 1 to 6 of 6

getting a complicated sheet to a table

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

    getting a complicated sheet to a table

    Hi all,
    I built a excel file to make some calculations for forex. I started with four prices for each day (open, high, low, close). I am calculating for four price ranges for the next day. That is ok. Another part of the sheet compares results to the predictions. From the four prices that come in everyday I calculate average over 8 weeks, over the last week, and individually for each day of the week. Here it is: TESTBook1.xlsx

    I wanted to make a surface graph, but I have no table. I have no formula to use to make a table because the calculations are all over the sheet. I tried tracking through the cell where my "total" is put out, but it is a very long and involved trip. Even if I started a new sheet just to make a table, I can't get my head around the calculations.

    I have two cells where I put in my adjustment numbers. In the first cell I put in a number from 0.00000 to at most 0.30000. The second cell I put in a number from 0.00000 to at most -0.30000. I then look at a third cell for the highest output. I got tired of typing in numbers, so I put sliders which works better.

    So my table would have 0.00000 to 0.30000 on one axis and 0.00000 to -0.30000 on the other. The formula = ????

    Am I even in the right ballpark for this? Any other ideas?

    Thanks,
    Steve
    Last edited by Baliguy; 08-12-2013 at 06:44 PM. Reason: add file

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: getting a complicated sheet to a table

    Hi and welcome to the forum

    i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-11-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: getting a complicated sheet to a table

    Hi,
    I went back and attached a sample in my original post above. I try to get the highest number at cell Y2. I also look at AH2 thru AH6 for each day separately. For what I am asking, just pick one day, say Monday at AH2 for the highest number. I put sliders at AC21 and AF21 for Monday. Output of the sliders are adjusted at AC14 and AF14 and go to AC2 and AF2. Ok, so I can make a table that would represent AC2 for X and AF2 for Y. The "formula" would be the output of AH2, but I doubt it is that simple and I don't know how to do it that simple way. I don't mind rewriting this, but I'm at a loss at how I would do that. How do you like my "hunt and peck" excel writing? lol
    Thanks all
    Steve

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

    Re: getting a complicated sheet to a table

    AH2 is the sum of profit/loss for Mondays. Calculating profit/loss is simple to understand, but hard to put down. We calculate p/l by comparing Open, High, Low, Close to SellStop, BuyLimit, SellLimit, BuyStop. If High and Low are between SellStop and BuyStop, but outside of BuyLimit and SellLimit the profit is SellLimit minus BuyLimit. If High is above BuyStop and Low is above BuyLimit then profit is SellLimit minus BuyStop which is a loss. If the High only crosses one of the Limits, profit is the Limit minus the Close. There is the other direction as well, "If the Low....". Also it is possible to take a profit by hitting both Limits and then hitting one or both of the Stops. I can't seem to get that into one line of code.

  5. #5
    Registered User
    Join Date
    08-11-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: getting a complicated sheet to a table

    I'm adding VBA to my Excel as I think this will be the only way to populate a table to get what I want.

  6. #6
    Registered User
    Join Date
    08-11-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: getting a complicated sheet to a table

    VBA definately lets me populate a table. My first attempt took 8 or 9 hours to run the macro. I got it down to maybe 45 minutes. Then I started stacking them. lol For now I just look for the highest value and it's x and y coordinates.

+ 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. Copy/Paste Complicated Table Between Sheet
    By dompoma in forum Excel General
    Replies: 4
    Last Post: 04-20-2013, 02:57 PM
  2. [SOLVED] Complicated Pivot table
    By Excel Dumbo in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-04-2013, 12:32 AM
  3. [SOLVED] A complicated Look UP table with multiple conditions
    By Excel Dumbo in forum Excel General
    Replies: 14
    Last Post: 07-16-2012, 10:36 PM
  4. text to table - complicated
    By MaxLake in forum Excel General
    Replies: 5
    Last Post: 07-13-2012, 05:07 PM
  5. Getting values from a table (complicated)
    By wingo033 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2009, 04:58 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