Excel Vlookup returns NA with numbers

后端 未结 2 1575
难免孤独
难免孤独 2021-01-29 10:16

I have a table in Excel which contains 2 columns of text, and two columns of numbers. The numbers refer to the position in which a search string is found within a body of text -

相关标签:
2条回答
  • 2021-01-29 10:46

    VLOOKUP always does the lookup on the first column in the lookup table so you are looking up the Min value in the weather column and it does not match.

    You can either restructure your data so that the location column is first or use INDEX MATCH

    =INDEX(C3:E7,MATCH(MIN(E3:E7),E3:E7,0),1)
    
    0 讨论(0)
  • 2021-01-29 10:53

    cut and paste column e to column c. afterwards it should be column c = location, d = weather, e = icon. note, vlookup will display the first value found, top down. So since you have 3 "100000" it is returning C3 first as the MAX value.

    min weather formula: =IFERROR(VLOOKUP(MIN($C$3:$C$7),$C$3:$E$7,2,FALSE),"")

    max weather formula: =IFERROR(VLOOKUP(MAX($C$3:$C$7),$C$3:$E$7,2,FALSE),"")

    0 讨论(0)
提交回复
热议问题