+ Reply to Thread
Results 1 to 5 of 5

Copying Rows within the same sheet to create a table

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    Ananin Ami
    MS-Off Ver
    Excel 2003
    Posts
    3

    Copying Rows within the same sheet to create a table

    Hello Fellas,

    Im totally a newbie to VBA and Excel.

    What I am trying to achieve is the following:

    I have set up the attached sheet. From Row 598 to 606 I have reference table which I want to conditonally move the row(s) to the row 3 and onwards. However the calculation will be as follows :

    If the value of Cell A2 is somewhere between 250 to 500 then the rows 598 and 599 should be copied to the row 3 and 4. If the value is between 500 - 1000 then 598, 599 and 600 should be moved to 3,4 and 5, etc.

    I would simply want to input the number in A2 and the rest should be formatted automatically. I couldn't build up the logic. Can you help me on this? I am using Excel 2010

    Thanks.

    NomadixBoM.xlsm

  2. #2
    Registered User
    Join Date
    08-09-2012
    Location
    Kolkata
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Copying Rows within the same sheet to create a table

    Use IF....Then...Else at the destination cells by putting conditions on A2. If you want a macro to do this, it would need the exact cell locations.

  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    Ananin Ami
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Copying Rows within the same sheet to create a table

    Hi,

    IF ELSE did not work for me as it does not transfer the formatting. I will need the macro, but simply the macro will always use the same source and destination cells.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copying Rows within the same sheet to create a table

    And what would happen to the values in 601 to 606?

  5. #5
    Registered User
    Join Date
    03-19-2013
    Location
    Ananin Ami
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Copying Rows within the same sheet to create a table

    They will not change, they will only be a reference table inside this sheet.

+ 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