9
HLOOKUP
TheHLOOKUPfunctionsearcheshorizontally(lefttoright)thetopmostcolumnofatableuntilavaluethat
matchesorexceedstheoneyouarelookingupisfound.
Theelementsbeinglookedupmustbeuniqueandmustbearrangedorsortedinascendingorder;thatis,
alphabeticalorderfortextentries,andlowest‐to‐highestorderfornumericentries.
Thesyntaxis=HLOOKUP(lookup_value,table_array,row_index_num,[range_lookup])
Anexampleoftheformulais:HLOOKUP(E2,D2:M3,2,TRUE)TheEnglishtranslationisusingthevaluefoundinthe
cellE2,lookintherangeofD2toM3andgocolumnbycolumn.Ifyoufindavaluethatmatchesorexceedsthe
valueinE2,usingthatrow,godown2rowstotheright,grabthevaluethereandbringitback.
Therearetworange_lookupargumentoptions;TRUEorFALSE
TRUE
Isthedefaultanswer,soyoumayleaveitoutoftheformula
Looksforanapproximatematch
Ifitfindsanexactmatchitwilluseit.
Ifitdoesn’tfindanexactmatch,itwillusethelastitembefore itgotgreater
Alphabetical:LookingforCat.IfelementsareApple,Bird,Carpet,Dog;thenCarpet
wouldbereturnedbecauseDogexceedsCatalphabetically.
Numeric:Lookingfor5.25.Ifelementsare3.0,4.0,5.0,6.0,7.0,then5.0wouldbeused.
Thelastnumberbefore5.25wasexceeded.
FALSE
Looksforanexactmatch.
Ifitfindsanexactmatchitwilluseit.
Ifitdoesn’tfindanexactmatch,itwillreturn#N/A
Alphabetical:LookingforCat.IfelementsareApple,Bird,Carpet,Dog;then#N/Awould
bereturned.
Numeric:Lookingfor5.25.Ifelementsare3.0,4.0,5.0,6.0,7.0,then#N/Awouldbe
returnedbecausethereisnoexactmatch.