+ Reply to Thread
Results 1 to 5 of 5

Return Row based on value in column

  1. #1
    Registered User
    Join Date
    05-02-2006
    Posts
    3

    Return Row based on value in column

    Hi everyone,

    I have a master worksheet with all of my data... about 200 rows worth of items and 10 columns of information about each item.

    I am trying to write a formula that returns an entire row of information based on the value in a column.

    For instance, if I have a column labeled "Category", I want that entire row of information to be returned if category = "A". If it does not equal "A", then it should do nothing. It will then look at the next row, and the next, and apply the same condition. The goal is to have various worksheets broken out by "Category" with only the rows of information that fall into that "Category".

    Furthermore, if only row 7 and row 50 out of 200 rows meet the "A" criteria, I want those two rows to be displayed on the top two rows of the "A" worksheet, not at position 7 and position 50.

    Basically, it is equivalent to using the filter function, only I have just one "master" worksheet of data that each of these other worksheets are linked to through these formulas I am trying to write.

    I have the feeling that this may be a simple solution, but I am under a deadline and thought someone here may be able to help. Please let me know if you need any more information.

    Thanks in advance!

    Victor

  2. #2
    Registered User
    Join Date
    05-02-2006
    Posts
    3
    please help!

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Since I have concerns that a formulaic approach might result in an overly bloated workbook, I'll recommend this Advanced Filter technique:

    http://www.contextures.com/xladvfilter01.html#ExtractWs

    Your thoughts?

    Regards,
    Ron

  4. #4
    Pete_UK
    Guest

    Re: Return Row based on value in column

    Check out the VLOOKUP( ) function in Excel Help - this should be able
    to do what you ask with a bit of adjustment.

    Hope this helps.

    Pete


  5. #5
    Registered User
    Join Date
    05-02-2006
    Posts
    3
    thanks for both of your help... i actually ended up using pivot tables which did the job. great tips!!!

+ 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