Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mayjay
 
Posts: n/a
Default Comparing data in cells on 2 sheets

I am trying to find a way to compare values in a specific cell on 2 sheets,
and if they are different values replace the value in the cell on sheet 1
with the value in the cell from sheet 2.
  #2   Report Post  
Nick Hodge
 
Posts: n/a
Default

MayJay

To actually replace a value in a cell would require code as you could not
use a function to replace a referenced value. What you could do is use an IF
function in another columns which could then replace the old data, so if you
are comparing say A1 on Sheet1 with A1 on Sheet2 you could use

=IF(A1=Sheet2!A1,A1,Sheet2!A1)

You could then copy this down Column A and anywhere where the data did not
agree you would have the value from Sheet2. This could then be copied and
Editpaste special...+Values over the original data

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"mayjay" wrote in message
...
I am trying to find a way to compare values in a specific cell on 2 sheets,
and if they are different values replace the value in the cell on sheet 1
with the value in the cell from sheet 2.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Excel Data on Multiple Sheets Juana Cafe Excel Worksheet Functions 3 February 28th 05 09:04 PM
extract data from cells Nicole L. Excel Worksheet Functions 2 February 2nd 05 08:54 PM
Summary of data from 20 sheets Allan Skyner Excel Discussion (Misc queries) 7 February 1st 05 04:13 PM
populating sheets based on data from parent sheets seve Excel Discussion (Misc queries) 2 January 15th 05 09:22 PM
Count cells with data shoiley New Users to Excel 5 November 28th 04 07:23 PM


All times are GMT +1. The time now is 03:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"