+ Reply to Thread
Results 1 to 4 of 4

transfer data to sheet 2 conditionally

  1. #1
    Registered User
    Join Date
    10-26-2010
    Location
    nashville, tn
    MS-Off Ver
    Excel 2007
    Posts
    13

    transfer data to sheet 2 conditionally

    Im very new to excel and usually only work with pretty basic sum and date formulas----what i want to do is create a due list on sheet 2----if anything in column J on sheet one is a negative value----i want it to paste the row that contains the negative onto sheet 2---if this does not make sense i understand and can elaborate further if needed----
    Last edited by esj001; 10-28-2010 at 10:20 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: transfer data to sheet 2 conditionally

    In a new column in Sheet1, say at K2, enter formula:

    =If(J2<0,Count(K$1:K1)+1,"")

    and copy down

    in L2 enter: =MAX(K:K)

    then in Sheet2, A2 enter:

    =IF(Rows($A$1:$A1)>'Sheet1'!$L$2,"",Index('Sheet1'!A:A,Match(Rows($A$1:$A1),'Sheet1'!$K:$K)))

    and copy down as far as you want and across as far as you need to get all data.

    adjust ranges and sheetnames to suit.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-26-2010
    Location
    nashville, tn
    MS-Off Ver
    Excel 2007
    Posts
    13

    Question Re: transfer data to sheet 2 conditionally

    Thank you sir, Im sure that is the correct solution to my problem--but for the life of me I cant get it to work (im sure because of my ignorance) Attached is a sample of the spreadsheet im working on (mine has many more rows of things)

    ----What I want to do is create a (this is due list) for airplane maintenance on Sheet2

    ----So everything in the Remaining hours column K that is < or equal to 0, needs to paste the entire row onto sheet2 in a list form

    ----so in my example rows 8 and 13 would paste over to sheet2 one right under the other, if that is possible

    ----------Thanks for any help that can be given to a newbie Exceler
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: transfer data to sheet 2 conditionally

    See attached.

    The formulas to find matches are in column N and M of Sheet1...

    Sheet 2 contains the extracted data.
    Attached Files Attached Files

+ 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