Hi all
The below formula works but i need this to work up to the last row in K when i drag the formula down to autofill the formula works for 1st 10 cells then i receive a #VALUE !
i can put this in to array but it the locks all cells to k3 and give me the incorrect calculation.
this is throught VBA
The below formula works but i need this to work up to the last row in K when i drag the formula down to autofill the formula works for 1st 10 cells then i receive a #VALUE !
i can put this in to array but it the locks all cells to k3 and give me the incorrect calculation.
this is throught VBA
Code:
Lastrow = Cells(Rows.Count, "K").End(xlUp).Row
Range("L3:L" & Lastrow).Select
Selection.FormulaArray = "=IF(OR(RC[-1]=Hour),TEXT(Post,""dd/mm/yyyy"")&TEXT(Rc[-1],"" ""&""hh:mm""),TEXT(Pre,""dd/mm/yyyy"")&TEXT(Rc[-1],"" ""&""hh:mm""))"
Lastrow = Cells(Rows.Count, "j").End(xlUp).Row[code]
Any Help will be Great
Thanks