+ Reply to Thread
Results 1 to 28 of 28

Need to get filtered table data based on particular column's filter value

  1. #1
    Registered User
    Join Date
    12-05-2015
    Location
    hyderabad
    MS-Off Ver
    MS Excel 2007
    Posts
    11

    Need to get filtered table data based on particular column's filter value

    Hi,
    I need to get filtered table data for a filtered column data.

    please find table in attached file.

    Steps:
    1.Need to get column's a-01R,a-02R.. in a call as picker values and
    2.Upon selecting 'a-01R', its column data should be filtered (non '-' rows) and
    3. Table data of columns(part-ID,Description,a-01R(qty)) should be displayed in below cells for that column values(non '-' rows)


    Thanks in advance..

    Also posted in,
    http://www.excelguru.ca/forums/showt...lues#post21394
    Attached Files Attached Files
    Last edited by veeresh540; 12-11-2015 at 12:07 PM.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Need to get filtered table data based on particular column's filter value

    It would appear from the sample in your other thread that you already have a solution for this.

    If this is correct please mark this thread as solved.

  3. #3
    Registered User
    Join Date
    12-05-2015
    Location
    hyderabad
    MS-Off Ver
    MS Excel 2007
    Posts
    11

    Re: Need to get filtered table data based on particular column's filter value

    Hi,
    Thanks for the quick reply.
    Sorry I dint get you. what i really meant is
    As shown in new attachment, In Sheet2, upon selecting the part a-01R in picker, the resulted filtered table data should populate corresponding to the selected part and similarly for other parts a-02R,a-03R.
    So please suggest me the appropriate way and formula in order to get it done.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Need to get filtered table data based on particular column's filter value

    So both threads are the same question using different words?

    When you joined the forum recently you agreed to abide by the Forum Rules, but in haste I fear you might not have actually read them. Please stop and take a moment to read them now. We all follow these rules for the benefit of all, as must you. Thanks.

    (link above in the menu bar)

  5. #5
    Registered User
    Join Date
    12-05-2015
    Location
    hyderabad
    MS-Off Ver
    MS Excel 2007
    Posts
    11

    Re: Need to get filtered table data based on particular column's filter value

    Hi jason,
    Yes, posted this thread for alternate possibility of the same thread.
    Ok ill read them.
    Thanks

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Need to get filtered table data based on particular column's filter value

    See if this helps.

    Note that is uses a named range and a little bit of vba to function. You will need to 'enable macros' in any security warnings that pop up in order for it to work.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Need to get filtered table data based on particular column's filter value

    a Non-VBA solution using Data Validation to select filter

    In E

    =IFERROR(INDEX(Sheet1!$A$2:$H$11,SMALL(IF(INDEX(Sheet1!$A$2:$H$11,,MATCH(Sheet2!$A$2,Sheet1!$A$1:$H$1,0))<>"",ROW($A$2:$A$11)-ROW($A$2)+1,""),ROWS($A$2:A2)),MATCH(Sheet2!$A$2,Sheet1!$A$1:$H$1,0)),"")

    Enter with Ctrl+Shift+Enter

    in F

    =IFERROR(VLOOKUP(Sheet2!E3,Sheet1!$A$2:$B$11,2),"")

    in G

    =IFERROR(VLOOKUP($E3,Sheet1!$A$2:$H$11,MATCH($A$2,Sheet1!$A$1:$H$1,0)+1,0),"")

    I removed "-" from entries in your table on Sheet1

    Data validation list in L1:L3
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Need to get filtered table data based on particular column's filter value

    Just for info: you could simplify the table on Sheet1. See attached.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    12-05-2015
    Location
    hyderabad
    MS-Off Ver
    MS Excel 2007
    Posts
    11

    Re: Need to get filtered table data based on particular column's filter value

    Hi,
    Thanks for giving both VBA and Non-VBA solutions.
    In VBA solution,
    i'm new to VBA, so if i add few more parts like a-04R,a-05R,.. how i can make this macro work?

    And in Non-VBA solution,
    if i have duplicate values like 'a-942' for 'a-02R', how i can get the appropriate description and count value(sorry i realised this scenario later).

    PFA!!
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Need to get filtered table data based on particular column's filter value

    Can you have the same Part ID with different description? Assuming you can ... see attached.

    If not, need to produce unique list in column E and sum quantities
    Attached Files Attached Files
    Last edited by JohnTopley; 12-06-2015 at 02:58 AM.

  11. #11
    Registered User
    Join Date
    12-05-2015
    Location
    hyderabad
    MS-Off Ver
    MS Excel 2007
    Posts
    11

    Re: Need to get filtered table data based on particular column's filter value

    Hi John,
    Yes, i can have different description and quantity(qty) for same parts and it should populate accordingly.

    And can i have this table generated dynamically upon cell click of corresponding part cell rather than in dropdown(as shown in sheet4). If possible can you please guide me through it also so that i can extend it.


    Thanks,
    Veeresh
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Need to get filtered table data based on particular column's filter value

    If you want to click on cell rather drop-down (why???) then you will need Jason's VBA solution (which I haven't looked at).

    See reply below.
    Last edited by JohnTopley; 12-06-2015 at 06:37 AM.

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Need to get filtered table data based on particular column's filter value

    See the Attached which includes Jason's VBA solution: code is placed in the worksheet.

    Please Login or Register  to view this content.
    You need named range called "SELECTION" (already created) which is the Active Cell i.e the cell selected in column A. You can extend the filter list as required with no VBA change needed.

    I have added Conditional Formatting to highlight selected filter.

    I have also changed the size of the ranges in the formulae to columns A to Z and 100 rows.

    =IFERROR(INDEX(Sheet1!$A$2:$Z$100,SMALL(IF(INDEX(Sheet1!$A$2:$Z$100,,MATCH(SELECTION,Sheet1!$A$1:$Z$1,0)+1)<>"",ROW($A$2:$A$100)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    The highlighted "SELECTION" is the named range so MATCH is done on the active (selected) cell in column A.
    Attached Files Attached Files
    Last edited by JohnTopley; 12-06-2015 at 08:15 AM.

  14. #14
    Registered User
    Join Date
    12-05-2015
    Location
    hyderabad
    MS-Off Ver
    MS Excel 2007
    Posts
    11

    Re: Need to get filtered table data based on particular column's filter value

    Hi John,
    Thanks for the support and solutions even for extending it.

    For VBA solution,
    I'm getting an issue while using it from my end.And it is,
    For duplicate records, if at all description is also same its returning first matched record values(description,count,etc) for both the duplicate entries which shouldn't be the case. Please provide me the solution for it.

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Need to get filtered table data based on particular column's filter value

    If you have multiple entries for a given description then (I think) you will need to (a) produce a list of unique descriptions and (b) summate the data for that description )???)


    Please post a file with an example of the problem and show expected results.

  16. #16
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Need to get filtered table data based on particular column's filter value

    In G2

    =IFERROR(INDEX(Sheet1!$B$2:$Z$100,SMALL(IF(INDEX(Sheet1!$A$2:$Z$100,,MATCH(SELECTION,Sheet1!$A$1:$Z$1,0)+1),ROW($A$2:$A$100)-ROW($A$2)+1,""),ROWS($A$2:A2)),MATCH(SELECTION,Sheet1!$A$1:$Z$1,0)),"")

    Array confirmed with Shift Ctrl Enter.

    Click Ok, then fill down.

    Make a selection from column A.

  17. #17
    Registered User
    Join Date
    12-05-2015
    Location
    hyderabad
    MS-Off Ver
    MS Excel 2007
    Posts
    11

    Re: Need to get filtered table data based on particular column's filter value

    Hi John,
    Thanks for the response. I will check the given formula and update you.
    Last edited by veeresh540; 12-08-2015 at 01:49 PM.

  18. #18
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Need to get filtered table data based on particular column's filter value

    Formula is from Jason.

  19. #19
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Need to get filtered table data based on particular column's filter value

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    http://www.excelguru.ca/forums/showt...-filter-values

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  20. #20
    Registered User
    Join Date
    12-05-2015
    Location
    hyderabad
    MS-Off Ver
    MS Excel 2007
    Posts
    11

    Re: Need to get filtered table data based on particular column's filter value

    Hi,
    I have updated in other site about the cross-thread.

    Thanks Jason for formula.

    Jason/John,
    I have implemented the suggestions/formulas and got struct at a point i.e.,i have merged the duplicate cells and so, the lookup value is taking only the first value of all duplicates. Please suggest me further.

    Thanks in advance..
    PFA
    Attached Files Attached Files

  21. #21
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Need to get filtered table data based on particular column's filter value

    As far as I can see there are no duplicates in the file you provided.

  22. #22
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Need to get filtered table data based on particular column's filter value

    If you mean "Pin" (where there are two entries for one part) then this a completely new requirement. And you have merged cells.

    We are spending a lot of time chasing "shadows" as the requirements keep changing: until you have clearly defined and fixed your needs, there is little point in doing more work.
    Last edited by JohnTopley; 12-10-2015 at 01:44 PM.

  23. #23
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Need to get filtered table data based on particular column's filter value

    Quote Originally Posted by veeresh540 View Post
    Hi,
    I have updated in other site about the cross-thread.
    You should also edit your original post here to include a link to the other site.

    This should include any other sites that you have posted the same question, not just the one we have found.

  24. #24
    Registered User
    Join Date
    12-05-2015
    Location
    hyderabad
    MS-Off Ver
    MS Excel 2007
    Posts
    11

    Re: Need to get filtered table data based on particular column's filter value

    Hi,
    I have posted thread only in 2 forums.And edited original post with cross-thread link.

    John,
    Sorry for the change of requirement with time.
    Coming to functionality, Consider e.g., p-65 which has two vendors and two pins should get displayed in 'Status' sheet ratherthan only the first matching value. Please help in getting it.

    Thanks
    Veeresh

  25. #25
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Need to get filtered table data based on particular column's filter value

    Remove the merged cells, and enter the data into each individual cell.

    With E7:E8 merged, the formula will see E8 as an empty cell so there is no data to return.

    There are ways around merged cells, but they will not work with your sheet, the requirement is too complex.

  26. #26
    Registered User
    Join Date
    12-05-2015
    Location
    hyderabad
    MS-Off Ver
    MS Excel 2007
    Posts
    11

    Re: Need to get filtered table data based on particular column's filter value

    Can u please explain why it can't be achieved.
    And is it because using VBA??
    For e.g.,If we keep SY-0399140R-AS and SY-0399142R-AS in a picker rather than VBA select way, Can it be possible??
    If not, Is there any alternate way to achieve it?

  27. #27
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Need to get filtered table data based on particular column's filter value

    It cannot be achieved because you have merged cells.

    The method used has nothing to do with it, VBA could achieve what you want easier than a formula, so that is not the reason why it fails.

    The alternate way is to stop using merged cells.

  28. #28
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Need to get filtered table data based on particular column's filter value

    See attached.
    Attached Files Attached Files

+ 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. filter and copy filtered data to another sheet based on combobox selection
    By prince82 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-09-2015, 11:09 PM
  2. Replies: 6
    Last Post: 10-16-2014, 08:42 AM
  3. Replies: 2
    Last Post: 11-02-2012, 10:38 AM
  4. Replies: 1
    Last Post: 11-01-2012, 12:28 AM
  5. Replies: 5
    Last Post: 05-23-2012, 10:33 AM
  6. Replies: 0
    Last Post: 02-20-2012, 02:53 PM
  7. Replies: 1
    Last Post: 01-06-2006, 02:00 PM

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