+ Reply to Thread
Results 1 to 6 of 6

Excel - Updating a datasheet with new data list

  1. #1
    Registered User
    Join Date
    08-14-2021
    Location
    Adelaide
    MS-Off Ver
    libre cal
    Posts
    3

    Excel - Updating a datasheet with new data list

    I need some help on my excel for updating a data sheet for updated values.

    I have Sheet1 "Names" and "Remarks" columns which are old data and use as a database and Sheet2 has updated details of "Remarks" column for few "Names". Eg. Sheet 1 has over 100 names and remarks and Sheet2 has updated remarks of 27 Names listed on Sheet1.

    I need a formula to update the Sheet1 "Remarks" column if names from Sheet2 are matching.
    I have tried the formula below, which works but it gives #N/A on Sheet1 for those names which are not available on Sheet2. I want to update only those updated remarks for the matching names on sheet2.

    =INDEX(Sheet2!E$2:F$27,MATCH(Sheet1!A2,Sheet2!E$2:E$27,0),2)

    Sheet1 Column A - Names, Column B - Remarks ~ Old records over 100 entries Sheet2 COlumn E - Names, Column F - Remarks ~ New records 26 entries

    2.If Sheet2 has new name and records, I want them also to be added to the Sheet1.

    Thank you!
    Attached Files Attached Files
    Last edited by INOXI; 08-22-2021 at 08:34 AM. Reason: Attached sample

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,359

    Re: Excel - Updating a datasheet with new data list

    There are instructions at the top of the page explaining how to attach your sample workbook.

  3. #3
    Registered User
    Join Date
    08-14-2021
    Location
    Adelaide
    MS-Off Ver
    libre cal
    Posts
    3

    Re: Excel - Updating a datasheet with new data list

    Quote Originally Posted by JohnTopley View Post
    There are instructions at the top of the page explaining how to attach your sample workbook.
    Thank you, I have uploaded the test file.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,359

    Re: Excel - Updating a datasheet with new data list

    From your posted file, there is no way of identifying NEW names. There are many names on Sheet2 which do not appear on Sheet1 but not all are new (according to your expected output).

    You cannot rely on "NEWREMxx" - as you appear to have done (highest 3 after "NEWREM22" in Sheet1.

    in C2 (Sheet1)

    =IFERROR(VLOOKUP($A2,Sheet2!$E$2:$F$27,2,FALSE),$B2)
    Last edited by JohnTopley; 08-22-2021 at 09:07 AM.

  5. #5
    Registered User
    Join Date
    08-14-2021
    Location
    Adelaide
    MS-Off Ver
    libre cal
    Posts
    3

    Re: Excel - Updating a datasheet with new data list

    Hi JohnTopley!
    Thank you so much for your reply.

    I have made some corrections to the workbook as you have pointed out.

    Basically what I am trying to do is, when I get daily updates, I am going to copy and paste them in Sheet2 so Sheet1 will get automatically updated. Sheet1 works as an updated database.

    For the comparison and testing , I have updated
    1) Sheet1 column C with INDEX($Sheet2.E$2:F$23,MATCH(A2,$Sheet2.E$2:E$23,0),2)
    2) Sheet1 column D with =IFERROR(VLOOKUP($A2,Sheet2!$E$2:$F$27,2,FALSE),$B2) - This formula returns the same Old remarks for every row.

    Analyzing the output of both formulas, I think i need a combination of the both to get what I need, if I ignore the part where I need to add the new entries into the database.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,359

    Re: Excel - Updating a datasheet with new data list

    In Sheet2 in G2

    =COUNTIF(Sheet1!$A$2:$A$19,E2)

    in Sheet1 G4

    =IF(ROWS($1:1)<=COUNTIF($A$2:$A$19,"> "),A2,IFERROR(INDEX(Sheet2!E$2:E$26,AGGREGATE(15,6,(ROW($E$2:$E$30)-1)/(Sheet2!$G$2:$G$26=0),ROWS($1:1)-COUNTIF($A$2:$A$19,"> "))),""))

    Copy across and down

    Need Excel 2010 or later
    Attached Files Attached Files

+ 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] Return record from a datasheet and start again at top of the list - data transposition
    By Davo103 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-27-2017, 05:53 AM
  2. Data sorting in large excel datasheet
    By Mary22 in forum Excel General
    Replies: 5
    Last Post: 07-19-2016, 11:10 AM
  3. VBA for display Various Datasheet data in Masterdatasheet when we choose datasheet name
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-08-2014, 10:21 AM
  4. Updating excel sheet data to sharepoint list
    By swjnmdl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-24-2013, 05:15 AM
  5. [SOLVED] Excel 2010 - Userform - Updating data on same row on datasheet if same unique number
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-14-2013, 08:19 AM
  6. need help to get data from datasheet on to the userform
    By shankar.nstl in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-04-2011, 06:12 AM
  7. Updating a list of data
    By TheMaster in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-02-2008, 05:02 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