# lookup / index formula

#### hyd1956

##### New Member
Hi all,

Can anyone help with a formula which looks up the percentage value in column A sheet 2 against columns A and B in Sheet 1, then looks up column b sheet 2 against columns c and d sheet 1 and then displays the corresponding figure from column E?

Book1
AB
1 PercentageTotal
220.00%1
330.00%2500
440.00%2050
550.00%90000
660.00%100000
770.00%3000
880.00%750000
990.00%2000
10100.00%1000
Sheet2

Book1
ABCDEF
1Min PercentageMax PercentageMin NumberMax NumberCol1Col2
220%49%15000120.00
350001200000230.00
4200000199999999340.00
550%80%15000450.00
650001200000560.00
7200000199999999670.00
881%100%15000780.00
950001200000890.00
102000001999999999100.00
Sheet1

Any help would be great, I tried vlookups with name ranges but I couldn't get it to work. Thought it would be something like =IFERROR(IF(AND(A2>MInP,A2<MaxP),LOOKUP(2,1/((B2>=MinN)*(J2<=MaxN)),colone),""),"") but I could be miles off!

MinP =sheet1, column a
MaxP =sheet1, column b
MinN =sheet1, column c
MaxN =sheet1, column d
colone =sheet1, column e

Thank you

### Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

##### Board Regular
Hi Dear,

I have difficulties in understanding the relationship between the values in sheet 1 and 2, and what formula was used in Column A in sheet 1

let us work it in this way; if the value is >20% and <49%, and as a number, it is >1 and <5000, what value should be retrieved from sheet 2 and why?

Best Regards
m.yusuf

#### Peter_SSs

##### MrExcel MVP, Moderator
Does this do what you want?

hyd1956.xlsm
ABC
1 PercentageTotalResult
220.00%11
330.00%25001
440.00%20501
550.00%900005
660.00%1000005
770.00%30004
880.00%7500005
990.00%20007
10100.00%10007
Sheet2
Cell Formulas
RangeFormula
C2:C10C2=INDEX(Sheet1!E:E,MATCH(A2,Sheet1!A:A)+MATCH(B2,Sheet1!C\$2:C\$4)-1)

Replies
4
Views
48
Replies
3
Views
84
Replies
5
Views
98
Replies
7
Views
66
Replies
1
Views
234

1,130,185
Messages
5,640,679
Members
417,160
Latest member
Timon82

### 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.

### Which adblocker are you using?

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

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