Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default compare 2 cells then copy value if they are different

I want to compare two cells, 1 contains an address, the other may or may not
contain data. If the 2nd cell is blank I want to copy the address from the
1st cell. Is there a formula to do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default compare 2 cells then copy value if they are different

And if the 2nd cell is NOT blank?

Gwen B wrote:
I want to compare two cells, 1 contains an address, the other may or may not
contain data. If the 2nd cell is blank I want to copy the address from the
1st cell. Is there a formula to do this?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default compare 2 cells then copy value if they are different

If, in addition to what you have specified, when the 2nd cell is not blank
you want to use the value from the 2nd cell, then try
=IF(B2="",A2,B2) or
=IF(B2<"",B2,A2)
--
David Biddulph

"Gwen B" <Gwen wrote in message
...
I want to compare two cells, 1 contains an address, the other may or may
not
contain data. If the 2nd cell is blank I want to copy the address from
the
1st cell. Is there a formula to do this?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default compare 2 cells then copy value if they are different

it is not possible without an auxiliar column, assuming the formulas that
David sugest you but using it on column C.

or you must to type a different formula in each cell to preserve original
values on column B.

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Gwen B" escreveu:

I want to compare two cells, 1 contains an address, the other may or may not
contain data. If the 2nd cell is blank I want to copy the address from the
1st cell. Is there a formula to do this?

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
Compare and Copy CC Excel Discussion (Misc queries) 3 May 29th 08 09:36 PM
compare and copy Arain Excel Discussion (Misc queries) 1 September 18th 06 01:04 PM
Compare and copy AJM1949 Excel Discussion (Misc queries) 2 April 6th 06 07:07 AM
How do I compare cells and if FALSE compare to next cell in EXCEL Cindie Excel Worksheet Functions 0 March 24th 06 05:29 PM
Compare and copy Mary Excel Worksheet Functions 2 January 24th 06 04:22 AM


All times are GMT +1. The time now is 08:34 PM.

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

About Us

"It's about Microsoft Excel"