Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Here is what I ended up using in VBA
Dim TheCell As Range For C = 1 To 100 Set TheCell = Cells(C, 2) If IsEmpty(TheCell.Value) Then TheCell.Value = TheCell.Offset(0, -1).Value End If Next C End Sub use a second loop if you want to continue to add the text to addition cells JMB wrote: One other thing, you could enter the first IF statement I suggested in a third column, then copy this third column, click Edit/Paste Special/Values over your original data in column B. Just be sure to back up before trying anything new. " wrote: Not exactly (thanks for the try)... that puts a blank where some test was that I want to keep. It would be more like =IF(A1="yes","yes", DO NOTHING) where do nothing means leave that cell alone! Befo A B 1 example text (blank) 2 BlahBla goodstuff 3 example text (blank) After: A B 1 example text example text 2 BlahBla goodstuff 3 example text example text |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
disabling the copy paste function in a cell | Excel Worksheet Functions | |||
how to count the number of text frequencies and copy to other cell | Excel Worksheet Functions | |||
What worksheet function will formatlessly copy cell contents? | Excel Worksheet Functions | |||
Function syntax to compare cell contents | Excel Worksheet Functions | |||
copy a cell value not its function | Excel Discussion (Misc queries) |