+ Reply to Thread
Results 1 to 3 of 3

SQL grab and Match

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    6

    SQL grab and Match

    OK so it is a bit of a long problem so I will go in steps:

    I have a worksheet which pulls data from an SQL database, every 15 minutes (autorefresh is enabled), now what I want to do is:
    Grab the data from one of the columns (Column C) of Sheet Z, and save it, on another sheet Y (Column D) (I have used VLookup at the moment).
    Then after the next 15 minutes, when Sheet A is refreshed, I want to grab the data from the same column (Column C) of Sheet Z, and put it Sheet Y (Column E). Then I want the sheet Y to Match Column D and Column E, and check if there has been a change made. And I want the process to continue.

    Problem I am facing:
    I have used vlookup to transfer data from Sheet Z to Sheet Y, BUT, as soon as the sheet is refreshed, the data on Sheet Y changes too. HOW SHOULD I STOP THAT?
    TIME ISSUE: I have no idea how to use timeframe (macro enabled or otherwise)

    Help needed!

  2. #2
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: SQL grab and Match

    Hi -

    Show us your codes how you grab the data.

    Regards,
    Event

  3. #3
    Registered User
    Join Date
    12-19-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: SQL grab and Match

    Ok I solved it through a combo of Vlookup, IF Statements and some refreshments :P

+ 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