Help needed looking up two criteria in a table and returning a result

%3CLINGO-SUB%20id%3D%22lingo-sub-1906596%22%20slang%3D%22en-US%22%3EHelp%20needed%20looking%20up%20two%20criteria%20in%20a%20table%20and%20returning%20a%20result%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1906596%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20sure%20this%20probably%20really%20easy%20but%20I%20can't%20figure%20it%20out.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20look%20up%20table%20that%20has%20a%20column%20containing%20a%20cost%20band%2C%20then%20for%20each%20cost%20band%2C%20a%20range%20of%20minimum%20and%20maximum%20amounts.%20For%20each%20combination%20of%20cost%20band%20and%20a%20particular%20min%2Fmax%20amount%20range%20there%20is%20a%20percentage%20which%20is%20the%20return%20value.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20data%20consists%2C%20for%20each%20entry%2C%20of%20a%20cost%20band%20value%2C%20then%20an%20amount%2C%20so%20I%20want%20to%20look%20up%20in%20the%20table%20the%20correct%20row%20based%20on%20the%20cost%20band%20and%20where%20the%20amount%20falls%20in%20the%20min%2Fmax%20range%2C%20and%20return%20the%20relevant%20percentage.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20attached%20a%20workbook%20showing%20the%20above.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20help%20supply%20the%20formula%20I%20need%20to%20use%20to%20achieve%20this%20please%3F%20Any%20questions%20please%20ask.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1906596%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1906714%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20needed%20looking%20up%20two%20criteria%20in%20a%20table%20and%20returning%20a%20result%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1906714%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F874611%22%20target%3D%22_blank%22%3E%40JeremyNoles%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%20could%20be%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DLOOKUP(I3%2C1%2F(%24A%243%3A%24A%2430%3DH3)*%24B%243%3A%24B%2430%2C%24D%243%3A%24D%2430)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20463px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F234686iC6099DB714966F03%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi

 

I'm sure this probably really easy but I can't figure it out.

 

I have a look up table that has a column containing a cost band, then for each cost band, a range of minimum and maximum amounts. For each combination of cost band and a particular min/max amount range there is a percentage which is the return value.

 

My data consists, for each entry, of a cost band value, then an amount, so I want to look up in the table the correct row based on the cost band and where the amount falls in the min/max range, and return the relevant percentage.

 

I have attached a workbook showing the above.

 

Can anyone help supply the formula I need to use to achieve this please? Any questions please ask.

 

Thanks in advance.

2 Replies

@JeremyNoles 

That could be

=LOOKUP(I3,1/($A$3:$A$30=H3)*$B$3:$B$30,$D$3:$D$30)

image.png

@JeremyNoles 

 

OR you may try one of these formulas also to get the desired output.

 

In J3

=SUMIFS($D$3:$D$30,$A$3:$A$30,H3,$B$3:$B$30,"<="&I3,$C$3:$C$30,">="&I3)

and then copy it down.

 

Or in J3

=INDEX($D$3:$D$30,MATCH(1,INDEX(($A$3:$A$30=H3)*($B$3:$B$30<=I3)*($C$3:$C$30>=I3),),0))