+ Reply to Thread
Results 1 to 6 of 6

If Cell = X, Copy Entire Row Into A New Sheet

  1. #1
    Registered User
    Join Date
    07-07-2009
    Location
    DFW
    MS-Off Ver
    Excel 2007
    Posts
    3

    If Cell = X, Copy Entire Row Into A New Sheet

    First, I want to say this forum has been a life saver! I have searched quite a bit and have learned alot, but I am stuck on solving this problem and hopefully someone smarter and more excel talented can help me out.

    I track sales in 9 different dealerships and I enter the all the information you are seeing manually.

    Excel 2007....

    What I need is a foruma to read column "I" (SR) - and see which showroom was selling it (CN, TN, HU, etc), and then copy the entire row (A-Q) and place it in another sheet that corresponds with the appropriate showroom.

    To the right of my data I designated what each letter combo stands for and to which new sheet I need these added to.

    I want to thank this community in advance for any and all help. It is much appreciated. Please let me know if you need any more information...

    Marc
    Attached Files Attached Files
    Last edited by Mr. McGoo; 07-07-2009 at 04:20 PM.

  2. #2
    Registered User
    Join Date
    07-07-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    re: If Cell = X, Copy Entire Row Into A New Sheet

    Insert the following code into Sheet1 in VBA
    Please Login or Register  to view this content.
    There may be better ways but this works. No when you put an 'x' in column R the data i transferred to the correct sheet. I have attached the file with the code in it.

  3. #3
    Registered User
    Join Date
    07-07-2009
    Location
    DFW
    MS-Off Ver
    Excel 2007
    Posts
    3

    re: If Cell = X, Copy Entire Row Into A New Sheet

    alewis - thanks so much. I just now saw your response.

    I will be honest - Visual Basic is completely foreign to me. Without being too much trouble - how in the heck would I apply that to my current spreadsheet?

    If it's too much to ask, I completely understand...

  4. #4
    Registered User
    Join Date
    07-07-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    re: If Cell = X, Copy Entire Row Into A New Sheet

    Perhaps there is an easier way,without using VBA. You could perhaps make everything a lot simpler and keep all the data in one spreadsheet and then use the built in autofilter function to simply select the car maker you want. To do this, go to the master table (sheet1 in yor example file and click anywhere in the data). Then either hold down the Alt key and press 'd' followed by 'f' and then 'f' again or select the filter button from the data tab. This gives drop down boxes for each column in the data.

    Otherwise, let me know more specifically what you are trying to achieve and we can develop the code.

  5. #5
    Registered User
    Join Date
    07-01-2009
    Location
    Reykjavik
    MS-Off Ver
    Excel 2007
    Posts
    12

    re: If Cell = X, Copy Entire Row Into A New Sheet

    i have almost a same problem but i need to copy entire row (only 4 parameters) in another sheet but insted of X I need to use A-1, B-2 and so on, also it need to be copy in vertical colomn

  6. #6
    Registered User
    Join Date
    07-07-2009
    Location
    DFW
    MS-Off Ver
    Excel 2007
    Posts
    3

    re: If Cell = X, Copy Entire Row Into A New Sheet

    Quote Originally Posted by alewis View Post
    Perhaps there is an easier way,without using VBA. You could perhaps make everything a lot simpler and keep all the data in one spreadsheet and then use the built in autofilter function to simply select the car maker you want. To do this, go to the master table (sheet1 in yor example file and click anywhere in the data). Then either hold down the Alt key and press 'd' followed by 'f' and then 'f' again or select the filter button from the data tab. This gives drop down boxes for each column in the data.

    Otherwise, let me know more specifically what you are trying to achieve and we can develop the code.
    Thanks so much. I think I can get that to work. Not exactly what I am wanting, but should work...

    Thanks for your time...

+ 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