tmmcentyre
New Member
- Joined
- Oct 30, 2018
- Messages
- 5
I have four columns labelled Level 1, 2, 3, or 4. Each contain an Average Rating of BLANK to 100 derived from a ROUND & AVERAGEIF formula. The highest Rating & Level will be used to select a value from an INDEX table on Sheet2 and displayed as a Deduct Value. However, the INDEX table only goes up to 45 so any Rating >45 will need to select 45 at its Level. It also needs to show BLANK if all Ratings are BLANK.
Excel 2013/2016
<tbody>
[TD="align: center"]28[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]29[/TD]
[TD="align: center"]45[/TD]
[TD="align: center"]100[/TD]
[TD="align: center"][/TD]
[TD="align: center"]75[/TD]
[TD="align: center"]30[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
</tbody>Sheet1
Excel 2013
<tbody>
[TD="align: center"]3[/TD]
[TD="align: right"][/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]~[/TD]
[TD="align: center"]~[/TD]
[TD="align: center"]~[/TD]
[TD="align: center"]~[/TD]
[TD="align: center"]~[/TD]
[TD="align: center"]~[/TD]
[TD="align: center"]47[/TD]
[TD="align: center"]44[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]29[/TD]
[TD="align: center"]48[/TD]
[TD="align: center"]67[/TD]
[TD="align: center"]48[/TD]
[TD="align: center"]45[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]30[/TD]
[TD="align: center"]50[/TD]
[TD="align: center"]70[/TD]
</tbody>Sheet2
I can't seem to work out the correct sequencing of IFERROR & INDEX & IF & MAX. I keep getting #N/A, #REF , etc.. This, however, works if one or more Ratings are 45 or less. It's the 100 that blows it up. Any ideas? Am I WAY off base here?
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]J30[/TH]
[TD="align: left"]=IFERROR(IF(MAX(IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($J$29,Sheet2!$T$3:$T$48,0),MATCH(1,Sheet2!$T$3:$X$3,0)),0),IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($K$29,Sheet2!$T$3:$T$48,0),MATCH(2,Sheet2!$T$3:$X$3,0)),0),IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($L$29,Sheet2!$T$3:$T$48,0),MATCH(3,Sheet2!$T$3:$X$3,0)),0),IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($M$29,Sheet2!$T$3:$T$48,0),MATCH(4,Sheet2!$T$3:$X$3,0)),0))=0,"",(MAX(IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($J$29,Sheet2!$T$3:$T$48,0),MATCH(1,Sheet2!$T$3:$X$3,0)),0),IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($K$29,Sheet2!$T$3:$T$48,0),MATCH(2,Sheet2!$T$3:$X$3,0)),0),IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($L$29,Sheet2!$T$3:$T$48,0),MATCH(3,Sheet2!$T$3:$X$3,0)),0),IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($M$29,Sheet2!$T$3:$T$48,0),MATCH(4,Sheet2!$T$3:$X$3,0)),0)))),"")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Excel 2013/2016
I | J | K | L | M | |
---|---|---|---|---|---|
LEVEL | |||||
AVERAGE RATING | |||||
DEDUCT VALUE |
<tbody>
[TD="align: center"]28[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]29[/TD]
[TD="align: center"]45[/TD]
[TD="align: center"]100[/TD]
[TD="align: center"][/TD]
[TD="align: center"]75[/TD]
[TD="align: center"]30[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
</tbody>
Excel 2013
T | U | V | W | X | |
---|---|---|---|---|---|
<tbody>
[TD="align: center"]3[/TD]
[TD="align: right"][/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]~[/TD]
[TD="align: center"]~[/TD]
[TD="align: center"]~[/TD]
[TD="align: center"]~[/TD]
[TD="align: center"]~[/TD]
[TD="align: center"]~[/TD]
[TD="align: center"]47[/TD]
[TD="align: center"]44[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]29[/TD]
[TD="align: center"]48[/TD]
[TD="align: center"]67[/TD]
[TD="align: center"]48[/TD]
[TD="align: center"]45[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]30[/TD]
[TD="align: center"]50[/TD]
[TD="align: center"]70[/TD]
</tbody>
I can't seem to work out the correct sequencing of IFERROR & INDEX & IF & MAX. I keep getting #N/A, #REF , etc.. This, however, works if one or more Ratings are 45 or less. It's the 100 that blows it up. Any ideas? Am I WAY off base here?
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]J30[/TH]
[TD="align: left"]=IFERROR(IF(MAX(IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($J$29,Sheet2!$T$3:$T$48,0),MATCH(1,Sheet2!$T$3:$X$3,0)),0),IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($K$29,Sheet2!$T$3:$T$48,0),MATCH(2,Sheet2!$T$3:$X$3,0)),0),IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($L$29,Sheet2!$T$3:$T$48,0),MATCH(3,Sheet2!$T$3:$X$3,0)),0),IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($M$29,Sheet2!$T$3:$T$48,0),MATCH(4,Sheet2!$T$3:$X$3,0)),0))=0,"",(MAX(IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($J$29,Sheet2!$T$3:$T$48,0),MATCH(1,Sheet2!$T$3:$X$3,0)),0),IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($K$29,Sheet2!$T$3:$T$48,0),MATCH(2,Sheet2!$T$3:$X$3,0)),0),IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($L$29,Sheet2!$T$3:$T$48,0),MATCH(3,Sheet2!$T$3:$X$3,0)),0),IFERROR(INDEX(Sheet2!$T$3:$X$48,MATCH($M$29,Sheet2!$T$3:$T$48,0),MATCH(4,Sheet2!$T$3:$X$3,0)),0)))),"")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]