Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have read posts about pasting a formula into a column that already has data
by using, for example: Range("L2:L" & Range("L65536").End(xlUp).Row).FormulaR1C1 = "=SUM(RC[1]:RC[38]" This isn't working for me because my column does not have any data in it (inserting the column is part of my code). All the other columns in the spreadsheet have data, but not this newly inserted column. Can anyone help me with pasting my formula into the column only for the rows that have data? Thank you for any help you can give me, Judy |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe you could just fill the range with a formula that looks blank if there is
no data??? .formular1c1 = "=if(count(RC[1]:RC[38])=0,"""",SUM(RC[1]:RC[38]))" (and watch your )'s--you were missing that last one. Judy Ward wrote: I have read posts about pasting a formula into a column that already has data by using, for example: Range("L2:L" & Range("L65536").End(xlUp).Row).FormulaR1C1 = "=SUM(RC[1]:RC[38]" This isn't working for me because my column does not have any data in it (inserting the column is part of my code). All the other columns in the spreadsheet have data, but not this newly inserted column. Can anyone help me with pasting my formula into the column only for the rows that have data? Thank you for any help you can give me, Judy -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Easy eay to copy / paste a formula in column | Excel Worksheet Functions | |||
Find end of column and paste formula in range | Excel Worksheet Functions | |||
? VBA to insert formula if a column is blank or not ? | Excel Programming | |||
Formula to look up a column and paste results in another column | Excel Worksheet Functions | |||
Same formula in each cell of column; insert rows w/o copying down | Excel Discussion (Misc queries) |