How to have Range condition in VLOOKUP?

前端 未结 2 1327
你的背包
你的背包 2021-01-29 11:11

I have the below table in Excle file and i want to find the value column for the respective input.

Col A   Col B   Col C   Min  Max    Value
101      AA      Hig         


        
2条回答
  •  忘掉有多难
    2021-01-29 12:10

    If there is no duplicate rows, you can use following formulas:

    for Excel 2007 or later:

    =SUMIFS(F2:F9,A2:A9,101,B2:B9,"AA",C2:C9,"Low",D2:D9,"<="&12,E2:E9,">="&12)
    

    for Excel 2003:

    =SUMPRODUCT((F2:F9)*(A2:A9=101)*(B2:B9="AA")*(C2:C9="Low")*(D2:D9<=12)*(E2:E9>=12))
    

    where 101, "AA", "Low" and 12 could be changed to cell references (e.g. G1,G2 and so on)

    enter image description here

提交回复
热议问题