+ Reply to Thread
Results 1 to 4 of 4

Selective moving data

  1. #1
    Registered User
    Join Date
    09-01-2010
    Location
    Eindhoven, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    6

    Selective moving data

    I want to selective move data from one cell to the cell next to it, as in following example.
    All data in the left column that starts with a hyphen should be moved to the column right to it.

    Cars - Alfa Romeo
    - Citroën
    - Fiat
    - Mercedes
    Painters - Rembrandt van Rijn
    - Pablo Picasso
    - Andy Warhold

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Selective moving data

    Select those cells, Hold down the CNTRL key for noncongruent areas, right click and INSERT>Move cells to the right. Is that what you are looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    09-01-2010
    Location
    Eindhoven, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Selective moving data

    Thanx for your quick reply, but that is not exactly what I'm looking for. I forgot to tell that I need a macro to do so. The original sheet will contain thousands of rows and ONLY those cell where data starts with a hyphen should be moved to the column right to it.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Selective moving data

    Try this macro. It assumes your data is in column A
    Please Login or Register  to view this content.
    Does that work for you?

+ 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