Forum Discussion

littlevillage's avatar
littlevillage
Iron Contributor
Oct 17, 2022
Solved

IF and VLOOKUP working incorrectly.

Hi,  I have created a Pivot Table and then I use VLOOKUP and IF to get Lookup_value from that table. =IFERROR(IF(NUMBERVALUE(TEXT(TODAY()-7,"[$-en-US]d-mmm;@"))=$D$1,VLOOKUP($A2,Pivot!$D:$I,2,FALS...
  • HansVogelaar's avatar
    Oct 17, 2022

    littlevillage 

    Your VLOOKUP only looks at column D, not at column B of the Pivot sheet. Try

     

    =IFERROR(INDEX(Pivot!E:E,MATCH(1,(Pivot!B:B=$D$1)*(Pivot!D:D=A2),0)),"")

     

Resources