+ Reply to Thread
Results 1 to 12 of 12

Pull over only rows that have info in a certain column

  1. #1
    Registered User
    Join Date
    01-17-2008
    Posts
    28

    Pull over only rows that have info in a certain column

    I have 2 tabs. The first tab has all of my inventory items listed. The second tab is my order tab. What i need is on the second tab I need it to look at the inventory tab at the "D" column and if there is a number in a row then it needs to copy the whole row over. It needs to continue doing this for all 50 rows while skipping blank rows. So that on the second tab I have only the items I need to order but with no blank lines.

    Any and all help is appreciated.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Can you put up a small sample file showing your structures so we can work towards a solution that suits your situation.


    rylo

  3. #3
    Registered User
    Join Date
    01-17-2008
    Posts
    28
    Here is a simple form of the file. As you can see I can use if statements to pull over the lines but it leaves blank lines in between the items I am ordering. I need it to skip over those lines so there is not any.

    Let me know if you all have any suggestions.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-17-2008
    Posts
    28
    If there is any more info I can give let me know.

  5. #5
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Try this.

    rylo
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-17-2008
    Posts
    28
    You Rock! That is exactly what I needed now I can adjust it to fit my whole sheet. Thanks

  7. #7
    Registered User
    Join Date
    01-17-2008
    Posts
    28
    OK I know it's something I am doing but when I attempt to copy formula over to my other sheet it comes up with #VALUE!

    What am I doing wrong?

  8. #8
    Registered User
    Join Date
    01-17-2008
    Posts
    28
    Here is what I have right now

    =IF(ROW()-3>COUNT(Products!$J$3:$J$50),"",INDEX(Products!L:L,SMALL(IF(ISNUMBER(Products!$J$3:$J$50),ROW(Products!$J$3:$J$50),""),ROW()-3)))

  9. #9
    Registered User
    Join Date
    01-17-2008
    Posts
    28
    Ok I'm still learning excel here is what i noticed when I click on the cell with the formula in it it has {} around the formula. But if I try to edit it the {} removes and the formula no longer works. How do I edit the formula without losing the {}

  10. #10
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    The formula needs to be array entered.

    When you edit the formula, hold down the CTRL and SHIFT keys, then press enter. You will find that the {} will be added to the formula.

    See how that goes.

    rylo

  11. #11
    Registered User
    Join Date
    01-17-2008
    Posts
    28
    Excellent Thanks a million.
    Works like a charm.

  12. #12
    Registered User
    Join Date
    02-10-2011
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Pull over only rows that have info in a certain column

    Rylo,
    Excellent solution. I just joined the forum today. Came across this excellent solution to a very similar problem. Almost working for me. My difference is that instead of having a number as a qualifier (as in order quantity from Johnny's example) I am searching in a field that is text ( Cat 1 or Cat 2).
    I'm trying to get this to work by changing ISNUMBER to ISTEXT... I may need a 'FIND' function in there to specify between Cat 1 or 2... not sure but I'm still working on it. Suggestions greatly appreciated.

    gw

+ 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