Forum Discussion

PeterR2022's avatar
PeterR2022
Copper Contributor
Nov 10, 2022

Index/Match/OR Formula

Hi, Looking for assistance if possible:

Data Table

  Year 22Year 23Year 24Year 25Year 26Year 27
LEV A11,0001,0461,0831,1161,1511,186
LEV A22,0002,0922,1652,2322,3022,373
LEV A33,0003,1383,2483,3493,4523,559

Current Index/Match Ref table

YearYear 22 
ClassLEV A 
Step1 $          1,000.00
New Step2 $          2,000.00

 

Formula using is: =INDEX(C:C,MATCH(1,($K$5=A:A)*($K$6=B:B),0)) (Step 1 Value)

=IFNA(INDEX(C:C,MATCH(1,($K$5=A:A)*($K$7=B:B),0)),0) (Step 2 Value)

 

Idea is to have Year; Class; Step and New Step as validated list - so that I change either Year/Class/Step/New Step using just that 1 table rather than 1 for each year - which the formula currently is doing.  Looked at trying to add multiple index and OR (not very good at using OR).

Using Office 365.

Thanks for any input/guidance

 

 

2 Replies

  • PeterR2022 

    =INDEX($C$2:$H$4,MATCH(1,($A$2:$A$4=$K$6)*($B$2:$B$4=K7),0),MATCH($K$5,$C$1:$H$1,0))

    You can try this formula. Enter the formula with ctrl+shift+enter if you don't work with Office365 or Excel 2021.

     

    • PeterR2022's avatar
      PeterR2022
      Copper Contributor
      Many thanks, OliverScheurich; that looks to do the trick; such subtle changes to the formula 🙂
      I tried using C:H but dot not swap the matches around etc.

      Much appreciated

Resources