+ Reply to Thread
Results 1 to 11 of 11

Copy certain cells in a row from one sheet to another if the value is less than

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Post Copy certain cells in a row from one sheet to another if the value is less than

    Hi guys,

    Please help.. VBA Codes..

    I need codes to Copy Cells from column A, B, E, F and G in "Rent sheet" and paste it in "summary sheet" starting in
    cell "B18" if the value of column G in "Rent sheet" is less than in the "summary sheet" cell "C11"
    c11 is a date format cell that if the value is less than, it means expired.

    Rent Sheet

    A
    B
    C
    D
    E
    F
    G
    Unit
    Tenant
    Type
    Rent
    Area
    Begin
    End
    1 Apple Retail 500 120 04/01/2011 08/01/2013
    2 Co A Office 600 150 01/01/2012 07/01/2014
    3 Co B Office 700 160 01/01/2010 01/01/2013


    Summary Sheet
    unit tenant area begin end



    Thank you very much...
    Last edited by sunjam; 04-09-2014 at 10:31 PM.

  2. #2
    Registered User
    Join Date
    02-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Copy certain cells in a row from one sheet to another if the value is less than

    Try this

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy certain cells in a row from one sheet to another if the value is less than

    Another:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Copy certain cells in a row from one sheet to another if the value is less than

    Hi John H. Davis,

    Apologies for my improvised table but the real table goes like this below.

    A
    E
    F
    G
    N
    AC
    AF
    Unit
    Tenant
    Type
    Rent
    Area
    Begin
    End
    1 Apple Retail 500 120 04/01/2011 08/01/2013
    2 Co A Office 600 150 01/01/2012 07/01/2014
    3 Co B Office 700 160 01/01/2010 01/01/2013


    I only need the data from Column A, E, N, AC and AF.

    Could you please give a revised VBA codes for this one.

    Big Thanks!!!

  5. #5
    Registered User
    Join Date
    02-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Copy certain cells in a row from one sheet to another if the value is less than

    If you want to use a different row to copy or write the data just change the letter in inverted commas

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy certain cells in a row from one sheet to another if the value is less than

    Try:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Copy certain cells in a row from one sheet to another if the value is less than

    Thanks John H. Davis!

    I just change the Range A18 to the destination cellS

    Please Login or Register  to view this content.

    to this


    Please Login or Register  to view this content.

    Thank you Very much!!!

  8. #8
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Copy certain cells in a row from one sheet to another if the value is less than

    Hello John!

    One last help!

    It also captured the blank cells in Range AF.

    How to disregard the blank cells?

    Very Big Thanks!

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy certain cells in a row from one sheet to another if the value is less than

    Try:

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Copy certain cells in a row from one sheet to another if the value is less than

    Thanks John!

    This is Big Help!

    Big Thanks!

  11. #11
    Registered User
    Join Date
    02-19-2013
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Copy certain cells in a row from one sheet to another if the value is less than

    Hi Ihmha!

    I used your codes and it is faster when it runs.

    The only problem is, its also getting the blank cells. Could you please edit the below codes to skip blank cells.

    Please Login or Register  to view this content.
    Thank you very much!
    Last edited by sunjam; 04-15-2014 at 11:32 PM.

  12. #12
    Registered User
    Join Date
    02-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Copy certain cells in a row from one sheet to another if the value is less than

    Sorry for the late response.

    It needs to check that there is a value in the cell

    Please Login or Register  to view this content.

+ 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. Copy diff cells of a sheet & paste in a NEW row below previously filld rows of other sheet
    By shubhashishdubey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2014, 12:36 AM
  2. Creating a copy button to copy range of cells to a different sheet
    By 5degrees in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-15-2013, 12:21 PM
  3. Replies: 0
    Last Post: 09-22-2012, 03:38 AM
  4. Copy data from one sheet (Fixed Cells and sheet) to another sheet
    By RCatman23 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-21-2009, 12:56 PM
  5. Need macro to copy data from sheet 1 to multiple pages on sheet 2 in correct cells
    By iturnrocks in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-16-2009, 03:33 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