+ Reply to Thread
Results 1 to 6 of 6

Extracting data after matching data by combining

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Extracting data after matching data by combining

    Dear Sir,

    In the enclosed workbook,I want to extract the data in Column A3 and thereafter in Report sheet from data sheet of Column C by combinedly matching C3+D3+E3 of Report sheet with that of data of Column B of data sheet.Even though there are few more data in B column inaddition to & after combining C3+D3+E3 of Report sheet.One should have to ignore this portion as three column data combining is enough.

    I will be eagerly waiting for the reply.

    If you require any further information with regard to this,then kindly let me know.I know even though 100% can't be done but approx. would be suffice to me.

    With Best Rgds

    Suresh
    Last edited by paradise2sr; 09-25-2014 at 08:53 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Extracting data after matching data by combining

    Here is a solution. I put this Formula in G3 of Report as an array and dragged it down.

    =INDEX(data!$C$2:$C$971,MATCH(B3&"111",data!$A$2:$A$971&(ISNUMBER(SEARCH(C3,data!$B$2:$B$971))+0)&(ISNUMBER(SEARCH(D3,data!$B$2:$B$971))+0)&(ISNUMBER(SEARCH(E3,data!$B$2:$B$971))+0),0))

    Your data needs to be consistent. For example I removed 10 examples of extra spaces in Col B of Report (i.e. D 1459 instead of D1459). If the data is not consistent, then you won't get a match.
    Another example, row 7, no match. You are searching for a match for TR Detergent for D1463. There is none. If something else means the same thing, then you need to do a search and replace and make them the same.
    Anyway, this works for most of your data. See attached.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Extracting data after matching data by combining

    Dear Sir,

    Thanks for the reply and helping me.

    I did one mistake more to say.I forget to say that it should also match Column A of data sheet with Column of B of Report Sheet in addition to above said so far.Hence this would be multiple match criteria case by combining.

    i.e 2nd Criteria would be that of Column B of Report sheet also must match with Column A of Data Sheet, in addition to above mentioned of 1st criteria of combined data of C3+D3+E3 of Report sheet with that of Column B of data sheet.

    Kindly revise your formula by taking into consideration this one more criteria to get the exact result which is currently displayed in Column A of Report.

    Hopefully,I could the desired result from you and from other forum contributors.As now this is a complete information which previously I was intially missing or lacking and was creating a problem to solve and understand to others.

    With Best Rgds,
    Suresh
    Last edited by paradise2sr; 09-25-2014 at 12:17 PM.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Extracting data after matching data by combining

    Seems like there's more to it than that. Looking at your data, if not all criteria are met, then pick the best fit (i.e. meets 2 out of 3 criteria). and that could mean a match with col D,E or C,D or C,E. I'm not sure how to do that outside of having multiple nested IFERROR statements. Maybe someone else can pick it up.

  5. #5
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Extracting data after matching data by combining

    Thanks for the reply.

    No sir, criteria 1 = C+D+E combinedly of Report sheet must match with Column B of data sheet and not what you have said if not all criteria are met, then pick the best fit (i.e. meets 2 out of 3 criteria). and that could mean a match with col D,E or C,D or C,E.This would be wrong.

    Criteria 2 of B column of Report sheet which I was missing initially must & should match with Column A of data sheet.

    Criteria 1 is the minimum data combinedly available (C+D+E) in Report sheet that is needed to be match with Column B of data sheet.
    If these two criteria does not match then it should produce an error and not to pick up the best fit as you have said as the it would be wrong in my case.Spaces,case sensitive,etc is to be ignored,if exist any.

    Hope I could be able to make you and other understand what I mean to say.

    With Best Rgds,

    Suresh

  6. #6
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Extracting data after matching data by combining

    Quote Originally Posted by ChemistB View Post
    Here is a solution. I put this Formula in G3 of Report as an array and dragged it down.

    =INDEX(data!$C$2:$C$971,MATCH(B3&"111",data!$A$2:$A$971&(ISNUMBER(SEARCH(C3,data!$B$2:$B$971))+0)&(ISNUMBER(SEARCH(D3,data!$B$2:$B$971))+0)&(ISNUMBER(SEARCH(E3,data!$B$2:$B$971))+0),0))

    Your data needs to be consistent. For example I removed 10 examples of extra spaces in Col B of Report (i.e. D 1459 instead of D1459). If the data is not consistent, then you won't get a match.
    Another example, row 7, no match. You are searching for a match for TR Detergent for D1463. There is none. If something else means the same thing, then you need to do a search and replace and make them the same.
    Anyway, this works for most of your data. See attached.
    Dear Sir,

    Besides stating other information,can you trim each and every input data before matching in your single formula.Becoz,I think there might be in both sheet extra spaces.

    In addition to it,you can use interchangebly * and x which might be creating an error to get the result.Also,you can take- TR only as prefix agst 'TR Detergent',TR LAMINATED,TR TUBE,TR ( L ),etc. and MILKY as prefix agst MILKY CC and so on of D column of Report sheet.From Column E and F of Report sheet you can take only numeric character further to minimise the remaining error which is currently displaying in the formula result which you have suggested.


    Hope I could be able to make you understand and you can revise your existing formula to further minimise the error taking into consideration above things which I have said.

    Thanks once again.

    With Best Rgds,
    Suresh
    Last edited by paradise2sr; 09-25-2014 at 11:05 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Extracting and combining data from specific sheet from multiple workbooks
    By aggies2010 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2013, 03:39 PM
  2. Extracting data matching certain criteria
    By nahughes in forum Excel General
    Replies: 1
    Last Post: 06-21-2012, 01:13 PM
  3. Extracting matching data
    By SimonXL in forum Excel General
    Replies: 2
    Last Post: 10-21-2010, 10:27 AM
  4. [SOLVED] extracting matching data from another worksheet
    By cinco5 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-22-2008, 10:33 AM
  5. Extracting matching data
    By nospaminlich in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2006, 10:35 AM

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