A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

compare 2 cells then copy value if they are different



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2009, 03:08 PM posted to microsoft.public.excel.misc
Gwen B
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  
Old May 15th, 2009, 03:12 PM posted to microsoft.public.excel.misc
Bob I
external usenet poster
 
Posts: 10,698
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  
Old May 15th, 2009, 03:48 PM posted to microsoft.public.excel.misc
David Biddulph
external usenet poster
 
Posts: 8,714
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  
Old May 15th, 2009, 05:44 PM posted to microsoft.public.excel.misc
Marcelo
external usenet poster
 
Posts: 981
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?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:33 AM.


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