Vlookup Index Based On Level Number Criteria

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all...

how to make vlookup index based on level number criteria:
"Good" in cell C11 as basis
vlookup compare.xlsx
BCDEFGHIJKLM
3datacriterianumber of levelindex1index2
4Orange JuiceVery good10%0%
5Orange JuiceGood22%-2%
6Orange JuiceEnough34%-4%
7Orange JuiceBad46%-6%
8Orange JuiceWorst58%-8%
9
10Expected ResultCompare-1Compare-2Compare-3
11Orange JuiceGoodVery good-2%Good0%Bad6%
12my targetmy targetmy target
13
14
15
16
17
18
19
20Note :
21Good vs Very Good (cause Very Good is higher level than Good, based on number of level so put index is -2%.
22Good Vs Good (in same level 2 vs 2, based on numbe rof level so put index is 0%
23Good vs Bad (cause Good is higher level than Bad , based on number of level so put index is 6%.
Sheet1


my target in cell E12, G12 & I12...
this attachment file for more easy understanding

thank for your helping.

.sst
 
Last edited:
That is the example that you should have provided in post 1, although I am still not convinced that it is accurate!

Why is F28 -6 instead of -3?

Your result looks as if you're comparing Enough to Very Good instead of Enough to Good.
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
That is the example that you should have provided in post 1, although I am still not convinced that it is accurate!

Why is F28 -6 instead of -3?

Your result looks as if you're comparing Enough to Very Good instead of Enough to Good.
'YOU'RE RIGHT IN F28 SHOULD BE -3. I'M WRONG TYPING
 
Upvote 0
In E19 based on your last example.

=IF(SUMIFS($D$4:$D$15,$B$4:$B$15,B19,$C$4:$C$15,C19)=SUMIFS($D$4:$D$15,$B$4:$B$15,B19,$C$4:$C$15,D19),0,-SUMIFS($E$4:$E$15,$B$4:$B$15,B19,$C$4:$C$15,C19)-SUMIFS($F$4:$F$15,$B$4:$B$15,B19,$C$4:$C$15,D19))
 
Upvote 0
In E19 based on your last example.

=IF(SUMIFS($D$4:$D$15,$B$4:$B$15,B19,$C$4:$C$15,C19)=SUMIFS($D$4:$D$15,$B$4:$B$15,B19,$C$4:$C$15,D19),0,-SUMIFS($E$4:$E$15,$B$4:$B$15,B19,$C$4:$C$15,C19)-SUMIFS($F$4:$F$15,$B$4:$B$15,B19,$C$4:$C$15,D19))

HI jasonb75....
Thank You very much!!! Worked well..A long time i am waiting this formula...
You're great!!!!

thank you, thank you.....
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,603
Members
449,038
Latest member
Arbind kumar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top