+ Reply to Thread
Results 1 to 4 of 4

Copy all row if condition is true

  1. #1
    Registered User
    Join Date
    09-09-2013
    Location
    philippines
    MS-Off Ver
    Excel 2010
    Posts
    18

    Copy all row if condition is true

    HI GUYS,

    Please HELP me. See attached file.

    I want to get all the information in all rows and transfer it to other sheet with the condition:

    1. if E1=OS and D1=Nov 2013 then copy qualified rows to other sheet.


    THANK YOU SO MUCH!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Copy all row if condition is true

    TRy this, using a helper column on sheet 1(I used I)...

    =IF(AND(E2="OS",MONTH(D2)=11,YEAR(D2)=2013),I1+1,I1)

    Then, copy the headings from sheet1 to sheet 2, and use this in A2, copied down and across...

    =IFERROR(INDEX(Sheet1!$A$2:$H$8,MATCH(ROW($A1),Sheet1!$I$2:$I$8,0),MATCH(Sheet1!A$1,Sheet1!$A$1:$H$1,0)),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-09-2013
    Location
    philippines
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Copy all row if condition is true

    YOUR SO GOOD! THANKS ALOT FDibbins!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Copy all row if condition is true

    Glad it solved your question, and thanks for the feedback

+ 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. Replies: 1
    Last Post: 09-17-2013, 01:38 PM
  2. if condition is true then copy the range to other range
    By pedjvak in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2013, 04:56 AM
  3. open a comment to cell range upon true condition then removing comment on false condition
    By ferrum_equitis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 12:55 AM
  4. if condition is true then copy the formula in the other cell
    By pedjvak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-01-2012, 02:05 AM
  5. Copy data from one cell to another if a blank condition is true
    By gadjit in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-08-2009, 08:17 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