Cell Blank if duplicate value in previous cell
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? |
Cell Blank if duplicate value in previous cell
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 "TonyD" wrote: 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? |
All times are GMT +1. The time now is 09:54 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com