+ Reply to Thread
Results 1 to 3 of 3

Thread: Copy to another sheet

  1. #1
    Registered User
    Join Date
    08-23-2009
    Location
    seeb,oman
    MS-Off Ver
    Excel 2003
    Posts
    39

    Copy to another sheet

    Dear sirs,
    In Sheet A i have 3 column data as under
    A B C
    Raju 100 50
    Sameer 0 0
    Sathyan 588 26
    Nileesh 0 0
    shyam 300 548

    i wanted to copy this data to Sheet B with a formula in the same order without the zero holded rows ( ie. Sameer, sathyan)
    I hope somebody will help in this matter
    thanks and regards
    nowfal

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Copy to another sheet

    Make sure row 1 has column headers, like "Name", "Data", etc.

    Click on Data > Filter > AutoFilter
    Click on the drop down arrow for column B and select Custom
    Select Greater than: 0

    You don't have to copy this to another sheet since you can now seen and work with the filtered data, but you CAN copy it. IF you highlight everything left visible and copy to another sheet, all the hidden rows will be excluded.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-23-2009
    Location
    seeb,oman
    MS-Off Ver
    Excel 2003
    Posts
    39

    Re: Copy to another sheet

    Sir,
    can u help me to put a line of code with the if statement, like if any of the b colomn is zero remove that particular row and all.

    [Sub ABD()
    '
    ' ABD Macro
    ' Macro recorded 31/08/2009 by user
    '

    '
    Range("A1:C5").Select
    Selection.Copy
    Sheets("Sheet2").Select
    ActiveSheet.Paste

    End Sub]

+ 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.2.0