+ Reply to Thread
Results 1 to 9 of 9

copy paste row that match criteria

  1. #1
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    copy paste row that match criteria

    Hi, attached workbook calculates serial dilutions in a consecutive sequence (1:100 > 1:200, 1:200 > 1:300, 1:300 > 1:400 etc). I'm having problem when I want to reuse a previous concentration to do the dilution (1:100 > 1:200, 1:200 > 1:300, 1:100 > 1:400). The "execute" button is supposed to copy the row with the dilution that matches P24 to the last row. As you can see on the worksheet, the actual number (1000) was copied instead of the face value of 500. On top of that, the entire row that matches criteria gets copied instead of the range A:K. Can someone please help me with this?
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: copy paste row that match criteria

    Hi bq,

    This seems to be OK now:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    Re: copy paste row that match criteria

    Hi xladept, thank you so much for helping. I tried your code and it works to a certain extent. Now it copies only the range that I want, but not the face value of the cell. It still copies 1000 instead of 500. Hope you can help with that

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: copy paste row that match criteria

    Hi bq,

    This will replace the formula with the value:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    Re: copy paste row that match criteria

    Thank you. Another question, Is it possible to keep the formula in the cells while doing so? after the macro copy and paste, the formula in the cell is gone and it is unable to calculate for the rows below

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: copy paste row that match criteria

    I believe that it has to be one or the other

  7. #7
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    Re: copy paste row that match criteria

    hmmm ok, so it's not possible even if you were to write my formulas into vba?

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: copy paste row that match criteria

    We could do it with VBA - but the copy-paste is not a continuation - perhaps in another area?

  9. #9
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    Re: copy paste row that match criteria

    Lets try that! So the formulas code it into column J? and when the copy and paste happens, cells in column I will get the value from column J? is that what you are suggesting?

+ 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: 0
    Last Post: 10-29-2013, 09:38 AM
  2. Match (2 criteria) then copy paste
    By IKZOUHETNIETWETEN in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2013, 09:31 AM
  3. Match (2 criteria) then copy paste
    By IKZOUHETNIETWETEN in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-14-2013, 05:06 AM
  4. Replies: 0
    Last Post: 11-27-2012, 10:32 AM
  5. Copy Rows That Match Variable Criteria And Paste To A New Worksheet
    By BrodyNoochie in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-19-2012, 04:20 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