Copy/paste Formulas Only

  • Hi all


    I have setup a forecast model and now find it necessary to update many formulas


    I have set period 1 formulas correctly and would like to copy through periods 2-12. However each period has already been populated with data that need to remain intact in this process


    For example,
    I have formulas to copy at I5 and I9. I6,7,8 should be skipped


    These formulas should be pasted to K5 and K9 respectively, while leaving K6,7,8 intact


    This is of course a simple example, the column contains 15 formulas to be copy/paste


    Thanks much
    -marc

  • Re: Copy/paste Formulas Only


    Thanks Roy -


    That picks up hard coded values and pastes them over the current value
    I need to be able to skip the hard inputs


    Thanks
    -marc

  • Re: Copy/paste Formulas Only


    The I understand you correctly, the blank cells in any given column should have forecast formulas, and the hard values are actuals, and you want to enter the forecast formulas into the blank cells only.


    If that's correct, then select the range of interest in a given column (say, I), and then do Edit | GoTo | Special, Blanks, selecting all the blank cells in the range. Note the first cell selected in the column, and type in the formula with appropriate cell references for that cell. Don't hit Enter, do Cntl Enter. Now all the blank cells have the same formula with adjusted references.


    Then do the same for the other formulas in the other columns.


    If all the formulas are the same (maybe using some combination of mixed and absolute cell references), then you can enter them all at once by selecting the entire area and following the procedure above.

    [SIZE=1]Entia non sunt multiplicanda sine necessitate.[/SIZE]

  • Re: Copy/paste Formulas Only


    Quote from markc

    Thanks Roy -


    That picks up hard coded values and pastes them over the current value
    I need to be able to skip the hard inputs


    Thanks
    -marc


    PasteSpecial > Values copies values


    PasteSpecial > Formlas copies Formulas

  • Re: Copy/paste Formulas Only


    Thanks Roy
    Attached is a sample worksheet
    I added entered 2 values and a formula summing the 2 values
    I copied all 3 cells
    I moved over 1 column
    I used pastespecial formula
    The 2 numbers were pasted as well as the formula
    I need the 2 values to be skipped


    This is a very simple example.
    The actual workbook has over 40 rows with close to 20 formulas in each column and lots of hard inputs interspersed


    Thanks
    -marc

  • Re: Copy/paste Formulas Only


    I don't know if I am reading this right, but I think I can help you get where you are heading. You want to be able to update just cells that are formulas, right? If so, here is a UDF that I wrote to mark them as formula or value. Create a column for use only as a sorter. Then put the formulaOrNot UDF in it referencing the column you want to update. I sort by the column that I use the UDF in. That allows me to group ones that are formulas with ones that are formulas for the copy / paste update.



    It can take either a cell reference or a range reference.


    HTH's

  • Re: Copy/paste Formulas Only


    Thanks Flee-


    After the UDF is I sort aren't my frmlas invalid or must they use absolute reference?


    Thanks
    -marc

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!