+ Reply to Thread
Results 1 to 7 of 7

needing help with cell references

  1. #1
    Forum Contributor
    Join Date
    02-05-2013
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel for Mac 2024
    Posts
    142

    needing help with cell references

    The attached worksheet contains two tables - 1 and 2.

    The first table contains a history of the Ex-Dividend Dates - or Ex-Dates - of a dividend stock. The second table is a daily price history of the stock - listing the Stock Trade Date, Closing Price, Open Price, High Price, Low Price, and Volume in reverse chronological order from top to bottom.

    The stock price typically drops by roughly the amount of the dividend on the Ex-Date because the intrinsic value of the company has theoretically decreased by the amount of the dividend paid out. The formula I need in column S produces the number of Stock Market Trading Days it takes for the stock price to recover from the drop in price on the Ex-Date. In column U, I need the number of Days on the Calendar that it takes for the stock price to recover from the drop in price on the Ex-Date. See the Thick Box Borders.

    Doing so requires the following.

    First, the Ex-Date listed in column D must be matched to the same date in column K. The price that the stock must recover from is the Close Price on the day BEFORE the Ex-Date, so that is the Price in column L on the next row below the Ex-Date.

    Next, that price must be compared to the Low Prices in column O to determine the next Low Price that meets or exceeds that price. Once identified, the number of rows must be counted in order to calculate column S, and the difference in the date values in column K must be calculated in order to fill in column U.

    To confirm the formula, compare the values in column S to the manual calculation I did on this one stock in column Z, and likewise compare column U to column AB. See the values marked in red on the price history table.

    Thank so much for your help!
    Attached Files Attached Files
    Last edited by okcsteve; 03-25-2024 at 07:53 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: needing help with cell references

    Try in S7:
    Please Login or Register  to view this content.
    U7:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    02-05-2013
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel for Mac 2024
    Posts
    142

    Re: needing help with cell references

    Solved! Thank you bebo021999!

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: needing help with cell references

    Excel 365/2021 formula
    Column S
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Column U
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-05-2013
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel for Mac 2024
    Posts
    142

    Re: needing help with cell references

    Thank you so much for the second solution!

  6. #6
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: needing help with cell references

    Tks for the feedback, glad to have helped.

  7. #7
    Forum Contributor
    Join Date
    02-05-2013
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel for Mac 2024
    Posts
    142

    Re: needing help with cell references

    DJunqueira - could you please take another look?

    After playing with the formula you provided, I realized some of the answers are incorrect because there was a flaw in the way I posed the question originally. Following, I am reposting the original question with edits in ALL CAPS to clear up the adjustment to the formula I need. I would appreciate it if you could make the adjustment, as this gets beyond my skill level.

    Please refer to the workbook you posted as your solution in your response.

    The first table contains a history of the Ex-Dividend Dates - or Ex-Dates - of a dividend stock. The second table is a daily price history of the stock - listing the Stock Trade Date, Closing Price, Open Price, High Price, Low Price, and Volume in reverse chronological order from top to bottom.

    The stock price typically drops by roughly the amount of the dividend on the Ex-Date because the intrinsic value of the company has theoretically decreased by the amount of the dividend paid out. The formula I need in column S produces the number of Stock Market Trading Days it takes for the stock price to recover from the drop in price on the Ex-Date. In column U, I need the number of Days on the Calendar that it takes for the stock price to recover from the drop in price on the Ex-Date. See the Thick Box Borders.

    Doing so requires the following.

    First, the Ex-Date listed in column D must be matched to the same date in column K. The price that the stock must recover from is the Close Price on the day BEFORE the Ex-Date, so that is the Price in column L on the next row below the Ex-Date.

    Next, that price must be compared to the SUBSEQUENT Low Prices in column O – BEGINNING WITH THE EX-DATE - to determine the next Low Price that meets or exceeds that price. Once identified, the number of rows must be counted in order to calculate column S (AND AS A RESULT, ONE IS THE LOWEST POSSIBLE VALUE), and the difference in the date values in column K must be calculated in order to fill in column U.

    THE PART I DID NOT EXPLAIN WAS THAT THE STOCK CANNOT BE SOLD ON THE SAME DATE IT IS PURCHASED, AND THE FORMULA IS TESTING THE CLOSING PRICE ON THE DAY BEFORE THE EX-DATE ON THE VERY SAME DAY AND GIVING A RESULT OF ZERO. IT DOES NOT WORK THAT WAY. HOPE THIS HELPS.

    To confirm the formula, compare the values in column S to the manual calculation I did on this one stock in column Z, and likewise compare column U to column AB. See the values marked in red on the price history table.

    Thank so much for your help!
    Last edited by okcsteve; 04-04-2024 at 09:46 PM.

+ 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. Needing to enter a formula into a cell
    By Giffy3 in forum Excel General
    Replies: 9
    Last Post: 04-29-2016, 02:33 AM
  2. [SOLVED] How to correct #VALUE! in cell needing to be blank
    By summer2010 in forum Excel General
    Replies: 4
    Last Post: 09-29-2014, 05:33 AM
  3. Needing to lock cell if value (x) is entered
    By RobertJr in forum Excel General
    Replies: 2
    Last Post: 06-20-2014, 03:11 PM
  4. Needing one cell to add to its value via another cells changing value?
    By bakermwd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2013, 07:25 AM
  5. Replies: 0
    Last Post: 02-11-2013, 08:12 AM
  6. Needing to Add Cells Based on the Date in Another Cell
    By Pickle29 in forum Excel General
    Replies: 1
    Last Post: 11-15-2011, 02:02 PM
  7. Replies: 1
    Last Post: 05-24-2006, 01:25 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