Help in Lookup Range

Jerome_RA

Board Regular
Joined
Dec 26, 2016
Messages
53
Office Version
  1. 2013
Platform
  1. Windows
Hi Everyone.

Maybe you can help me with this question.
I have here an example with this range of data.
Data below is the RAW.
What I want to do is to get the Overall Score from the Unique Column which is the Description and Month containing what Range there Grades are. So for Instance, I have 98.5% on Math for July. So the Score would be 4.

Description and Month are just a sample. This could be a whole year (January - December) with lots of Description entered. So the Data below is just a sample of what I want to get the formula.

UIDDescriptionMonthFromToOverall Score
MathJuly

<tbody>
</tbody><colgroup><col></colgroup>

<tbody>
</tbody><colgroup><col></colgroup>
Math

<tbody>
</tbody><colgroup><col></colgroup>
July99%99999%5
MathJuly

<tbody>
</tbody><colgroup><col></colgroup>
Math

<tbody>
</tbody><colgroup><col></colgroup>
July97.5%98.99%4
MathJuly
Math

<tbody>
</tbody><colgroup><col></colgroup>
July95%97.49%3
MathJuly
Math

<tbody>
</tbody><colgroup><col></colgroup>
July90%94.99%2
MathJuly
Math

<tbody>
</tbody><colgroup><col></colgroup>
July0%89.99%1
ScienceAugust

<tbody>
</tbody><colgroup><col></colgroup>
Science

<tbody>
</tbody><colgroup><col></colgroup>
August99%99999%5
ScienceAugust

<tbody>
</tbody><colgroup><col></colgroup>
Science

<tbody>
</tbody><colgroup><col></colgroup>
August97.5%98.99%4
ScienceAugust

<tbody>
</tbody><colgroup><col></colgroup>
Science

<tbody>
</tbody><colgroup><col></colgroup>
August95%97.49%3
ScienceAugust

<tbody>
</tbody><colgroup><col></colgroup>
Science

<tbody>
</tbody><colgroup><col></colgroup>
August90%94.99%2
ScienceAugust

<tbody>
</tbody><colgroup><col></colgroup>
Science

<tbody>
</tbody><colgroup><col></colgroup>
August0%89.99%1

<tbody>
</tbody>
 
Thanks, Nishant94. Thank you so much for your help. However, it will not show the correct Overall Score. For Instance, I type in 0 for C14, then the OverallScore would be 16 instead of 1. And if I change C14 to 99%, then the Overall Score would become 6. If I change A14 to Science, with 99% on C14, then it would show 0 on the Overall Score.

Try this using the same setup as above,

Code:
=SUMPRODUCT((((C14>=(($A$2:$A$11=A14&B14)*$D$2:$D$11))+(C14<=(($A$2:$A$11=A14&B14)*$E$2:$E$11)))=2)*$F$2:$F$11)
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi Guys, still help on this Problem. Any other Ideas on how to do this? huhuhuhhuuhhu
 
Upvote 0
Hi, something like this maybe..:


Excel 2013/2016
ABCDEF
1UIDDescriptionMonthFromToOverall Score
2MathJulyMathJuly99%99999%5
3MathJulyMathJuly98%99%4
4MathJulyMathJuly95%97%3
5MathJulyMathJuly90%95%2
6MathJulyMathJuly0%90%1
7ScienceAugustScienceAugust99%99999%5
8ScienceAugustScienceAugust98%99%4
9ScienceAugustScienceAugust95%97%3
10ScienceAugustScienceAugust90%95%2
11ScienceAugustScienceAugust0%90%1
12
13
14MathJuly98.50%4
Sheet1
Cell Formulas
RangeFormula
D14{=INDEX($F$2:$F$11,MATCH(C14,IF(A2:A11=A14&B14,E2:E11),-1))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
OMG FormR, THANK YOU!!!!! You're a genius!!!! This is what I need!!!! OMG!!!!! I could hug you right now.


Hi, something like this maybe..:

Excel 2013/2016
ABCDEF
1UIDDescriptionMonthFromToOverall Score
2MathJulyMathJuly99%99999%5
3MathJulyMathJuly98%99%4
4MathJulyMathJuly95%97%3
5MathJulyMathJuly90%95%2
6MathJulyMathJuly0%90%1
7ScienceAugustScienceAugust99%99999%5
8ScienceAugustScienceAugust98%99%4
9ScienceAugustScienceAugust95%97%3
10ScienceAugustScienceAugust90%95%2
11ScienceAugustScienceAugust0%90%1
12
13
14MathJuly98.50%4

<colgroup><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
D14{=INDEX($F$2:$F$11,MATCH(C14,IF(A2:A11=A14&B14,E2:E11),-1))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

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