Formula help - IF, OR, AND, VLookup? multiple conditions

EMY245

New Member
Joined
Aug 6, 2013
Messages
20
Hi all,
I have the following fields of data:

A2 'values': (shows the value 'low', 'mid' or 'high)
B2 ' ratings': (shows a value rating of between 1-5)

I need a formula to populate the %'s in the table below, based on the rating and value. I.e. If Rating is 1 and value is 'low' show 0, if rating is 2 and value is 'low' show 0.5 - is there a quick way to do this without typing out each individual scenario for an incredibly long formula?

RatingLow (%)Mid (%)High (%)
1000
20.50.50
310.50
4221
52.533.5

<tbody>
</tbody>
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
There may be, but it really isn't at all clear what the logic is for the values beyond what you have already told us.
 
Upvote 0
Hi, maybe you adapt something like this:


Excel 2013
ABCDEFGH
1ValueRating%RatingLowMidHigh
2Mid30.51000
3High4120.50.50
4Low52.5310.50
5Low104221
652.533.5
Sheet1
Cell Formulas
RangeFormula
C2=INDEX($F$2:$H$6,MATCH(B2,$E$2:$E$6,0),MATCH(A2,$F$1:$H$1,0))
 
Upvote 0
... is there a quick way to do this without typing out each individual scenario for an incredibly long formula?
Her it is. Place this moderate-length formula in cell B2 and copy across and down:

=ROUND(SUMPRODUCT(CHOOSE($A2,{1,1,1,1,1},{16,8,4,2,1},{81,27,9,3,1},{256,64,16,4,1},{625,125,25,5,1}),CHOOSE(MATCH(B$1,{"Low (%)","Mid (%)","High (%)"},0),{-0.0625,0.7083,-2.6875,4.5417,-2.5},{-0.1667,2,-8.0833,13.25,-7},{-0.0208,0.375,-1.7292,2.875,-1.5})),1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,731
Messages
6,126,535
Members
449,316
Latest member
sravya

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