+ Reply to Thread
Results 1 to 5 of 5

Question about Copy/Paste functions

  1. #1
    Kevin
    Guest

    Question about Copy/Paste functions

    I'm trying to copy and paste contents of a cell to another cell in order to
    complete an entire column (about 300 rows).

    The contents of the cell is a function which acts on data on two separate
    worksheets.

    I want the copy/paste to update some of the arguments of the function
    (arguments that change with each row) but not other parts (arguments from the
    second worksheet that don't change)

    The problem is that everytime I paste the function, it wants to
    automatically update ALL the arguments of the function.

    What I'm trying to copy/paste:

    =SUM(PRODUCT(E1,AH!B2),PRODUCT(F1,AH!B3),PRODUCT(G1,AH!B4),PRODUCT(H1,AH!B5))

    to then make rows like this:

    =SUM(PRODUCT(E1,AH!B2),PRODUCT(F1,AH!B3),PRODUCT(G1,AH!B4),PRODUCT(H1,AH!B5))
    =SUM(PRODUCT(E2,AH!B2),PRODUCT(F2,AH!B3),PRODUCT(G2,AH!B4),PRODUCT(H2,AH!B5))
    =SUM(PRODUCT(E3,AH!B2),PRODUCT(F3,AH!B3),PRODUCT(G3,AH!B4),PRODUCT(H3,AH!B5))
    =SUM(PRODUCT(E4,AH!B2),PRODUCT(F4,AH!B3),PRODUCT(G4,AH!B4),PRODUCT(H4,AH!B5))
    =SUM(PRODUCT(E5,AH!B2),PRODUCT(F5,AH!B3),PRODUCT(G5,AH!B4),PRODUCT(H5,AH!B5))
    .... etc ...

    What I'm getting is:

    =SUM(PRODUCT(E1,AH!B2),PRODUCT(F1,AH!B3),PRODUCT(G1,AH!B4),PRODUCT(H1,AH!B5))
    =SUM(PRODUCT(E2,AH!B2),PRODUCT(F2,AH!B3),PRODUCT(G2,AH!B4),PRODUCT(H2,AH!B5))
    =SUM(PRODUCT(E3,AH!B3),PRODUCT(F3,AH!B4),PRODUCT(G3,AH!B5),PRODUCT(H3,AH!B6))
    =SUM(PRODUCT(E4,AH!B4),PRODUCT(F4,AH!B5),PRODUCT(G4,AH!B6),PRODUCT(H4,AH!B7))
    =SUM(PRODUCT(E5,AH!B5),PRODUCT(F5,AH!B6),PRODUCT(G5,AH!B7),PRODUCT(H5,AH!B8))
    .... etc ...

    As you can see in the first example; I only want to update the first
    argument in each PRODUCT(X,Y)... but what I'm getting is both being updated
    which doesn't work for what I'm doing.

    I've tried copying and pasting cell by cell, copying and pasting multiple
    sells, using Edit->Fill ..., and Paste Special - and I can't seem to figure
    this out other than to manually enter this for every single cell (which is
    prohibitively too labour intensive because what I'm actually trying to do is
    much more complicated than this example)

    If this makes any sense, I'd appreciate your help

    - Thanks! Kevin

  2. #2
    Forum Contributor
    Join Date
    03-23-2006
    Location
    Vancouver
    Posts
    114

    $ signs

    In the formula that you want to copy, insert a dollar sign before the row numbers and/or column letters that you want to remain constant before copying and pasting

  3. #3
    tim m
    Guest

    RE: Question about Copy/Paste functions

    If I catch your drift you want the B2, B3, B5 parts of the formula to remain
    the same while copying down? If so use the absolute formula for those cells
    in the original formula. (As in B2 should be $B$2 in the formula, B3 should
    be $B$3, etc.) When you copy down the the 1st argument will progress down but
    the second arguements will remain $B$2, $B$2 etc

    "Kevin" wrote:

    > I'm trying to copy and paste contents of a cell to another cell in order to
    > complete an entire column (about 300 rows).
    >
    > The contents of the cell is a function which acts on data on two separate
    > worksheets.
    >
    > I want the copy/paste to update some of the arguments of the function
    > (arguments that change with each row) but not other parts (arguments from the
    > second worksheet that don't change)
    >
    > The problem is that everytime I paste the function, it wants to
    > automatically update ALL the arguments of the function.
    >
    > What I'm trying to copy/paste:
    >
    > =SUM(PRODUCT(E1,AH!B2),PRODUCT(F1,AH!B3),PRODUCT(G1,AH!B4),PRODUCT(H1,AH!B5))
    >
    > to then make rows like this:
    >
    > =SUM(PRODUCT(E1,AH!B2),PRODUCT(F1,AH!B3),PRODUCT(G1,AH!B4),PRODUCT(H1,AH!B5))
    > =SUM(PRODUCT(E2,AH!B2),PRODUCT(F2,AH!B3),PRODUCT(G2,AH!B4),PRODUCT(H2,AH!B5))
    > =SUM(PRODUCT(E3,AH!B2),PRODUCT(F3,AH!B3),PRODUCT(G3,AH!B4),PRODUCT(H3,AH!B5))
    > =SUM(PRODUCT(E4,AH!B2),PRODUCT(F4,AH!B3),PRODUCT(G4,AH!B4),PRODUCT(H4,AH!B5))
    > =SUM(PRODUCT(E5,AH!B2),PRODUCT(F5,AH!B3),PRODUCT(G5,AH!B4),PRODUCT(H5,AH!B5))
    > ... etc ...
    >
    > What I'm getting is:
    >
    > =SUM(PRODUCT(E1,AH!B2),PRODUCT(F1,AH!B3),PRODUCT(G1,AH!B4),PRODUCT(H1,AH!B5))
    > =SUM(PRODUCT(E2,AH!B2),PRODUCT(F2,AH!B3),PRODUCT(G2,AH!B4),PRODUCT(H2,AH!B5))
    > =SUM(PRODUCT(E3,AH!B3),PRODUCT(F3,AH!B4),PRODUCT(G3,AH!B5),PRODUCT(H3,AH!B6))
    > =SUM(PRODUCT(E4,AH!B4),PRODUCT(F4,AH!B5),PRODUCT(G4,AH!B6),PRODUCT(H4,AH!B7))
    > =SUM(PRODUCT(E5,AH!B5),PRODUCT(F5,AH!B6),PRODUCT(G5,AH!B7),PRODUCT(H5,AH!B8))
    > ... etc ...
    >
    > As you can see in the first example; I only want to update the first
    > argument in each PRODUCT(X,Y)... but what I'm getting is both being updated
    > which doesn't work for what I'm doing.
    >
    > I've tried copying and pasting cell by cell, copying and pasting multiple
    > sells, using Edit->Fill ..., and Paste Special - and I can't seem to figure
    > this out other than to manually enter this for every single cell (which is
    > prohibitively too labour intensive because what I'm actually trying to do is
    > much more complicated than this example)
    >
    > If this makes any sense, I'd appreciate your help
    >
    > - Thanks! Kevin


  4. #4
    excelent
    Guest

    RE: Question about Copy/Paste functions

    =SUM(PRODUCT(E1,AH!B2),PRODUCT(F1,AH!$B$3),PRODUCT(G1,AH!$B$4),PRODUCT(H1,AH!$B$5))



    "Kevin" skrev:

    > I'm trying to copy and paste contents of a cell to another cell in order to
    > complete an entire column (about 300 rows).
    >
    > The contents of the cell is a function which acts on data on two separate
    > worksheets.
    >
    > I want the copy/paste to update some of the arguments of the function
    > (arguments that change with each row) but not other parts (arguments from the
    > second worksheet that don't change)
    >
    > The problem is that everytime I paste the function, it wants to
    > automatically update ALL the arguments of the function.
    >
    > What I'm trying to copy/paste:
    >
    > =SUM(PRODUCT(E1,AH!B2),PRODUCT(F1,AH!B3),PRODUCT(G1,AH!B4),PRODUCT(H1,AH!B5))
    >
    > to then make rows like this:
    >
    > =SUM(PRODUCT(E1,AH!B2),PRODUCT(F1,AH!B3),PRODUCT(G1,AH!B4),PRODUCT(H1,AH!B5))
    > =SUM(PRODUCT(E2,AH!B2),PRODUCT(F2,AH!B3),PRODUCT(G2,AH!B4),PRODUCT(H2,AH!B5))
    > =SUM(PRODUCT(E3,AH!B2),PRODUCT(F3,AH!B3),PRODUCT(G3,AH!B4),PRODUCT(H3,AH!B5))
    > =SUM(PRODUCT(E4,AH!B2),PRODUCT(F4,AH!B3),PRODUCT(G4,AH!B4),PRODUCT(H4,AH!B5))
    > =SUM(PRODUCT(E5,AH!B2),PRODUCT(F5,AH!B3),PRODUCT(G5,AH!B4),PRODUCT(H5,AH!B5))
    > ... etc ...
    >
    > What I'm getting is:
    >
    > =SUM(PRODUCT(E1,AH!B2),PRODUCT(F1,AH!B3),PRODUCT(G1,AH!B4),PRODUCT(H1,AH!B5))
    > =SUM(PRODUCT(E2,AH!B2),PRODUCT(F2,AH!B3),PRODUCT(G2,AH!B4),PRODUCT(H2,AH!B5))
    > =SUM(PRODUCT(E3,AH!B3),PRODUCT(F3,AH!B4),PRODUCT(G3,AH!B5),PRODUCT(H3,AH!B6))
    > =SUM(PRODUCT(E4,AH!B4),PRODUCT(F4,AH!B5),PRODUCT(G4,AH!B6),PRODUCT(H4,AH!B7))
    > =SUM(PRODUCT(E5,AH!B5),PRODUCT(F5,AH!B6),PRODUCT(G5,AH!B7),PRODUCT(H5,AH!B8))
    > ... etc ...
    >
    > As you can see in the first example; I only want to update the first
    > argument in each PRODUCT(X,Y)... but what I'm getting is both being updated
    > which doesn't work for what I'm doing.
    >
    > I've tried copying and pasting cell by cell, copying and pasting multiple
    > sells, using Edit->Fill ..., and Paste Special - and I can't seem to figure
    > this out other than to manually enter this for every single cell (which is
    > prohibitively too labour intensive because what I'm actually trying to do is
    > much more complicated than this example)
    >
    > If this makes any sense, I'd appreciate your help
    >
    > - Thanks! Kevin


  5. #5
    Kevin
    Guest

    RE: Question about Copy/Paste functions

    ahh perfect - thanks!

    "tim m" wrote:

    > If I catch your drift you want the B2, B3, B5 parts of the formula to remain
    > the same while copying down? If so use the absolute formula for those cells
    > in the original formula. (As in B2 should be $B$2 in the formula, B3 should
    > be $B$3, etc.) When you copy down the the 1st argument will progress down but
    > the second arguements will remain $B$2, $B$2 etc
    >
    > "Kevin" wrote:
    >
    > > I'm trying to copy and paste contents of a cell to another cell in order to
    > > complete an entire column (about 300 rows).
    > >
    > > The contents of the cell is a function which acts on data on two separate
    > > worksheets.
    > >
    > > I want the copy/paste to update some of the arguments of the function
    > > (arguments that change with each row) but not other parts (arguments from the
    > > second worksheet that don't change)
    > >
    > > The problem is that everytime I paste the function, it wants to
    > > automatically update ALL the arguments of the function.
    > >
    > > What I'm trying to copy/paste:
    > >
    > > =SUM(PRODUCT(E1,AH!B2),PRODUCT(F1,AH!B3),PRODUCT(G1,AH!B4),PRODUCT(H1,AH!B5))
    > >
    > > to then make rows like this:
    > >
    > > =SUM(PRODUCT(E1,AH!B2),PRODUCT(F1,AH!B3),PRODUCT(G1,AH!B4),PRODUCT(H1,AH!B5))
    > > =SUM(PRODUCT(E2,AH!B2),PRODUCT(F2,AH!B3),PRODUCT(G2,AH!B4),PRODUCT(H2,AH!B5))
    > > =SUM(PRODUCT(E3,AH!B2),PRODUCT(F3,AH!B3),PRODUCT(G3,AH!B4),PRODUCT(H3,AH!B5))
    > > =SUM(PRODUCT(E4,AH!B2),PRODUCT(F4,AH!B3),PRODUCT(G4,AH!B4),PRODUCT(H4,AH!B5))
    > > =SUM(PRODUCT(E5,AH!B2),PRODUCT(F5,AH!B3),PRODUCT(G5,AH!B4),PRODUCT(H5,AH!B5))
    > > ... etc ...
    > >
    > > What I'm getting is:
    > >
    > > =SUM(PRODUCT(E1,AH!B2),PRODUCT(F1,AH!B3),PRODUCT(G1,AH!B4),PRODUCT(H1,AH!B5))
    > > =SUM(PRODUCT(E2,AH!B2),PRODUCT(F2,AH!B3),PRODUCT(G2,AH!B4),PRODUCT(H2,AH!B5))
    > > =SUM(PRODUCT(E3,AH!B3),PRODUCT(F3,AH!B4),PRODUCT(G3,AH!B5),PRODUCT(H3,AH!B6))
    > > =SUM(PRODUCT(E4,AH!B4),PRODUCT(F4,AH!B5),PRODUCT(G4,AH!B6),PRODUCT(H4,AH!B7))
    > > =SUM(PRODUCT(E5,AH!B5),PRODUCT(F5,AH!B6),PRODUCT(G5,AH!B7),PRODUCT(H5,AH!B8))
    > > ... etc ...
    > >
    > > As you can see in the first example; I only want to update the first
    > > argument in each PRODUCT(X,Y)... but what I'm getting is both being updated
    > > which doesn't work for what I'm doing.
    > >
    > > I've tried copying and pasting cell by cell, copying and pasting multiple
    > > sells, using Edit->Fill ..., and Paste Special - and I can't seem to figure
    > > this out other than to manually enter this for every single cell (which is
    > > prohibitively too labour intensive because what I'm actually trying to do is
    > > much more complicated than this example)
    > >
    > > If this makes any sense, I'd appreciate your help
    > >
    > > - Thanks! Kevin


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1