Lookup Index Based on Comparing "Grade"

muhammad susanto

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

i have problem about compare criteria then filling data index with 3 option 0%,negative% or positive % based on criteria
the table like the below:
index compare 2020.xlsx
ABCDEFGHIJKLMN
5Calculation AnalysisClassGradeIndex
6DescriptionObjek TargetP-1IndexP-2Indexdo not removeMachine CondtVery Good15%
7P-1P-2Good210%
8Worst325%
9 Machine CondtVery GoodGood-25,0%Good+10,0%FALSE TRUE
10
11if red highlighted the cell is contains data wrongcorrect cause "very good" in grade 1 then "Good" in grade 2, number index must postive percentage
12note
131"Very good" vs "good" the result is MUST Positive percentage cause "Very Good" in grade 1 and "Good" in grade 2Worst Vs Good, the index is MUST Negative cause Worst in grade 3 and Good in grade 2
142if the description same e.g. Very Good vs Very Good , data index MUST 0%
ok
Cell Formulas
RangeFormula
H9H9=SIGN(D9)=SIGN(VLOOKUP(INDEX($A$8:$F$9,MATCH($A9,$A$8:$A$9,0),MATCH(C$6,$A$6:$F$6,0)),$L$6:$M$8,2,0)-VLOOKUP(INDEX($B$8:$B$9,MATCH($A9,$A$8:$A$9,0)),$L$6:$M$8,2,0))
I9I9=SIGN(F9)=SIGN(VLOOKUP(INDEX($A$8:$F$9,MATCH($A9,$A$8:$A$9,0),MATCH(E$6,$A$6:$F$6,0)),$L$6:$M$8,2,0)-VLOOKUP(INDEX($B$8:$B$9,MATCH($A9,$A$8:$A$9,0)),$L$6:$M$8,2,0))


my target in cell D9 and F9, how to fill (lookup) data index based on 3 criteria above
any help, thanks in advance..

sst.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Sorry could you please explain the criteria in details. I didnot get how you got 25% in D9
 
Upvote 0
So is 25% the desired result??

Is it is so considering the data ranges for Machine condition good it should result in 10% instead of 25%.

I am sorry i could not figure out the criteria
 
Upvote 0
yes you 're right , my expected result col D9 & F9...
lookup based on grade/class, remember based on comparing for each criteria (Good vs Very Good, or Good vs worst, etc....)
 
Upvote 0
my similar problem in previous posting but i can't found my posting again
but i remember Peters_Ss have help me out...
may be this complex problem then i think we need adding helper column
Machine CondtClass/LevelgradeIndex (manual given)Index (manual given)
Very good15%-5%
good210%-10%
worst320%-20%
 
Upvote 0
Cross posted.

Please supply the links as per board policy. Thanks
 
Upvote 0
i hope this make clear
(from attachment file)

Based on index number in cell Q14 & R14 and col."rating/grade" in col.M10 down
comparing data in B14 vs C14 (col."Objek" vs "P-1"), shoud be like this
Very good vs Bad ----the result is 5%
Very good vs Very good --the result is 0% (same text)
Very good vs good --the result is 15%

otherwise (comparing data B14 vs E14 (col."objek" vs "P-2"), shoudl be:
Enough vs Good - the result is -11%
Enough vs enough - the result is 0%
Enough vs bad - the result is 11%
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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