+ Reply to Thread
Results 1 to 5 of 5

Updating data from one sheet to another

  1. #1
    Registered User
    Join Date
    08-10-2013
    Location
    Gainesville, FL
    MS-Off Ver
    Excel 2010
    Posts
    16

    Updating data from one sheet to another

    So I have 1 row with 8 columns (Date/1st/2nd/3rd/4th/5th/6th/7th) on sheet one that is setup with a web query.
    Sheet2 is a collection of the data within the 8 columns on the row.
    When Sheet1 refreshes data if there is ANY change in the data on sheet1 then it will add another row to sheet2 at the top with the values that are listed (even if some are the same)
    It is a collection of data as it is returned from the web query.
    Sheet1
    08/10/13 12 12 24 54 54 54 54 67

    Sheet2
    08/10/13 12 12 24 54 54 54 54 67

    THEN Sheet1 updates after web query and shows:
    08/14/13 12 12 24 35 54 46 46 67

    Sheet2 would then show:
    08/14/13 12 12 24 35 54 46 46 67

    08/10/13 12 12 24 54 54 54 54 67

    Sheet2 will collect the data in a new row each time the DATE value changes

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Updating data from one sheet to another

    Hi,

    I assume that's a typo and you mean that you have 9 columns
    One way would be to use the Sheet Change event. e.g.

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-10-2013
    Location
    Gainesville, FL
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Updating data from one sheet to another

    I have figured out how to enter the code and it works perfectly. It is returning a wrong value though.
    In sheet1 the date returned from the web query looks like this: "Saturday, August 10, 2013".
    I have a messy function that takes this value and presents it as just "08/10/13" in the first cell of the 9 on the row I am having copied over with the VB code when the date changes.

    When the date changes it copies everything over fine but the date. The Date comes back as #REF!

    The function that converts the date is: =TEXT(MID(A170,FIND(" ",A170)+1,99),"mm/dd/yy")
    Last edited by highrankednoob; 08-12-2013 at 08:24 PM.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Updating data from one sheet to another

    OK,
    It wasn't apparent that you were copying a formula over to sheet 2 and the formula won't know how to handle the ref to the presumably blank cell A171 on sheet 2. In that case use a Paste Special Values. i.e.

    Please Login or Register  to view this content.
    Last edited by Richard Buttrey; 08-12-2013 at 08:32 PM.

  5. #5
    Registered User
    Join Date
    08-10-2013
    Location
    Gainesville, FL
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Updating data from one sheet to another

    Worked like a charm! I am so close to completion it is scary! Thanks to everyone here I can finish my project tonight maybe.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Need a macro to copy dates & data from one sheet to an updating archive sheet
    By pbj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2013, 06:58 PM
  2. [SOLVED] Updating existing data on a sheet
    By etuckram in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-26-2012, 05:09 AM
  3. [SOLVED] Updating a column in one sheet with data from many rows in another sheet
    By PriestJ in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 07-18-2012, 07:17 AM
  4. Replies: 2
    Last Post: 02-27-2012, 10:45 PM
  5. Replies: 1
    Last Post: 08-04-2005, 04:55 AM

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