+ Reply to Thread
Results 1 to 2 of 2

complex IF condition

  1. #1
    Registered User
    Join Date
    11-03-2009
    Location
    Israel
    MS-Off Ver
    Excel 2003
    Posts
    1

    Unhappy complex IF condition

    Hi
    I have a clock running on the background with hours and minuts and i have columns that each column is for a specific time - 10:45, 11:00, 11:45...etc
    each one of the columns has about 10 rows for each stock quote.
    i want each cell to check if the time at the head of the column is the time at the running quote then to take a the number from another cell and if its not than not to do anything.
    in each cell currently i have this formula: =IF(AND(LEFT(P$7,2)=$C$2,RIGHT(P$7,2)=$B$2),$C13,0)
    its basically checking the time for the column with the current time and put the value of C13 for this case in the cell. the PROBLEM is that one the time elapsed, it becomes 0 and does not save the value from before.
    how do I get over this???

    thanks
    Danny

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: complex IF condition

    If you wish to do this via Formulae you will need to Enable Iteration so as to permit Circular References.

    it's not clear in which cell the formula provided resides (nor the data type of each cell referenced) but in essence the cell containing the formula must first reference itself to see if it is 0 or not, if not set value to itself else see if should be C13.

    For sake of demo let's assume the cell in question is P8, then with Iteration Enabled and Max Iteration of 1:

    =IF(P8,P8,IF(AND(LEFT(P$7,2)=$C$2&"",RIGHT(P$7,2)=$B$2&""),$C$13,0))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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