+ Reply to Thread
Results 1 to 2 of 2

Detected the Data which in my condition and copy it to another sheet

  1. #1
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Detected the Data which in my condition and copy it to another sheet

    Dear all
    I have a big database that contain about 25000 rows and 250 columns
    now as I show you manulally : in my sample file (that attached) I want that in each row where I have >0 then copy the name of row and related data to another sheet with head of each item
    if you open my file I show you manually that I want do it by a code or macro or . . . automaticly
    thanks in advansed
    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: Detected the Data which in my condition and copy it to another sheet

    Hello pedjvak,

    Not sure if the output of the attached workbook is what you want but it is a starting point. A new sheet has been added for the output. There is button at the top of the new sheet to run the macro. the macro is written for the data in this workbook. If you plan to use the macro in your other workbook, the macro will need to be updated. The statement that determines the last column of the data will need to be changed from "BM" to "IP, assuming 250 columns.

    The macro will take some time to complete when run on a workbook 25000 rows by 250 columns. For my computer, I estimated about 23 minutes.
    Please Login or Register  to view this content.
    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)

Similar Threads

  1. Copy data from one sheet to another w/ Condition
    By NTB in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-19-2013, 05:31 AM
  2. Replies: 1
    Last Post: 09-17-2013, 01:38 PM
  3. VBA: copy selected data from sheet to sheet with condition
    By Benzodizepine in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2013, 09:31 AM
  4. how to Copy Data From One Sheet To Another With Condition
    By divi123 in forum Excel Formulas & Functions
    Replies: 53
    Last Post: 07-10-2013, 02:33 AM
  5. Replies: 6
    Last Post: 05-12-2011, 02:50 AM

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