+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Get values for latest instance

  1. #1
    Sandeep999
    Guest

    Question Get values for latest instance

    I am using DDE feeds in my Excel workbook in Sheet1 in cell addresses K1, M1 & S1 which gets constantly updated with the latest values.
    In Sheet2, in column D (starting with cell address D1), I am able to constantly update with the latest value of K1, whenever a change in value takes place in K1. I am also able to record the time (in column T, starting with T1) when the changes occurs in K1.
    At first instance, D1=First value of K1 AND time recorded in T1. When K1 changes (second instance), D1= latest value of K1 (at the second instance) AND time recorded in T1 & D2=previous value of D1 (at first instance) AND T2= previous value of T1 (at first instance). Similarly, when K1 changes again (third instance), D1=latest value of K1 (at third instance) AND time recorded in T1, D2=Second value of D1 (at second instance) AND T2=Second value of T1 (at second instance) & D3=First value of D1 (at first instance) AND T3=First value of T1 (at first instance). And so on the previous value moves down by 1 row & the current value replaces the previous value. I am able to accomplish this using iteration method.
    At the LATEST INSTANCE, I ALSO wants to get values from 2 more cells. I.e. when D1 gets the latest changed value of K1 (at the second instance), I want  in F1 & L1 in Sheet2, to get the PREVAILING values from M1 & S1 respectively (from Sheet1). So, whenever K1 is updated (second instance), F1=latest value of M1 AND L1= latest value of S1. Similarly, when K1 is updated again (third instance), F1= latest value of M1 AND L1= latest value of S1. And so on for the fourth instance, fifth instance ……………………………… should continue.
    How to accomplish this? I.e. what formula should be punched in cells F1 & L1.
    hsandeep

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

    Re: Get values for latest instance

    Sandeep999 - if you opt to cross post the same question on multiple message boards please have the courtesy to disclose all relevant links.

    http://www.mrexcel.com/forum/showthread.php?t=502759

+ 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