+ Reply to Thread
Results 1 to 4 of 4

Creating an random price order book

  1. #1
    Registered User
    Join Date
    07-25-2019
    Location
    New york
    MS-Off Ver
    2019
    Posts
    2

    Post Creating an random price order book

    Hello,


    I am new to excel and I am trying to create a simple simulation for work. Essentially it's an order book. I have a working model, but I need it to be more robust. I will break apart where my model needs flexibility.



    Here is the how the simulation is supposed to work: Any random even amount of people input random order prices between two bounds which I choose (in this case 400 and 500). Then their orders are randomly placed into the buy side or sell side (should be an equal amount on both sides). Buy side (blue color) is ordered greatest to least and sell side is ordered least to greatest. The cell K22 records the average price between where the two sides meet. I would like that to be tracked some how for each simulation.


    The first column B needs needs to be a random even length. Right now I just have the list dragged down 26 lines.

    Column C, D, and E are my attempt at randomizing and ordering a list. Feel free to change the logic.


    Lastly I have no way of recording what the last simulation produced for results.



    Appreciate the help.
    Attached Files Attached Files

  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: Creating an random price order book

    For now... I'm going to ignore the "Lastly" bit in your original Post. Does this do what you need for the first bits. I'm not 100% sure I followed your explanation!!

    Happy to explain, so far.
    Attached Files Attached Files
    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
    07-25-2019
    Location
    New york
    MS-Off Ver
    2019
    Posts
    2

    Re: Creating an random price order book

    Wow this was beautifully done. Elegant. Jealous.

  4. #4
    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: Creating an random price order book

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. [SOLVED] Copy and paste from random order to alpha-numeric order
    By OthelloDog in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-03-2016, 11:11 PM
  2. How to connect purchase order and sell order with party ledger and daily day book
    By harisjawed86 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2014, 11:36 AM
  3. [SOLVED] Setting a selling price based on cost price and order quantity
    By Steven811 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-11-2014, 08:07 AM
  4. Replies: 4
    Last Post: 08-15-2012, 09:49 AM
  5. Replies: 3
    Last Post: 05-17-2012, 04:54 PM
  6. Question abuot creating a price quote from a long price list
    By glennchung in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-02-2009, 03:49 PM
  7. [SOLVED] Creating a Price Book
    By silverstang_23 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2006, 08:35 PM

Tags for this Thread

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