+ Reply to Thread
Results 1 to 10 of 10

Copy rows to new sheet if value of cell entered greater than 1

  1. #1
    Registered User
    Join Date
    11-06-2008
    Location
    Ohio
    Posts
    3

    Copy rows to new sheet if value of cell entered greater than 1

    Hello,

    To preface, I am an absolute novice with Excel and anything more technical than sorting or math functions, I am lost. With that said, can someone help me (in laymans terms) with what I need to do to accomplish the following:

    I have an excel sheet with about 500 lines of information. It is basically a price sheet/order form of our products with columns consisting of description, sku number, model number, retail price, cost and then quantity needed.

    What I would like to do is when the value of quantity needed column (H) is entered (ie..2,4,etc.), I would like to have that entire specific row copied to a new sheet so that the new sheet would only have items being ordered. This way when I need to print an order, it will only have items needed rather than the main sheet that has all 500 lines/items.

    If this something that can be done with a formula? If so, how?

    If you need further details or explanation, please let me know.

    I will try and attach my order form so you can view and better understand.

    Thank you so much for your help!!
    Attached Files Attached Files
    Last edited by larryluv1; 11-06-2008 at 11:22 AM. Reason: forum rules

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

    Please first read our forum rules and then amend your title according to Rule 1.

    Thanks
    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
    11-06-2008
    Location
    Ohio
    Posts
    3
    sorry, I changed it. Hopefully that is correct now.

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

    See attached.

    First I counted how many records qualify and entered that into Sheet2!K1 using formula =Countif(Sheet1!H:H,">1")

    Then I used an array formula in Sheet2!A2 to capture those records that qualify:

    =IF(ROWS($A$1:$A1)>$K$1,"",INDEX(Sheet1!A$14:A$483,SMALL(IF(Sheet1!$H$14:$H$483>1,ROW(Sheet1!$H$14:$H$483)-ROW(Sheet1!$H$14)+1),ROWS($A$1:$A1))))

    Which must be confirmed with CTRL+SHIFT+ENTER not just ENTER. The { } brackets appear if done correctly.

    Then the formula is copied across the columns and down as far as necessary to get all possible record.

    I copied it down 490 rows.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-06-2008
    Location
    Ohio
    Posts
    3
    OMG!...Your AWSOME!

    One problem though...on some of the lines when you enter a value it is putting the wrong rows....see attached.
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try changing the formula in A2 to:

    Please Login or Register  to view this content.
    confirm it with CTRL+SHIFT+ENTER keys and copy Across to col H, then fill down all the row.

  7. #7
    Registered User
    Join Date
    11-01-2011
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2007
    Posts
    53

    Angry Re: Copy rows to new sheet if value of cell entered greater than 1

    I know this is an old post but I am trying to change this example up a bit.

    I have made adjustments but I am getting no results and I know I have not done it correctly, Basicaly I am trying to get data from Sheet(AR Aging Report) and move the needed columns to sheet(legals) not bringing over blank rows or rows where there is text in column A. Thank you in advance and if I have not explained well enough please let me know!
    Attached Files Attached Files

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

    Re: Copy rows to new sheet if value of cell entered greater than 1

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

  9. #9
    Registered User
    Join Date
    12-19-2012
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Copy rows to new sheet if value of cell entered greater than 1

    Can you change to formula to copy row if cell value greater than 0 as supposed to 1?

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy rows to new sheet if value of cell entered greater than 1

    Chris,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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