+ Reply to Thread
Results 1 to 2 of 2

Cut and paste cells based on specific text

  1. #1
    Registered User
    Join Date
    12-15-2009
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    9

    Cut and paste cells based on specific text

    Hi all, and apologies if this solution is elsewhere, I have looked but unable to find the right/best answer. This is probably simple but the answer is eluding me.

    I have a report on which I have performed some subtotals. What is needed is to have the text "Total 301", etc., moved to be next to the total. The column in which "Total 301" currently resides will be deleted after the text has been moved.

    Also, some accounts have multiple rows. I need to remove duplicate account code and name labels.

    I've attached a small sample file showing before/after. This is a 2007 file, but the macro will actually be run in 2003. Long story why this is so, I can attach a sample in 2003 tonight if needed.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Cut and paste cells based on specific text

    Hello on top,

    Welcome to the Forum!

    The macro below has been added to the attached workbook. This reformats the report like you want.
    Please Login or Register  to view this content.

    To Run the Macro...
    To run the macro from Excel, open the workbook, and press ALT+F8 to display the Run Macro Dialog. Double Click the macro's name to Run it.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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