ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   do not copy data to another sheet if exists (https://www.excelbanter.com/excel-worksheet-functions/117224-do-not-copy-data-another-sheet-if-exists.html)

Paul

do not copy data to another sheet if exists
 
I am trying to copy data from sheet 1 to sheet 2. However i want to have only new entries copied. if the data already exists on sheet 2 than do not copy from sheet 1. Select distinct only works on input data (using OBDC input). VB or function format would be OK. Been all over the net for this one with no success. Any ideas appreciated.

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com

Otto Moehrbach

do not copy data to another sheet if exists
 
I would use VBA to loop through all the values in sheet1, check if that
value is in sheet2, and copy if not, nothing if yes. Post back if you need
more. Include some info on the layout of the 2 sheets. HTH Otto
<Paul wrote in message ...
I am trying to copy data from sheet 1 to sheet 2. However i want to have
only new entries copied. if the data already exists on sheet 2 than do not
copy from sheet 1. Select distinct only works on input data (using OBDC
input). VB or function format would be OK. Been all over the net for this
one with no success. Any ideas appreciated.

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com





All times are GMT +1. The time now is 03:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com