+ Reply to Thread
Results 1 to 2 of 2

Using If Statement to Find Relevant Value

  1. #1
    Registered User
    Join Date
    06-28-2007
    Posts
    63

    Using If Statement to Find Relevant Value

    I am making a spread sheet To calculate daily price changes in an investment. The sheet has 2 colums. One colum is for the daily prices, the other colum calculates the daily change in these prices (ie the change in price between the current day and the previous day). I have to make this sheet have 31 rows, for the max 31 days in each month.

    The problem is that the price does not change every day. For example, the price does not change on weekends or holidays. In addition, not every month has 31 days.

    So on the sheet, for example the data would look like

    NAV
    2
    0
    0
    1

    My question is can I make an if statement or use some other method to make a formula that basically says if the number below the current NAV is 0, then keep searching down until you find a non zero number and then use that number. Thanks!
    Link removed by Mod

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I think it would be better if you posted a better example, perhaps an attached sheet, which shows your expected results too.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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