+ Reply to Thread
Results 1 to 7 of 7

using VLOOKUP to find if a value is between two columns of values...

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    Portland, OR
    MS-Off Ver
    Excel 2011
    Posts
    26

    using VLOOKUP to find if a value is between two columns of values...

    I have a table of trading information (Date, Open, High. Low, Close). If the range of prices for today open above yesterday's closing price and never touch this price - this forms a gap. What I would like to do is compare the gap value to two columns of highs and lows to see if this gap has been closed. Ideally I would like to print either "closed" or the gap value in the column adjacent to it.

    I've included a sample workbook. Please let me know if I can provide any additional detail.
    Attached Files Attached Files
    Last edited by yertleturtle; 05-09-2014 at 08:10 AM.

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: using VLOOKUP to find if a value is between two columns of values...

    I don't have enough understanding of the market to understand what you are trying to achieve.

    Please re-post your Sample with some examples of what you want to achieve with a little more explanation.

    Regards,

    David

  3. #3
    Registered User
    Join Date
    06-10-2013
    Location
    Portland, OR
    MS-Off Ver
    Excel 2011
    Posts
    26

    Re: using VLOOKUP to find if a value is between two columns of values...

    Quote Originally Posted by David A Coop View Post
    I don't have enough understanding of the market to understand what you are trying to achieve.

    Please re-post your Sample with some examples of what you want to achieve with a little more explanation.

    Regards,

    David
    Thanks for taking the time David. In the column labeled "Gap" I would like to see if that value falls between the high and low value of any following days. If it falls between the high-low of any following day I would indicate this with the word "closed" otherwise the gap remains open. I have included a bar chart. The high and low are represented by the high to low of the bar. The open is the tick on the left side and the close is the tick on the right. The gap is considered to be the closing price of a day that hasn't been touched by price of any future day. On the included chart not all gaps have been indicated for clarity. I hope this makes sense.
    Attached Images Attached Images

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: using VLOOKUP to find if a value is between two columns of values...

    Good day Yertleturtle.

    Just a tip.
    Don't post pictures other members can't open them and pictures doesn't really help.

    Regards,
    Vladimir
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  5. #5
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: using VLOOKUP to find if a value is between two columns of values...

    Hi yertleturtle,

    The trading bar-chart really doesn't help. Sorry!

    I would like to see your original excel worksheet with the additional columns you wanted added together with the result you want for, say, the first half dozen rows.

    Just type in the result - I should then be able to work out the formula.

    DAC

  6. #6
    Registered User
    Join Date
    07-01-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: using VLOOKUP to find if a value is between two columns of values...

    good day,

    please check attached file,
    hopefully can be used.

    Regards,
    JRD
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-10-2013
    Location
    Portland, OR
    MS-Off Ver
    Excel 2011
    Posts
    26

    Re: using VLOOKUP to find if a value is between two columns of values...

    This looks perfect - thank you JRD!

+ 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] Find count of Unique or Duplicate Values based on Concatenated values in 2 columns
    By bdicarlo1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2014, 12:42 AM
  2. Replies: 1
    Last Post: 04-30-2014, 05:49 PM
  3. Replies: 1
    Last Post: 04-19-2013, 08:30 PM
  4. How to find closest values in multiple columns and return adjacent values.
    By Patrician in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2013, 01:47 PM
  5. [SOLVED] Using range.find to find two specific values in two columns
    By mhrub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2012, 01:02 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