+ Reply to Thread
Results 1 to 7 of 7

Need Helping Seperate Rows into sheets

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    4

    Need Helping Seperate Rows into sheets

    Hi everybody first time here and I'm just starting out. But does anybody know how to cut and paste rows to other sheets when the names on the sheets arn't the same. Like i Have information in column C that are States but only the appreviations. I need to transfer only the ones that say "NY" and "FL" to a sheet name State 1 and then all states that are CA go to State 2 and all the remaining states go to a sheet called Other. This is all new to me and I'm completely confused. Thanks.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,864

    Re: Need Helping Seperate Rows into sheets

    Give this a try:

    Please Login or Register  to view this content.
    Last edited by alansidman; 10-17-2013 at 10:36 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,864

    Re: Need Helping Seperate Rows into sheets

    forgot to include this for you.

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button

  4. #4
    Registered User
    Join Date
    10-17-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need Helping Seperate Rows into sheets

    Thanks for the response. It works I just forgot to include something since I'm still trying to get used to this. On some of the state fields it has wording either before or after the state abbreviation so I was trying to see if theres a way for it to search the cell for those state combinations for the sheets. And is there a way for it to only check one row and stop because I have it running in a loop with other macros and other things need to be done before the state check. I really appreciate your help.

  5. #5
    Registered User
    Join Date
    10-17-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need Helping Seperate Rows into sheets

    Quote Originally Posted by alansidman View Post
    Give this a try:

    Please Login or Register  to view this content.
    Never mind I figured out one obstacle. The only thing i cant figure out is how to make the above code only do row 2 because I'm going to run it through a loop until it finds and empty cell in Column A. Any suggestions?

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,864

    Re: Need Helping Seperate Rows into sheets

    Maybe this?

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-17-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need Helping Seperate Rows into sheets

    Perfect! I Appreciate all the help!

+ 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. splitting excel workbook into seperate sheets depending on number of rows
    By buketdurusoy in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-28-2012, 04:52 PM
  2. [SOLVED] Numbering ROWS sequentially on seperate sheets or files
    By Busybirds in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-27-2012, 12:40 PM
  3. [SOLVED] Seperate Comma seperated values in seperate rows in different tab of same worksheet
    By amlan009 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-28-2012, 04:54 AM
  4. Replicated adding/deleting rows on seperate sheets
    By hlep in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-23-2012, 05:41 AM
  5. Need helping adding Rows
    By rbpd5015 in forum Excel General
    Replies: 0
    Last Post: 04-06-2010, 02:00 PM

Tags for this Thread

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