+ Reply to Thread
Results 1 to 8 of 8

Comparing of 2 sheets and replace the whole column data

  1. #1
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Madurai
    MS-Off Ver
    2016
    Posts
    239

    Comparing of 2 sheets and replace the whole column data

    Sir, i have attached 2 sheets of excel, here sheet1 is correct file and sheet2 is error file so i want to replace the product type Col. O from sheet1, it means in sheet1 product type column is right and sheet2 product type col. name is error so i want to replace sheet1 data to sheet2 data, here common is borrower id B. I have attached sample file only. i have 3lakhs rows.

    Kindly note: in sheet2, the rows is not available in sheet1 means then in sheet2 the data should be retain the same.
    Attached Files Attached Files
    Last edited by maddyrafi1987; 02-15-2018 at 02:52 AM.

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Comparing of 2 sheets and replace the whole column data

    Formula in sheet2 "L2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Madurai
    MS-Off Ver
    2016
    Posts
    239

    Re: Comparing of 2 sheets and replace the whole column data

    if i apply in sheet2 then i am loosing my data from S.NO 12
    it means suppose in sheet1 the data is not available means then sheet2 the data was remain the same what it having already

    otherwise the formula will apply if only the borrower id same in 2 sheets other wise the formula will not works in the cells, how will i wrote that ?
    Attached Images Attached Images
    Last edited by maddyrafi1987; 02-15-2018 at 03:42 AM.

  4. #4
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Madurai
    MS-Off Ver
    2016
    Posts
    239

    Re: Comparing of 2 sheets and replace the whole column data

    kindly response

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Comparing of 2 sheets and replace the whole column data

    In sheet2 your product type as per criteria "borrower id".
    If "borrower id" not in sheet1 then in sheet2 showing blank. (As per your data record in sheet2)

  6. #6
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Madurai
    MS-Off Ver
    2016
    Posts
    239

    Re: Comparing of 2 sheets and replace the whole column data

    i need if borrower id is not available in sheet1 then in sheet2 the formula was not to work in that cell sheet2, or borrwer id is not there in sheet1 then in sheet2 the data will not change it be same as already having it own.

  7. #7
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Madurai
    MS-Off Ver
    2016
    Posts
    239

    Re: Comparing of 2 sheets and replace the whole column data

    kindly response

  8. #8
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Comparing of 2 sheets and replace the whole column data

    That's impossible. Having a formula will definitely replace the existing content. However, in sheet 2 you can duplicate an additional product type column and at the original product type column set it with the formula provided by avk with if borrower id match not found, then return that content from the duplicate product type column

    Example.

    =IFERROR(INDEX(Sheet1!$L$2:$L$11,MATCH(Sheet2!$B2,Sheet1!$B$2:$B$11,0)),M2) <--- column M is the duplicate product type column. You can hide it after duplicating.
    Last edited by finalazy; 02-17-2018 at 08:43 AM.

+ 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] vlookup macro while comparing two column of differnt sheets
    By waqar1239 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2017, 12:40 AM
  2. Replies: 1
    Last Post: 12-06-2016, 07:22 PM
  3. [SOLVED] Comparing 2 colums and if match replace or provide value from the other column
    By Dalton333 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-16-2014, 12:05 PM
  4. comparing data in two sheets -reg
    By A S Hemanthkumar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-22-2013, 03:27 AM
  5. Comparing Two Sheets Using Key Field Column
    By whitelockben in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2012, 07:36 PM
  6. Need help in comparing two sheets based on a column value and retrieve row values
    By balajiranganathan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-15-2010, 02:49 AM
  7. Need help in comparing data in 2 sheets
    By giantsquid in forum Excel General
    Replies: 2
    Last Post: 08-26-2008, 03:30 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