+ Reply to Thread
Results 1 to 7 of 7

Listing of selective data

  1. #1
    Registered User
    Join Date
    06-23-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    92

    Listing of selective data

    Trying to find a solution for an old problem. There is a large worksheet with several columns. Would like to query one or more condition(s), and if they are met, copy certain cells from that row into a new range. Defined cells from the first row that meets the condition would be listed in the new range on line 1.
    The next row in the worksheet that meets the condition(s) would be listed in the new range on line 2, etc.
    Need help with a formula that can do this... Thank you.
    Last edited by peri1224; 01-23-2011 at 10:15 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Listing of selective data

    Hi peri1224

    I think this is what Advanced Filters do already. See http://www.contextures.com/xladvfilter01.html or http://www.excelfunctions.net/ExcelAdvancedFilter.html

    Study Up!

    If there are some other needs that they don't do then be more specific on what you want, or submit an example sheet with desired results.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    06-23-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Listing of selective data

    Not sure if filtering can do it. The worksheet contains columns with blank cells.
    The source list would look like this:
    ....A..........B......C......D......E.........F
    1..Name..Amt..Coll..Inv...Open...Diff.
    2..xyz.....150..150...25........0............
    3..abc.....400..380...26........0......20.
    4..def......250...........27....250...........
    5..ghi......500..500...29........0...........
    6..abc.....300..285...28........0......15..
    7..jkl.......350..330...30........0......20..
    8..etc.

    The target list would look like this:
    1..Name..Amt...Inv....Diff.
    2..abc.....400....26......20.
    3..abc.....300....28......15..
    4..etc.

    The formula would look for those source rows that have a number in Col. F (Diff.), and then check if Col. A of that row (Name) is abc. If both are true, it would copy selected parts of the source row into the target list.
    A simple formula is desirable. If copying only selected parts makes it too complicated, the whole range can be copied and the unneeded portions manually deleted.


  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Listing of selective data

    Hi,
    If you could create a sample like the above and put it into an Excel workbook and attach it to this post, it would be most helpful. Click on the "Go Advanced" button below the message box and then on the PaperClip Icon above the message area to attach a file.

  5. #5
    Registered User
    Join Date
    06-23-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Listing of selective data

    Attached is the sheet. There is no Advanced button but tried it anyway.
    Attached Files Attached Files

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Listing of selective data

    Hi peri1224
    You were able to attach your file and I got it. Now look at the attached I'm sending back. I've done an Advanced Filter with your data. Read the comments in the yellow. I don't think you need any formulas but simply need to see how to use Advanced Filters. With some VBA you can automate it but that is a little different topic. Learn Advanced Filters first.

    BTW - the "Go Advanced" is displayed below the message area. I need to click on it to get the PaperClip Icon to appear above the message area to attach my file.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-23-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Listing of selective data

    Hello Marvin,
    This certainly helps. It is a very elegant solution, different from my old fashioned formula thinking, which I'm having trouble with in the first place. I will definitely try to work this way whenever I have to pull out selected data.
    Thank you very much.

+ 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