One More Excel Formula Help....

vijaychennai

Board Regular
Joined
Dec 7, 2009
Messages
239
Hello all,

I have data like this...


Excel Workbook
AB
1DataCondition
285%a
360%b
4125%a
591%a
685%b
760%b
Sheet3


Weightage.


Excel Workbook
ABCDE
1AB
2WeightagePointWeightagePoint
30-69.99%-50-59.9910
470% to 89.99%060 to 89.9920
590% to 94.99%3090% to 94.99%30
695% to 99.99%4095% to 99.99%40
7100 % to 109.99%50100 % to 109.99%50
8More than 110 %60More than 110 %60
Sheet1


A & B Weightage will defer.

Answer :


Excel Workbook
ABC
1DataConditionPoint
285%a0
360%b20
4125%a60
591%a30
685%b20
760%b10
Sheet3
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
a few things, you need the ranges in numeric format to make them usable. I've broken it out here instead of having the formula parse it.

also, the last result in your example looks off as it should be 20. the formula isn't super robust, but you should be able to adjust it depending on how/what you need.
Excel Workbook
ABCDEFGHIJ
1DataConditionPointAB
285%a0WeightagePointWeightagePoint
360%b200-69.99%0-500-59.9910
4125%a6070% to 89.99%0.700.660 to 89.9920
591%a3090% to 94.99%0.9300.990% to 94.99%30
685%b2095% to 99.99%0.95400.9595% to 99.99%40
760%b20100 % to 109.99%1501100 % to 109.99%50
8More than 110 %1.1601.1More than 110 %60
Sheet1
Excel 2007
Cell Formulas
RangeFormula
C2=IF(B2="a",INDEX($G$3:$G$8,SUMPRODUCT(--($F$3:$F$8<=A2))),INDEX($J$3:$J$8,SUMPRODUCT(--($H$3:$H$8<=A2))))
 
Upvote 0
If you replaced

0-69.99%
70-89.99%
90-94.99%
95-99.99%
100-109.99%
110%+

With..

Table A

0%
70%
90%
95%
100%
110%

Likewise with table B

0%
60%
90%
95%
100%
110%

you could use something like..

Code:
=IF(F17="a",INDEX($E$6:$E$11,MATCH(E17,$C$6:$C$11,1),0,1),IF(F17="b",INDEX($I$6:$I$11,MATCH(E17,$G$6:$G$11,1),0,1),""))

This will pick the value you require if a or b , and will return "" if neither apply.

Regards


Roger
 
Upvote 0

Forum statistics

Threads
1,224,570
Messages
6,179,610
Members
452,931
Latest member
The Monk

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