Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2007

Tip: Looking for answers? Try searching our database.

Cell Blank if duplicate value in previous cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TonyD - 15 Feb 2007 20:44 GMT
I want to copy date from one worksheet into another with copy past special as
a "value" from two columns. However if the department is the same in cell B1
as A1 I want B1 to be blank. Is there any one of doing this?
Jason - 15 Feb 2007 21:36 GMT
You can do this with formulas and a helper column using:

=IF(B1=A1,"",B1)

Then copy down, highlight all formulas, copy, paste special > values.

Or easier, you can just run a macro:

Sub Delete_ColB()
   Dim i As Integer
   For i = 1 To Cells.SpecialCells(xlCellTypeLastCell).Row
       If Cells(i, 2) = Cells(i, 1) Then Cells(i, 2) = ""
   Next
End Sub

> I want to copy date from one worksheet into another with copy past special as
> a "value" from two columns. However if the department is the same in cell B1
> as A1 I want B1 to be blank. Is there any one of doing this?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.