Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
here is my case: IF CELL value is empty in the area from cells (3,1) to cells (defined below,6) then I want excel to add the cell value from cell above. This should continue to and excluding when cells (x,7) has the value "===============" Is it possible to solve? Sverre |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub FillCells()
Dim rng as Range, ar as Range, cell as Range Set rng = columns(1).SpecialCells(xlBlanks) for each ar in rng for each cell in ar if cell.row = 3 then if cell.offset(0,6) < "===============" then cell.Resize(1,6).Filldown end if end if next Next end Sub Obviously, test this on a copy of your data. -- Regards, Tom Ogilvy "sverre" wrote: Hi here is my case: IF CELL value is empty in the area from cells (3,1) to cells (defined below,6) then I want excel to add the cell value from cell above. This should continue to and excluding when cells (x,7) has the value "===============" Is it possible to solve? Sverre |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
find first empty cell in column and start transpose next row in that cell | Excel Discussion (Misc queries) | |||
format a cell with a formula so an empty reference cell shows blan | Excel Discussion (Misc queries) | |||
Conditional formatting - on an empty cell condition in _another_ cell? | Excel Programming | |||
VBA to copy to empty cell directly below a cell when analogous cells in different column have same value as each other? | Excel Programming | |||
VBA to copy to empty cell directly below a cell when analogous cells in different column have same value as each other? | Excel Programming |