Forum Discussion

forsec0's avatar
forsec0
Copper Contributor
Feb 15, 2023
Solved

vlookup

I need to get vlookup to continue searching table rows, that contain my search value, until it finds a non-blank cell I am looking to return or the search value is no longer listed. My vlookup command is: =VLOOKUP($C3,Sheet2!$A:$H,2,0). Cell D4 should contain A1:4E:88:E3:19:13

 

sheet1Tabsheet2Tab

  • forsec0 VLOOKUP can't do that as it will only return the first match that it finds. And if that first one is a blank, you get 0. But since you are on MS365, try this:

    =UNIQUE(FILTER(Sheet2!B:B,(Sheet2!A:A=$C3)*(Sheet2!B:B<>"")))

     

4 Replies

  • forsec0's avatar
    forsec0
    Copper Contributor

    forsec0 I am using Microsoft 365.  Also, is there a better function or method I should use?

    • forsec0's avatar
      forsec0
      Copper Contributor
      The following is a link to the actual spreadsheet: https://1drv.ms/x/s!AlwDxVSZhCUPb3Y69uRrNg7Dlvc?e=WRpPbK
      • Riny_van_Eekelen's avatar
        Riny_van_Eekelen
        Platinum Contributor

        forsec0 VLOOKUP can't do that as it will only return the first match that it finds. And if that first one is a blank, you get 0. But since you are on MS365, try this:

        =UNIQUE(FILTER(Sheet2!B:B,(Sheet2!A:A=$C3)*(Sheet2!B:B<>"")))