+ Reply to Thread
Results 1 to 4 of 4

Lock Columns to Scroll and Insert Rows in only One Column

  1. #1
    Registered User
    Join Date
    11-13-2010
    Location
    Google, Earth
    MS-Off Ver
    Excel 2002
    Posts
    3

    Lock Columns to Scroll and Insert Rows in only One Column

    Hello folks,

    Glad I found this site. I look forward to learning and knocking off the rust when it comes to Excel.

    My issue besides being like Sgt. Schultz is I have two date ranges. I'm doing research on OTCBB stocks. One site provides histories with share prices out to the 4th decimal place but does not include dates when no trades occurred.

    Another site, Yahoo Finance, only shows share price to the 1st decimal but includes the information for days when no trades were made.

    I need the 4th decimal place and the zero trade days to get accurate information. I need the zero trade days to get an accurate volume average over different date ranges and I need the 4th decimal because many OTCBB stocks are penny stocks so the most accurate trade price is required.

    I've included a screen shot of the dates. the column on the left are all the dates I need to include. The column on the right are the dates where trades occurred.

    Is there a way to freeze the column on the left so I can scroll both the left and right columns as if they're locked to each other but insert rows into the right column only to copy the dates?

    \1
    Last edited by Jaack; 11-14-2010 at 12:30 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-17-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013, 2016, 2019, 365
    Posts
    294

    Re: Lock Columns to Scroll and Insert Rows in only One Column

    Hi Jaack,

    Welcome to the forum. I think the attached achieves something close to what you want.
    First sheet has a list of all dates; second sheet has a list of prices for dates where trades occurred.
    I've added several columns into the first sheet so you can see what's going on.

    The first uses VLOOKUP to find the relevant date in the list of trades and return the price. If the date's not there, it returns a #N/A error.

    The other two columns use IF and ISERROR to do different things if there's an error - the first puts in a zero; the second puts in the previous price.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    10-17-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013, 2016, 2019, 365
    Posts
    294

    Re: Lock Columns to Scroll and Insert Rows in only One Column

    Re-reading your post, you could modify that last column to say
    "If there's an error, do the same VLOOKUP but on the Yahoo data".

  4. #4
    Registered User
    Join Date
    11-13-2010
    Location
    Google, Earth
    MS-Off Ver
    Excel 2002
    Posts
    3

    Re: Lock Columns to Scroll and Insert Rows in only One Column

    Thanks for your reply. I'll look over the xls.

    Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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