Forum Discussion

Nao_saito's avatar
Nao_saito
Copper Contributor
Nov 18, 2020

HLOOKUP関数について

以下のように数字を引数としても、正しく数値が表示されません。セルの書式設定ですべて文字列にしているのですが、うまくいきません。理由の分かる方いらっしゃったら教えていただけますと幸いです。

 

2 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    Nao_saito 

    HLOOKUP() works from top to down; VLOOKUP() from left to right. If I understood you screenshot correctly you try to use HLOOKUP() from down to top, that doesn't work.

     

    Use XLOOKUP() or INDEX/MATCH alternatively.

  • NikolinoDE's avatar
    NikolinoDE
    Platinum Contributor

    Nao_saito 

     

    If range_lookup is FALSE and lookup_value is text, you can use the wildcard characters, question mark (?) and asterisk (*), in lookup_value.

    A question mark matches any single character; an asterisk matches any sequence of characters.

    If you want to find an actual question mark or asterisk, type a tilde (~) before the character.

     

    HLOOKUP function

    https://support.microsoft.com/en-us/office/hlookup-function-a3034eec-b719-4ba3-bb65-e1ad662ed95f?ui=en-us&rs=en-us&ad=us

     

    HLOOKUP searches for a value in the first row of a range of cells.

    As soon as the has been found and the correct column has been selected, the HLOOKUP jumps down a number of lines (line index) and returns the value found here.

     

     

    Thank you for your patience and time.

     

    Nikolino

    I know that I don't know (Socrates)