Get values for latest instance

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,214
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
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 F 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
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,215,358
Messages
6,124,487
Members
449,165
Latest member
ChipDude83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top