Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can I copy a value from a cell and paste it into another cell while adding it to the previous value in that cell | Excel Worksheet Functions | |||
Searching for blank cell and populating based on previous data | Excel Programming | |||
Remove Civic numbers in Street Address, move to previous blank cell | Excel Worksheet Functions | |||
auto populate cell based on previous cell drop down list selectio. | Excel Discussion (Misc queries) | |||
How would I fill blank cells with the data from a previous cell? | Excel Discussion (Misc queries) |