+ Reply to Thread
Results 1 to 12 of 12

Lookup Right & Below i.e Horizontal & Vertical lookup to filter data

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

    Lookup Right & Below i.e Horizontal & Vertical lookup to filter data

    Hi,

    I am trying to use
    Please Login or Register  to view this content.
    which is nothing but a horizontal & vertical lookup but there is problem with the 2nd AND criterial.However the 1st criteria works verify fine.

    This Filter function is one go function i.e it should spill the data using one single function.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Lookup Right & Below i.e Horizontal & Vertical lookup to filter data

    See if this helps:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Bit more complex than your filter with two conditions. Have yet to work out how to remove the header row.

    Anyway, something to play with.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Lookup Right & Below i.e Horizontal & Vertical lookup to filter data

    I'm missing the expected results, so here's a guess.

    This formula selects the rows where sheet2!A3:A9<>"" with the columns where sheet2!B2:I2=B1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Is this what you want?
    Attached Files Attached Files
    Last edited by HansDouwe; 09-24-2022 at 07:54 AM.

  4. #4
    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,054

    Re: Lookup Right & Below i.e Horizontal & Vertical lookup to filter data

    or ... yet another!

    =LET(d,Sheet2!C3:I9,r,Sheet2!B3:B9,c,Sheet2!C2:I2,cr,Sheet2!A3:A9,fr,FILTER(r,cr<>""),rfr,SEQUENCE(ROWS(fr)),fd,FILTER(FILTER(d,c=$B$1),cr<>""),s,SEQUENCE(,COLUMNS(fd)+1),IF(s<2,fr,INDEX(fd,rfr,s-1)))
    Attached Files Attached Files
    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

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Lookup Right & Below i.e Horizontal & Vertical lookup to filter data

    If you also want to return the first column with letters, as in Glenn's result in post #4, then this is an alternative formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    But now we are actually guessing what result you are looking for.
    Attached Files Attached Files

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Lookup Right & Below i.e Horizontal & Vertical lookup to filter data

    HansDouwe's solution removing the zeroes.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Lookup Right & Below i.e Horizontal & Vertical lookup to filter data

    @TMS, No I didn't remove the zeroes. I formatted the zero's invisible, because it concerns empty fields in the original file.
    If you change the format of the cells to Number or Standard the zeroes are back again.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Lookup Right & Below i.e Horizontal & Vertical lookup to filter data

    It doesn't remove zeroes where zeroes were present, nor does it remove decimal places. It removes zeroes where the source was blank.

  9. #9
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433
    @TMS. Sorry I don't understand you. My solution does not move zeroes where corresponding field are empty. The zeroes are there but invisible. If you change the format to number for example. The zeroes are visible again.
    Last edited by HansDouwe; 09-25-2022 at 04:15 PM. Reason: correct typos

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

    Re: Lookup Right & Below i.e Horizontal & Vertical lookup to filter data

    Thanx all of u for your kind support.It had worked.

  11. #11
    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,054

    Re: Lookup Right & Below i.e Horizontal & Vertical lookup to filter data

    Hahaha. I did overcomplicate that one a bit...

  12. #12
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Lookup Right & Below i.e Horizontal & Vertical lookup to filter data

    Thx for the feedback. I.m glad the given solutions work.

    Would you please consider adding reputation to the helpers answers that you think deserve.

+ 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. Replies: 25
    Last Post: 09-17-2020, 02:30 PM
  2. [SOLVED] lookup if my lookup array with my data position is vertical and horizontal
    By daboho in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2015, 05:35 AM
  3. [SOLVED] VBA Vertical and horizontal Lookup ???
    By ciapul12 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 03-07-2014, 06:15 PM
  4. [SOLVED] Horizontal and Vertical Lookup
    By kingkong321 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2014, 06:48 AM
  5. [SOLVED] Lookup a vertical and horizontal value
    By KARENKERBA in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2013, 04:33 PM
  6. Horizontal and Vertical lookup.
    By rlsublime in forum Excel General
    Replies: 3
    Last Post: 09-05-2012, 05:54 PM
  7. Vertical lookup and Horizontal data population.
    By Excel Dumbo in forum Excel General
    Replies: 3
    Last Post: 07-03-2012, 07:43 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