Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If there are no empty rows interspered in the data
=CountA($C$6:$C$20)+6 will give next empty row or if there are embedded blanks =SMALL(IF($C$6:$C$20="",ROW($A$6:$A$20),""),ROW($A 1)) Entered with Ctrl+Shift+Enter HTH "dan" wrote: Is there a simplified vba code for the following routine? Sub test() Dim row, NextRow As Long For row = 6 To 20 If IsEmpty(Cells(row, "C")) Then Cells(1, "C") = row: Exit Sub Next row End Sub And a formula if possible. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If(a=3;1;emptycell)??? | Excel Discussion (Misc queries) |