+ Reply to Thread
Results 1 to 5 of 5

How to reconnect data based on daily shifting/updated cell values in Excel?

  1. #1
    Registered User
    Join Date
    01-19-2023
    Location
    Dayton, Ohio
    MS-Off Ver
    MS Office
    Posts
    3

    Question How to reconnect data based on daily shifting/updated cell values in Excel?

    I am currently importing data into columns A-M that updates the data from the previous day. I currently have recorded a macro that deletes, sorts, and moves the data from the exported workbook (the new data) to my existing workbook (the old data). As a result, Columns A-M are updated, however, columns N-W remain the same. (Column N-W are additional data and progress updates).

    The problem is, even though everything is working as it is supposed to, the updated data in columns A-M will sometimes add or remove rows based off the new information being imported. Additionally, some of the names of the documents are in multiple rows which causes some of the rows to swap with one another because I am sorting the excel by the document name (the other columns are all numbers essentially). This causes data in some of the N-W columns to be mismatched with their data in columns A-M.

    Is there any way to automatically move the rows in column N-W so that they go back to their previous corresponding rows from columns A-M after updating the data in columns A-M.

  2. #2
    Forum Contributor
    Join Date
    05-09-2021
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    148

    Re: How to reconnect data based on daily shifting/updated cell values in Excel?

    Hi there,

    Mi experience is that working with tables makes this whole sorting issue better. Then you can reference columns inside the same row and the references does not get screwed up.

    The reference should then look somthing like this.

    Sk?rmbild 2023-01-19 231941.png

  3. #3
    Registered User
    Join Date
    01-19-2023
    Location
    Dayton, Ohio
    MS-Off Ver
    MS Office
    Posts
    3

    Re: How to reconnect data based on daily shifting/updated cell values in Excel?

    Would that work with the example I attached? Rows 2-9 are old data, and rows 13-20 are the new updated/imported data. The image just shows 2 documents that have flipped positions in the A-M columns document 2 and document 5), due to the data data I'm importing only covering those columns. What way could you sort via table to make it so that the N-W columns land on the correct Column A (the document number) if the document numbers are labeled the same? Additionally, sometimes new rows will be created or deleted in the A-M columns to accommodate new or completed documents. So, the rows won't even line up.

    Attachment 814190
    Attached Images Attached Images
    Last edited by smetzger7; 01-20-2023 at 09:48 AM. Reason: updated attachment

  4. #4
    Registered User
    Join Date
    01-19-2023
    Location
    Dayton, Ohio
    MS-Off Ver
    MS Office
    Posts
    3

    Re: How to reconnect data based on daily shifting/updated cell values in Excel?

    On Worksheet (2) input
    =XLOOKUP('Worksheet (1)'!$X2&'Worksheet (1)'!$E2, 'Worksheet (1)'!$A:$A&'Worksheet (1)'!$E:$E, 'Worksheet (1)'!O:O)

    So, I partially solved my issue. Using XLOOKUP and multiple criteria to essentially recreate a separate worksheet and delete the previous one. I created a static DocNum in Column X and used the lookup array on 2 different identifiers. My only issue is that some documents just don't have any differentiating static identifiers to provide accurate results in worksheet 2. They have different currency values, but I can't rely on those not to change during the import/update stage.

  5. #5
    Forum Contributor
    Join Date
    05-09-2021
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    148

    Re: How to reconnect data based on daily shifting/updated cell values in Excel?

    Are the values in N-W lookups based on the values in A-M? or are they static values in the file.

    If static, then the problem seem to be the update macro, you need then to better be able to identify the rows to update. Also if yes, the sorting should not be a problem.

    If lookups, then converting the dataset to table and then update the lookups so that they have in-table references (@) the way I showed above....

    I was not able to open your file, try attaching it again so I can have a closer look...

+ 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. Shifting cell values based on date
    By GoesATG in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2016, 12:53 AM
  2. Shifting value to another cell before the last cell is updated
    By danpowerr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2014, 05:17 AM
  3. Deleting a row of data based on a single cell deletion, and shifting remaining cell up.
    By Dewydecimalpatriot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2014, 04:05 PM
  4. [SOLVED] Shifting data based on values
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-03-2014, 06:24 PM
  5. Replies: 7
    Last Post: 08-10-2013, 06:44 PM
  6. Adding daily updated values to list
    By hyattj in forum Excel General
    Replies: 4
    Last Post: 07-23-2013, 10:24 AM
  7. How to link a daily updated table data on website to Excel?
    By heatwave in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-08-2005, 08:50 AM

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