+ Reply to Thread
Results 1 to 6 of 6

Extract data that meets specific condition from large raw data

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2010
    Posts
    27

    Extract data that meets specific condition from large raw data

    I have a sheet (Raw Data) with huge database (minimum 500 rows). On the "Output" sheet, I would like to show all the data that meets specific criteria.

    On the "Output" sheet, I want to show all data that (1) "Sales Rep" (Column H of "Raw Data") is equal to name specified on "Output" (B3) and (2) "Comp. Date" (Column L of "Raw Data") is between the dates specified on "Output" (B1 and B2).

    The sample file I uploaded only has 49 lines of data, but actually it could go up to 500 lines. Therefore, the number of data lines that will be shown on "Output" Sheet will vary depending on the raw data, the specified salesperson name and specified dates.

    Also, I reduced the number of columns in the raw data for this sample file, but the actual file has about 40 columns of data fields.

    I've been trying my best with INDEX, MATCH, SMALL, LARGE, etc. but had no luck. I would appreciate any sort of help on this.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Extract data that meets specific condition from large raw data

    without looking at you're file, have you tried using filters, or maybe pivot tables?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-16-2012
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Extract data that meets specific condition from large raw data

    I need it to be done automatically, because this is supposed to be a report that is generated automatically when the user copy/pastes the raw data onto the Raw Data sheet.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Extract data that meets specific condition from large raw data

    In A6 cell of Output Sheet - Array Formula Requires Ctrl+Shift+Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag it down and right.

    Keep both RawData and Output sheet Column Headers as same.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Registered User
    Join Date
    10-16-2012
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Extract data that meets specific condition from large raw data

    Thank you! Actually, there was a minor mistake in the formula, but I figured it out.

    =IFERROR(INDEX('Raw Data'!$A$1:$O$50,SMALL(IF(('Raw Data'!$H$1:$H$50=$B$3)*($B$1>='Raw Data'!$I$1:$I$50)*('Raw Data'!$I$1:$I$50<=$B$2),ROW('Raw Data'!$I$1:$I$50)),ROW($A1)),MATCH(Output!A$5,'Raw Data'!$A$1:$O$1,0)),"")

    Should be 'Raw Data'!$I$1:$I$50 >= $B$1 instead of $B$1>='Raw Data'!$I$1:$I$50. But neverthless, it worked like magic. Thanks!

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Extract data that meets specific condition from large raw data

    Thanks for the feedback and correction!

    Glad to know that you got the solution

+ 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