+ Reply to Thread
Results 1 to 7 of 7

Cut/copy from columns into one vertical column, except certain values.

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    18

    Cut/copy from columns into one vertical column, except certain values.

    Hi all,

    I found an useful thread for the issue I have, but I would like to add one question: how can I copy the columns, except rows that contains certain values/text, like "FALSE". I attached the example together with the code that mike7952 provided as an answer to Andrew's post. Hope nobody minds that I'm using it here.
    There are 10 rows out of 1815 containing "FALSE". So, the final result should be 1805 rows copied in sheet2

    Thank you all for support,
    copycolumns.xlsm

  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: Cut/copy from columns into one vertical column, except certain values.

    Hi Costin,

    Try this:

    Please Login or Register  to view this content.
    Directions for running the routine(s) just supplied

    Copy the code to the clipboard

    Press ALT + F11 to open the Visual Basic Editor.

    Open a macro-enabled Workbook or save your Workbook As Macro-Enabled

    Select “Module” from the Insert menu

    Type "Option Explicit" then paste the code under it

    With the cursor between Sub and End Sub press F5 (F8 to Single Step)

    OR

    Press ALT + Q to close the code window.

    Press ALT + F8 then double click on the macro name
    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 Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Cut/copy from columns into one vertical column, except certain values.

    If you wanted Mike's code

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-26-2013
    Location
    Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Cut/copy from columns into one vertical column, except certain values.

    thank you very much guys, it works perfectly. U guys are great !

  5. #5
    Registered User
    Join Date
    03-26-2013
    Location
    Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Cut/copy from columns into one vertical column, except certain values.

    ok, i have to return with a question: I'm using the code from AB33. It's working fine, but i didn't notice that this code does copy/paste starting with A1;B1 ... A2;B2 ... I need actually to do like this: A1;A2 ... B1;B2 ... I've tried to figure out to bounds of array but no success.
    Hope that you understand what I wanted to say, I must admit that after 6 hours working in excel my thoughts are not that clear
    Thanks,

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

    Re: Cut/copy from columns into one vertical column, except certain values.

    costin,
    This thread was closed and you are was supposed to start a new thread with new request, but I will do it this time round.
    Please Login or Register  to view this content.
    Last edited by AB33; 04-02-2013 at 11:28 AM.

  7. #7
    Registered User
    Join Date
    03-26-2013
    Location
    Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Cut/copy from columns into one vertical column, except certain values.

    now it's really closed. Thank you, I appreciate your help.

+ 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