+ Reply to Thread
Results 1 to 3 of 3

Copying results of a formula across

Hybrid View

  1. #1
    Registered User
    Join Date
    11-29-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    25

    Copying results of a formula across

    Hey guys.

    I've been working on a spreadsheet and have gotten stuck
    I am trying to make it so that I can run a macro and it will take what is returned by the formula in column K, and place that number in column B, without screwing up the formula that is there, just copy paste the result.

    Any help appreciated.
    Thanks

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,852

    Re: Copying results of a formula across

    The following line of code will copy the result of a formula in column K to the same row in column B, where r is a variable with the row number.

    Cells(r, "B") = Cells(r, "K").Value
    How do you determine what row you want to perform this on? Or do you want to do the entire column?

    I really don't understand what you mean by "without screwing up the formula that is there, just copy paste the result." Copying from K certainly won't have any effect on the formula there, and if you mean B, you can't paste a value into a cell without replacing any formula that might exist there.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    11-29-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Copying results of a formula across

    I am wanting it to do every row except row 1. So like 2-1000 would be ideal.
    I am not real experienced with the whole macros thing so takes me a while to do the basic stuff.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 04-25-2014, 10:31 AM
  2. [SOLVED] Copying results from a formula
    By zachdking in forum Excel General
    Replies: 4
    Last Post: 10-16-2013, 02:18 AM
  3. copying formula results
    By np1966 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2009, 07:16 AM
  4. Copying info from formula results
    By racer27x in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2008, 10:48 AM
  5. Copying formula results into a new workbook
    By cmpdx in forum Excel General
    Replies: 0
    Last Post: 01-06-2005, 03:30 PM

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