Excel 2010: Retain changing cell values

John19

New Member
Joined
Dec 20, 2014
Messages
45
Office Version
  1. 2019
Platform
  1. Windows
I have a web query updated every 1 minute and returns live currency changes. It’s displayed in a column containing 127 currencies and against each, the percentage change (+/-) is shown, e.g

GBP/USD +0.15%.
EUR/USD -0.30%

What I need is to display in another column for each currency, a “+” or “-“ sign, only if the last 3 consecutive changes were + or - , if not leave blank.

I’m trying to indicate the direction each currency is going (either + or -).

The main issues is, at every minute updates, figures are refreshed and I can’t find a way for excel to store the last 3 changes (NOT JUST UPDATES BUT ACTUAL CONSECUTIVE CHANGES FOR EACH CURRENCY)

I spent a whole month of evenings reading excel questions online and still could not find anything.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
you need a macro activated by the updating process that takes THIS dollar rate say and goes to another location where last 3 were displayed, delete the oldest, move the other 2 up, and put new dollar rate at bottom, do the trend searching on these numbers and paste the flag back if appropriate...
 
Upvote 0
you need a macro activated by the updating process that takes THIS dollar rate say and goes to another location where last 3 were displayed, delete the oldest, move the other 2 up, and put new dollar rate at bottom, do the trend searching on these numbers and paste the flag back if appropriate...



I'm bit confused, is there a way for me to attach my excel file in this forum? would be easier for you to see what i'm trying to do
 
Upvote 0
The percentage figures are refreshed every minute and so are overwritten - I have to keep a track of the last 3 changes constantly.
 
Upvote 0
you get a new dollar rate, somewhere you have the last 3 rates stored, delete the oldest and add the new rate to the bottom and do your testing for trends there reporting findings to where you want - this is a suggestion for how to tackle it

a1 was 5 then 7 then 9 set G1=5 G2= 7 G3 = 9

now A1 becomes 15
delete G1 allowing G2 and G3 to become G1 and G2
put A1 value into G3

do trend analysis in cell H3

A1 becomes 99
delete G1 allowing G2 and G3 to become G1 and G2
put A1 value into G3

do trend analysis in cell H3
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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