+ Reply to Thread
Results 1 to 1 of 1

Refreshing only certain cells of a web query based on a condition

  1. #1
    Registered User
    Join Date
    10-15-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Post Refreshing only certain cells of a web query based on a condition

    I'm trying to create a model in excel for trading foreign currency, but I have come across a difficulty when trying to get the model to make a decision about when to refresh certain data.

    I have a single web query with the only cell of concern bering the changing price cell. I am importing the $US data from a page from finance.yahoo.com, which has a table with a refreshing price for the currency in terms of the Australian Dollar.

    I wish to be able to record somewhere in my spreadsheet the lowest value of the price - but only for a period of time. I then wish to make this process reset after I make a purchase - (this way I don't get stuck with a cell which has a value that I can't use again when I start anew the buying formula i've written).

    My trading strategy is to 'BUY' once the current price is a certain % above the 'LOW'.

    Hence, is there a way for VBA code to do the following? =IF(('RefreshedPrice'>'PreviousPrice')*('Investment'>0), 'PreviousPrice','RefreshedPrice')

    I thought maybe a mixture of using a formula that copies new data to a different place, and then only allow this data to be copied to the second place if it's smaller than what's already there? Hence some sought of IF function?

    Thanks so much in advance if you have any ideas or contributions!
    Last edited by sjfit4; 10-15-2010 at 07:31 AM. Reason: Rule breach

+ 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