+ Reply to Thread
Results 1 to 21 of 21

Filter to match up range and spill data in range

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

    Filter to match up range and spill data in range

    Hi,

    I have a list of data in which I want to lookup a range from another range and pull data accordingly.Currently,I am using below formula,

    Please Login or Register  to view this content.
    Lookup data of Result sheet is :D5:D8.

    Pls find in attachment sample data set.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Filter to match up range and spill data in range

    In B5 copied across and down:

    =INDEX(Data!A$4:A$11,MATCH($D5,Data!$C$4:$C$11,0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: Filter to match up range and spill data in range

    I know this formula but would like to use Filter function.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Filter to match up range and spill data in range

    The problem is that you can't filter a list in a different order.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Filter to match up range and spill data in range

    IN B5 then copied down.

    =FILTER(Data!$A$4:$B$11,Data!$C$4:$C$11=Result!D5,"Not found")
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Filter to match up range and spill data in range

    He doesn't want to copy down - that's the problem. He wants it to SPILL.

  7. #7
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248
    Yes, exactly what I am looking for.
    Last edited by AliGW; 05-17-2022 at 06:34 AM. Reason: PLEASE don't quote unnecessarily!

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Filter to match up range and spill data in range

    Enter D, G, B, M in E5:E8

    In B5 enter

    =FILTER(Data!$A$4:$C$11,COUNTIF(Result!$E$5:$E$8,Data!$C$4:$C$11)=1,"Not found")

    It will automatically Spill.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 05-17-2022 at 08:14 AM.

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Filter to match up range and spill data in range

    Try

    =LET(z,Data!A4:C11,l,D5:D8,FILTER(FILTER(SORTBY(z,MATCH(INDEX(z,,3),l,)),SEQUENCE(ROWS(z))<=ROWS(l)),{1,1,0}))
    Attached Files Attached Files

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

    Re: Filter to match up range and spill data in range

    Thanx Bo_Ry,

    Your post #9 worked as expected.

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

    Re: Filter to match up range and spill data in range

    I am getting a Value Error when I have inserted two columns in 'LIST' Sheet.Can you suggest me what will be the revised formula in this case.
    Pls see what is B5 #Value!.
    Attached Files Attached Files

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Filter to match up range and spill data in range

    =LET(z,LIST!A4:E11,l,D5:D8,FILTER(FILTER(SORTBY(z,MATCH(INDEX(z,,5),l,)),SEQUENCE(ROWS(z))<=ROWS(l)),{1,1,0,0,0}))

    should do it.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 07-28-2022 at 08:31 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: Filter to match up range and spill data in range

    Thanx Glenn !

    Can you let me know what does " l " means ?

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Filter to match up range and spill data in range

    It's a lower case L. Bo_Ry used it as a short name to refer to the LOOKUP range (D5:D8)

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

    Re: Filter to match up range and spill data in range

    Thanx for the explanation.

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

    Re: Filter to match up range and spill data in range

    Hi,
    Let me brief,

    LAX worksheet from C6:R972 is the data range & total column are 16
    Match column is A3:A1752 against worksheet LAX C6:C972
    would like to get the result from E,K,Q,R column


    Please Login or Register  to view this content.
    Kindly let me know where I am wrong in this syntax.Couldn't share the sheet due to confidentiality of data.

  17. #17
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Filter to match up range and spill data in range

    Kindly let me know where I am wrong in this syntax.Couldn't share the sheet due to confidentiality of data.
    Why not test it in your dummy sheet? After that you can copy the working formula to the "confidential" sheet.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

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

    Re: Filter to match up range and spill data in range

    PFA the demo file.I have used the range as per mine actual.Only few data I have shown with formula as mentioned.Momentarily,it is displaying wrong result.
    Attached Files Attached Files

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

    Re: Filter to match up range and spill data in range

    Still eagerly waiting for the response.

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Filter to match up range and spill data in range

    I don't want to have to go through 18 posts to follow this. In your most recent attachment...

    1. Which cells are showing the wrong answer?

    2. What is the correct answer?

    3. Why?

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

    Re: Filter to match up range and spill data in range

    Yes, Kindly,do not go through entire 18 Post.Below, information is suffice.

    Plz find in attachment.Formula has been used based on above previous formula format.I thought it was versatile but when testing in one of the cases it has shown wrong result.

    I have enclosed a file with 3 worksheets.They are-Result,LAX and Correct Answer.

    Formula is applied in Result worksheet at H3 and data is pulled below and across by Matching range of A3 and below with that of LAX worksheet C6 and below.For, simplicity,I have highlighted the header with yellow which column to extract from LAX worksheet to Result worksheet.

    My actual results/Expected result is in 3rd Worksheet 'Correct Answer'

    I want in the same format formula as only syntax is to be readjusted but how?Don't know.

    I think I just I have answered all your questions.
    Attached Files Attached Files
    Last edited by paradise2sr; 09-06-2022 at 11:14 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. Total all columns in spill range?
    By pdtc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-18-2021, 03:52 PM
  2. [SOLVED] Multi criteria INDEX/MATCH in multi-column FILTER spill range
    By Coley356 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-08-2021, 04:23 PM
  3. [SOLVED] Removing #spill! and then #N/A from the range
    By homa5424 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-01-2021, 07:01 AM
  4. Replies: 9
    Last Post: 05-19-2016, 06:48 PM
  5. Replies: 0
    Last Post: 05-18-2016, 04:52 PM
  6. How to set Range in Filter mode and copy data using range value
    By Naveed Raza in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-12-2016, 12:18 PM
  7. Replies: 4
    Last Post: 10-10-2012, 03:38 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